Disable spanish translation until it's more thoroughly reviewed (#2362)
* Disable spanish translation until it's more thoroughly reviewed * missed a linezio/stable
parent
f0532865ce
commit
6e7098e456
|
@ -119,8 +119,9 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
|
|||
// DISABLED until this translation is fixed -prf
|
||||
// case 'de':
|
||||
// return AppLanguage.de
|
||||
case 'es':
|
||||
return AppLanguage.es
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// case 'es':
|
||||
// return AppLanguage.es
|
||||
default:
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ import {messages as messagesJa} from '#/locale/locales/ja/messages'
|
|||
import {messages as messagesFr} from '#/locale/locales/fr/messages'
|
||||
// DISABLED until this translation is fixed -prf
|
||||
// import {messages as messagesDe} from '#/locale/locales/de/messages'
|
||||
import {messages as messagesEs} from '#/locale/locales/es/messages'
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// import {messages as messagesEs} from '#/locale/locales/es/messages'
|
||||
|
||||
import {sanitizeAppLanguageSetting} from '#/locale/helpers'
|
||||
import {AppLanguage} from '#/locale/languages'
|
||||
|
@ -35,10 +36,11 @@ export async function dynamicActivate(locale: AppLanguage) {
|
|||
// i18n.loadAndActivate({locale, messages: messagesDe})
|
||||
// break
|
||||
// }
|
||||
case AppLanguage.es: {
|
||||
i18n.loadAndActivate({locale, messages: messagesEs})
|
||||
break
|
||||
}
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// case AppLanguage.es: {
|
||||
// i18n.loadAndActivate({locale, messages: messagesEs})
|
||||
// break
|
||||
// }
|
||||
default: {
|
||||
i18n.loadAndActivate({locale, messages: messagesEn})
|
||||
break
|
||||
|
|
|
@ -29,10 +29,11 @@ export async function dynamicActivate(locale: AppLanguage) {
|
|||
// mod = await import(`./locales/de/messages`)
|
||||
// break
|
||||
// }
|
||||
case AppLanguage.es: {
|
||||
mod = await import(`./locales/es/messages`)
|
||||
break
|
||||
}
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// case AppLanguage.es: {
|
||||
// mod = await import(`./locales/es/messages`)
|
||||
// break
|
||||
// }
|
||||
default: {
|
||||
mod = await import(`./locales/en/messages`)
|
||||
break
|
||||
|
|
|
@ -11,7 +11,8 @@ export enum AppLanguage {
|
|||
fr = 'fr',
|
||||
// DISABLED until this translation is fixed -prf
|
||||
// de = 'de',
|
||||
es = 'es',
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// es = 'es',
|
||||
}
|
||||
|
||||
interface AppLanguageConfig {
|
||||
|
@ -26,7 +27,8 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
|
|||
{code2: AppLanguage.fr, name: 'Français'},
|
||||
// DISABLED until this translation is fixed -prf
|
||||
// {code2: AppLanguage.de, name: 'Deutsch'},
|
||||
{code2: AppLanguage.es, name: 'Español'},
|
||||
// DISABLED until this translation is more thoroughly reviewed -prf
|
||||
// {code2: AppLanguage.es, name: 'Español'},
|
||||
]
|
||||
|
||||
export const LANGUAGES: Language[] = [
|
||||
|
|
Loading…
Reference in New Issue