diff options
Diffstat (limited to 'shared/core-utils/i18n')
-rw-r--r-- | shared/core-utils/i18n/i18n.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/core-utils/i18n/i18n.ts b/shared/core-utils/i18n/i18n.ts index 38c1b0cc9..54b54077a 100644 --- a/shared/core-utils/i18n/i18n.ts +++ b/shared/core-utils/i18n/i18n.ts | |||
@@ -103,9 +103,9 @@ export function is18nLocale (locale: string) { | |||
103 | export function getCompleteLocale (locale: string) { | 103 | export function getCompleteLocale (locale: string) { |
104 | if (!locale) return locale | 104 | if (!locale) return locale |
105 | 105 | ||
106 | if (I18N_LOCALE_ALIAS[locale]) return I18N_LOCALE_ALIAS[locale] | 106 | const found = (I18N_LOCALE_ALIAS as any)[locale] as string |
107 | 107 | ||
108 | return locale | 108 | return found || locale |
109 | } | 109 | } |
110 | 110 | ||
111 | export function getShortLocale (locale: string) { | 111 | export function getShortLocale (locale: string) { |