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'), 'locale' => env('APP_LANG', 'en'),
// Locales available // 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 // Application Fallback Locale
'fallback_locale' => 'en', 'fallback_locale' => 'en',

View File

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

View File

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

View File

@ -19,7 +19,7 @@ class LanguageTest extends TestCase
$configLocales = config('app.locales'); $configLocales = config('app.locales');
sort($configLocales); sort($configLocales);
sort($this->langs); 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() public function test_correct_language_if_not_logged_in()