diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts index dddd6855..08953ff2 100644 --- a/src/locale/helpers.ts +++ b/src/locale/helpers.ts @@ -118,9 +118,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage { switch (lang) { case 'en': return AppLanguage.en - // DISABLED until this translation is fixed -prf - // case 'de': - // return AppLanguage.de + case 'de': + return AppLanguage.de case 'es': return AppLanguage.es case 'fr': diff --git a/src/locale/i18n.ts b/src/locale/i18n.ts index d0bc828c..d1a50a08 100644 --- a/src/locale/i18n.ts +++ b/src/locale/i18n.ts @@ -3,8 +3,7 @@ import {i18n} from '@lingui/core' import {useLanguagePrefs} from '#/state/preferences' import {messages as messagesEn} from '#/locale/locales/en/messages' -// DISABLED until this translation is fixed -prf -// import {messages as messagesDe} from '#/locale/locales/de/messages' +import {messages as messagesDe} from '#/locale/locales/de/messages' import {messages as messagesId} from '#/locale/locales/id/messages' import {messages as messagesEs} from '#/locale/locales/es/messages' import {messages as messagesFr} from '#/locale/locales/fr/messages' @@ -23,11 +22,10 @@ import {AppLanguage} from '#/locale/languages' */ export async function dynamicActivate(locale: AppLanguage) { switch (locale) { - // DISABLED until this translation is fixed -prf - // case AppLanguage.de: { - // i18n.loadAndActivate({locale, messages: messagesDe}) - // break - // } + case AppLanguage.de: { + i18n.loadAndActivate({locale, messages: messagesDe}) + break + } case AppLanguage.es: { i18n.loadAndActivate({locale, messages: messagesEs}) break diff --git a/src/locale/i18n.web.ts b/src/locale/i18n.web.ts index de5e5aa7..10e0fc7e 100644 --- a/src/locale/i18n.web.ts +++ b/src/locale/i18n.web.ts @@ -12,11 +12,10 @@ export async function dynamicActivate(locale: AppLanguage) { let mod: any switch (locale) { - // DISABLED until this translation is fixed -prf - // case AppLanguage.de: { - // mod = await import(`./locales/de/messages`) - // break - // } + case AppLanguage.de: { + mod = await import(`./locales/de/messages`) + break + } case AppLanguage.es: { mod = await import(`./locales/es/messages`) break diff --git a/src/locale/languages.ts b/src/locale/languages.ts index 7b19fbe2..0ed7823b 100644 --- a/src/locale/languages.ts +++ b/src/locale/languages.ts @@ -6,8 +6,7 @@ interface Language { export enum AppLanguage { en = 'en', - // DISABLED until this translation is fixed -prf - // de = 'de', + de = 'de', es = 'es', fr = 'fr', hi = 'hi', @@ -26,8 +25,7 @@ interface AppLanguageConfig { export const APP_LANGUAGES: AppLanguageConfig[] = [ {code2: AppLanguage.en, name: 'English'}, - // DISABLED until this translation is fixed -prf - // {code2: AppLanguage.de, name: 'Deutsch'}, + {code2: AppLanguage.de, name: 'Deutsch'}, {code2: AppLanguage.es, name: 'Español'}, {code2: AppLanguage.fr, name: 'Français'}, {code2: AppLanguage.hi, name: 'हिंदी'},