Updated lanauge lists to match latest translations

This commit is contained in:
Dan Brown 2020-03-04 22:14:25 +00:00
parent 6303c788ed
commit 34616ac195
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
4 changed files with 15 additions and 12 deletions

View file

@ -52,7 +52,7 @@ return [
'locale' => env('APP_LANG', 'en'),
// Locales available
'locales' => ['en', 'ar', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fr', 'hu', 'nl', 'pt_BR', 'sk', 'cs', 'sv', 'ko', 'ja', 'pl', 'it', 'ru', 'uk', 'zh_CN', 'zh_TW', 'tr'],
'locales' => ['en', 'ar', 'cs', 'da', 'de', 'de_informal', 'es', 'es_AR', 'fa', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'pt', 'pt_BR', 'sk', 'sv', 'pl', 'ru', 'tr', 'uk', 'vi', 'zh_CN', 'zh_TW',],
// Application Fallback Locale
'fallback_locale' => 'en',

View file

@ -31,11 +31,13 @@ class Localization
'ko' => 'ko_KR',
'nl' => 'nl_NL',
'pl' => 'pl_PL',
'pt' => 'pl_PT',
'pt_BR' => 'pt_BR',
'ru' => 'ru',
'sk' => 'sk_SK',
'sv' => 'sv_SE',
'uk' => 'uk_UA',
'vi' => 'vi_VN',
'zh_CN' => 'zh_CN',
'zh_TW' => 'zh_TW',
'tr' => 'tr_TR',

View file

@ -185,27 +185,28 @@ return [
'language_select' => [
'en' => 'English',
'ar' => 'العربية',
'cs' => 'Česky',
'da' => 'Dansk',
'de' => 'Deutsch (Sie)',
'de_informal' => 'Deutsch (Du)',
'es' => 'Español',
'es_AR' => 'Español Argentina',
'fr' => 'Français',
'nl' => 'Nederlands',
'pt_BR' => 'Português do Brasil',
'sk' => 'Slovensky',
'cs' => 'Česky',
'sv' => 'Svenska',
'ko' => '한국어',
'ja' => '日本語',
'pl' => 'Polski',
'hu' => 'Magyar',
'it' => 'Italian',
'ja' => '日本語',
'ko' => '한국어',
'nl' => 'Nederlands',
'pl' => 'Polski',
'pt_BR' => 'Português do Brasil',
'ru' => 'Русский',
'sk' => 'Slovensky',
'sv' => 'Svenska',
'tr' => 'Türkçe',
'uk' => 'Українська',
'vi' => 'Tiếng Việt',
'zh_CN' => '简体中文',
'zh_TW' => '繁體中文',
'hu' => 'Magyar',
'tr' => 'Türkçe',
]
//!////////////////////////////////
];

View file

@ -19,7 +19,7 @@ class LanguageTest extends TestCase
$configLocales = config('app.locales');
sort($configLocales);
sort($this->langs);
$this->assertTrue(implode(':', $this->langs) === implode(':', $configLocales), 'app.locales configuration variable matches found lang files');
$this->assertEquals(implode(':', $configLocales), implode(':', $this->langs), 'app.locales configuration variable does not match those found in lang files');
}
public function test_correct_language_if_not_logged_in()