Temporarily disable the german translation (#2360)

zio/stable
Paul Frazee 2023-12-28 12:07:08 -08:00 committed by GitHub
parent b326e1d3bd
commit 40a110c541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 13 deletions

View File

@ -116,8 +116,9 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
return AppLanguage.ja return AppLanguage.ja
case 'fr': case 'fr':
return AppLanguage.fr return AppLanguage.fr
case 'de': // DISABLED until this translation is fixed -prf
return AppLanguage.de // case 'de':
// return AppLanguage.de
case 'es': case 'es':
return AppLanguage.es return AppLanguage.es
default: default:

View File

@ -6,7 +6,8 @@ import {messages as messagesEn} from '#/locale/locales/en/messages'
import {messages as messagesHi} from '#/locale/locales/hi/messages' import {messages as messagesHi} from '#/locale/locales/hi/messages'
import {messages as messagesJa} from '#/locale/locales/ja/messages' import {messages as messagesJa} from '#/locale/locales/ja/messages'
import {messages as messagesFr} from '#/locale/locales/fr/messages' import {messages as messagesFr} from '#/locale/locales/fr/messages'
import {messages as messagesDe} from '#/locale/locales/de/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' import {messages as messagesEs} from '#/locale/locales/es/messages'
import {sanitizeAppLanguageSetting} from '#/locale/helpers' import {sanitizeAppLanguageSetting} from '#/locale/helpers'
@ -29,10 +30,11 @@ export async function dynamicActivate(locale: AppLanguage) {
i18n.loadAndActivate({locale, messages: messagesFr}) i18n.loadAndActivate({locale, messages: messagesFr})
break break
} }
case AppLanguage.de: { // DISABLED until this translation is fixed -prf
i18n.loadAndActivate({locale, messages: messagesDe}) // case AppLanguage.de: {
break // i18n.loadAndActivate({locale, messages: messagesDe})
} // break
// }
case AppLanguage.es: { case AppLanguage.es: {
i18n.loadAndActivate({locale, messages: messagesEs}) i18n.loadAndActivate({locale, messages: messagesEs})
break break

View File

@ -24,10 +24,11 @@ export async function dynamicActivate(locale: AppLanguage) {
mod = await import(`./locales/fr/messages`) mod = await import(`./locales/fr/messages`)
break break
} }
case AppLanguage.de: { // DISABLED until this translation is fixed -prf
mod = await import(`./locales/de/messages`) // case AppLanguage.de: {
break // mod = await import(`./locales/de/messages`)
} // break
// }
case AppLanguage.es: { case AppLanguage.es: {
mod = await import(`./locales/es/messages`) mod = await import(`./locales/es/messages`)
break break

View File

@ -9,7 +9,8 @@ export enum AppLanguage {
hi = 'hi', hi = 'hi',
ja = 'ja', ja = 'ja',
fr = 'fr', fr = 'fr',
de = 'de', // DISABLED until this translation is fixed -prf
// de = 'de',
es = 'es', es = 'es',
} }
@ -23,7 +24,8 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
{code2: AppLanguage.hi, name: 'हिंदी'}, {code2: AppLanguage.hi, name: 'हिंदी'},
{code2: AppLanguage.ja, name: '日本語'}, {code2: AppLanguage.ja, name: '日本語'},
{code2: AppLanguage.fr, name: 'Français'}, {code2: AppLanguage.fr, name: 'Français'},
{code2: AppLanguage.de, name: 'Deutsch'}, // DISABLED until this translation is fixed -prf
// {code2: AppLanguage.de, name: 'Deutsch'},
{code2: AppLanguage.es, name: 'Español'}, {code2: AppLanguage.es, name: 'Español'},
] ]