diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:48:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:56:05 +0200 |
commit | 54909304287f3c04dcfb39660be8ead57dc95440 (patch) | |
tree | 478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /shared/core-utils/i18n | |
parent | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff) | |
download | PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip |
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
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) { |