chore: add missing locales

This commit is contained in:
Ash Monty
2023-03-22 20:52:35 +01:00
committed by Ash Gray
parent bbe4fecd25
commit 354c9f2705

View File

@@ -31,15 +31,19 @@ app.use(expressLocale({
// Map unavailable regions to available locales from the same language
map: {
/* TODO: map more regions to the available locales */
en: 'en-US', 'en-GB': 'en-US', 'en-AU': 'en-US', 'en-CA': 'en-US',
en: 'en-US', 'en-AU': 'en-US', 'en-CA': 'en-US',
ar: 'ar-AR',
ca: 'ca-ES',
cs: 'cs-CZ',
cn: 'zh-CN',
de: 'de-DE',
nl: 'nl-NL',
es: 'es-ES',
fr: 'fr-FR', 'fr-CA': 'fr-FR', 'fr-CH': 'fr-FR',
fi: 'fi-FI',
it: 'it-IT', 'it-CH': 'it-IT',
ja: 'ja-JP',
kk: 'kk-KZ',
ko: 'ko-KR',
nb: 'nb-NO',
no: 'nb-NO',
@@ -47,25 +51,35 @@ app.use(expressLocale({
pt: 'pt-BR',
ro: 'ro-RO',
ru: 'ru-RU',
sr: 'sr-RS',
tr: 'tr-TR',
uk: 'uk-UA',
},
allowed: [
'en', 'en-US', 'en-GB', 'en-AU', 'en-CA',
'ar', 'ar-AR',
'ast',
'ca-ES',
'cs-CZ',
'cn', 'zh-CN', 'zh-HK', 'zh-TW',
'de', 'de-DE',
'nl', 'nl-NL',
'es', 'es-ES',
'fi', 'fi-FI',
'fr', 'fr-FR', 'fr-CA', 'fr-CH',
'it', 'it-IT', 'it-CH',
'ja', 'ja-JP',
'kk', 'kk-KZ',
'ko', 'ko-KR',
'nb', 'no', 'nb-NO',
'pl', 'pl-PL',
'pt', 'pt-BR',
'ro', 'ro-RO',
'ru', 'ru-RU',
'sr', 'sr-RS',
'tr', 'tr-TR',
'uk', 'uk-UA',
'en@uwu'
],
'default': 'en-US'
}));