Localize i18n and display the environment variable configured instance in the list

This commit is contained in:
root
2022-01-25 10:28:43 +05:30
parent 0e61c3a0de
commit 7e3453fd03
2 changed files with 80 additions and 47 deletions
+8 -1
View File
@@ -17,11 +17,18 @@ export const i18n = new VueI18n({
messages
})
const TIME_AGO_EXCEPTIONS = {
export const TIME_AGO_EXCEPTIONS = {
'bn-Beng': 'bn',
'nb-NO': 'nb'
}
export const COUNTRY_I18N_EXCEPTIONS = {
'bn-Beng': 'bn',
'nb-NO': 'nb',
'zh-Hant': 'zh',
'zh-Hans': 'zh'
}
async function syncStylesPerLanguage (locale) {
switch (locale) {
// All the latin languages