Restore full local name in settings
- Fallback to two-letter language code for translation if locale isn't found - Rename L10n::langToString to L10n::localeToLanguageString - Use setlocale() with the selected locale
This commit is contained in:
parent
012a3f9f8d
commit
e8752c7631
7 changed files with 75 additions and 11 deletions
|
|
@ -19,8 +19,8 @@ $settings = [
|
|||
'displayErrorDetails' => false, // set to false in production
|
||||
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
|
||||
'i18n' => [
|
||||
'locales' => ['en', 'fr', 'cs'],
|
||||
'default' => 'en',
|
||||
'locales' => ['en_US', 'fr_FR', 'cs_CZ'],
|
||||
'default' => 'en_US',
|
||||
'path' => __DIR__ . '/lang'
|
||||
],
|
||||
// Escaper settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue