Reorder the locales alphabetically and correct the name for Indonesian (#2483)
parent
0b2daa787c
commit
5cc46241d7
|
@ -1,6 +1,6 @@
|
||||||
/** @type {import('@lingui/conf').LinguiConfig} */
|
/** @type {import('@lingui/conf').LinguiConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
locales: ['en', 'hi', 'ja', 'fr', 'de', 'es', 'ko', 'es', 'pt-BR', 'uk', 'id'],
|
locales: ['en', 'de', 'es', 'fr', 'hi', 'id', 'ja', 'ko', 'pt-BR', 'uk'],
|
||||||
catalogs: [
|
catalogs: [
|
||||||
{
|
{
|
||||||
path: '<rootDir>/src/locale/locales/{locale}/messages',
|
path: '<rootDir>/src/locale/locales/{locale}/messages',
|
||||||
|
|
|
@ -113,14 +113,14 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
|
||||||
// DISABLED until this translation is fixed -prf
|
// DISABLED until this translation is fixed -prf
|
||||||
// case 'de':
|
// case 'de':
|
||||||
// return AppLanguage.de
|
// return AppLanguage.de
|
||||||
case 'id':
|
|
||||||
return AppLanguage.id
|
|
||||||
case 'es':
|
case 'es':
|
||||||
return AppLanguage.es
|
return AppLanguage.es
|
||||||
case 'fr':
|
case 'fr':
|
||||||
return AppLanguage.fr
|
return AppLanguage.fr
|
||||||
case 'hi':
|
case 'hi':
|
||||||
return AppLanguage.hi
|
return AppLanguage.hi
|
||||||
|
case 'id':
|
||||||
|
return AppLanguage.id
|
||||||
case 'ja':
|
case 'ja':
|
||||||
return AppLanguage.ja
|
return AppLanguage.ja
|
||||||
case 'ko':
|
case 'ko':
|
||||||
|
|
|
@ -27,10 +27,6 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||||
// i18n.loadAndActivate({locale, messages: messagesDe})
|
// i18n.loadAndActivate({locale, messages: messagesDe})
|
||||||
// break
|
// break
|
||||||
// }
|
// }
|
||||||
case AppLanguage.id: {
|
|
||||||
i18n.loadAndActivate({locale, messages: messagesId})
|
|
||||||
break
|
|
||||||
}
|
|
||||||
case AppLanguage.es: {
|
case AppLanguage.es: {
|
||||||
i18n.loadAndActivate({locale, messages: messagesEs})
|
i18n.loadAndActivate({locale, messages: messagesEs})
|
||||||
break
|
break
|
||||||
|
@ -43,6 +39,10 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||||
i18n.loadAndActivate({locale, messages: messagesHi})
|
i18n.loadAndActivate({locale, messages: messagesHi})
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
case AppLanguage.id: {
|
||||||
|
i18n.loadAndActivate({locale, messages: messagesId})
|
||||||
|
break
|
||||||
|
}
|
||||||
case AppLanguage.ja: {
|
case AppLanguage.ja: {
|
||||||
i18n.loadAndActivate({locale, messages: messagesJa})
|
i18n.loadAndActivate({locale, messages: messagesJa})
|
||||||
break
|
break
|
||||||
|
|
|
@ -17,10 +17,6 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||||
// mod = await import(`./locales/de/messages`)
|
// mod = await import(`./locales/de/messages`)
|
||||||
// break
|
// break
|
||||||
// }
|
// }
|
||||||
case AppLanguage.id: {
|
|
||||||
mod = await import(`./locales/id/messages`)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
case AppLanguage.es: {
|
case AppLanguage.es: {
|
||||||
mod = await import(`./locales/es/messages`)
|
mod = await import(`./locales/es/messages`)
|
||||||
break
|
break
|
||||||
|
@ -33,6 +29,10 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||||
mod = await import(`./locales/hi/messages`)
|
mod = await import(`./locales/hi/messages`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
case AppLanguage.id: {
|
||||||
|
mod = await import(`./locales/id/messages`)
|
||||||
|
break
|
||||||
|
}
|
||||||
case AppLanguage.ja: {
|
case AppLanguage.ja: {
|
||||||
mod = await import(`./locales/ja/messages`)
|
mod = await import(`./locales/ja/messages`)
|
||||||
break
|
break
|
||||||
|
|
|
@ -8,10 +8,10 @@ export enum AppLanguage {
|
||||||
en = 'en',
|
en = 'en',
|
||||||
// DISABLED until this translation is fixed -prf
|
// DISABLED until this translation is fixed -prf
|
||||||
// de = 'de',
|
// de = 'de',
|
||||||
id = 'id',
|
|
||||||
es = 'es',
|
es = 'es',
|
||||||
fr = 'fr',
|
fr = 'fr',
|
||||||
hi = 'hi',
|
hi = 'hi',
|
||||||
|
id = 'id',
|
||||||
ja = 'ja',
|
ja = 'ja',
|
||||||
ko = 'ko',
|
ko = 'ko',
|
||||||
pt_BR = 'pt-BR',
|
pt_BR = 'pt-BR',
|
||||||
|
@ -27,10 +27,10 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
|
||||||
{code2: AppLanguage.en, name: 'English'},
|
{code2: AppLanguage.en, name: 'English'},
|
||||||
// DISABLED until this translation is fixed -prf
|
// DISABLED until this translation is fixed -prf
|
||||||
// {code2: AppLanguage.de, name: 'Deutsch'},
|
// {code2: AppLanguage.de, name: 'Deutsch'},
|
||||||
{code2: AppLanguage.id, name: 'Indonesian'},
|
|
||||||
{code2: AppLanguage.es, name: 'Español'},
|
{code2: AppLanguage.es, name: 'Español'},
|
||||||
{code2: AppLanguage.fr, name: 'Français'},
|
{code2: AppLanguage.fr, name: 'Français'},
|
||||||
{code2: AppLanguage.hi, name: 'हिंदी'},
|
{code2: AppLanguage.hi, name: 'हिंदी'},
|
||||||
|
{code2: AppLanguage.id, name: 'Bahasa Indonesia'},
|
||||||
{code2: AppLanguage.ja, name: '日本語'},
|
{code2: AppLanguage.ja, name: '日本語'},
|
||||||
{code2: AppLanguage.ko, name: '한국어'},
|
{code2: AppLanguage.ko, name: '한국어'},
|
||||||
{code2: AppLanguage.pt_BR, name: 'Português (BR)'},
|
{code2: AppLanguage.pt_BR, name: 'Português (BR)'},
|
||||||
|
|
Loading…
Reference in New Issue