Aligned norwegian lang with others and used correct locale

This commit is contained in:
Dan Brown 2021-01-02 15:58:23 +00:00
parent a04a800258
commit e53e4f85c7
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
13 changed files with 3 additions and 5 deletions

View file

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

View file

@ -9,13 +9,11 @@ class Localization
/**
* Array of right-to-left locales
* @var array
*/
protected $rtlLocales = ['ar', 'he'];
/**
* Map of BookStack locale names to best-estimate system locale names.
* @var array
*/
protected $localeMap = [
'ar' => 'ar',
@ -32,7 +30,7 @@ class Localization
'ja' => 'ja',
'ko' => 'ko_KR',
'nl' => 'nl_NL',
'no' => 'no_NB',
'nb' => 'nb_NO',
'pl' => 'pl_PL',
'pt' => 'pl_PT',
'pt_BR' => 'pt_BR',

View file

@ -239,7 +239,7 @@ return [
'ja' => '日本語',
'ko' => '한국어',
'nl' => 'Nederlands',
'no_NB' => 'Norsk (Bokmål)',
'nb' => 'Norsk (Bokmål)',
'pl' => 'Polski',
'pt_BR' => 'Português do Brasil',
'ru' => 'Русский',