aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/core-utils/i18n/i18n.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/core-utils/i18n/i18n.ts')
-rw-r--r--shared/core-utils/i18n/i18n.ts4
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) {
103export function getCompleteLocale (locale: string) { 103export 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
111export function getShortLocale (locale: string) { 111export function getShortLocale (locale: string) {