Re-enable german translation
parent
e628556d1f
commit
d87c643715
|
@ -118,9 +118,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
case 'en':
|
case 'en':
|
||||||
return AppLanguage.en
|
return AppLanguage.en
|
||||||
// DISABLED until this translation is fixed -prf
|
case 'de':
|
||||||
// case 'de':
|
return AppLanguage.de
|
||||||
// return AppLanguage.de
|
|
||||||
case 'es':
|
case 'es':
|
||||||
return AppLanguage.es
|
return AppLanguage.es
|
||||||
case 'fr':
|
case 'fr':
|
||||||
|
|
|
@ -3,8 +3,7 @@ import {i18n} from '@lingui/core'
|
||||||
|
|
||||||
import {useLanguagePrefs} from '#/state/preferences'
|
import {useLanguagePrefs} from '#/state/preferences'
|
||||||
import {messages as messagesEn} from '#/locale/locales/en/messages'
|
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 messagesId} from '#/locale/locales/id/messages'
|
||||||
import {messages as messagesEs} from '#/locale/locales/es/messages'
|
import {messages as messagesEs} from '#/locale/locales/es/messages'
|
||||||
import {messages as messagesFr} from '#/locale/locales/fr/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) {
|
export async function dynamicActivate(locale: AppLanguage) {
|
||||||
switch (locale) {
|
switch (locale) {
|
||||||
// DISABLED until this translation is fixed -prf
|
case AppLanguage.de: {
|
||||||
// case AppLanguage.de: {
|
i18n.loadAndActivate({locale, messages: messagesDe})
|
||||||
// i18n.loadAndActivate({locale, messages: messagesDe})
|
break
|
||||||
// break
|
}
|
||||||
// }
|
|
||||||
case AppLanguage.es: {
|
case AppLanguage.es: {
|
||||||
i18n.loadAndActivate({locale, messages: messagesEs})
|
i18n.loadAndActivate({locale, messages: messagesEs})
|
||||||
break
|
break
|
||||||
|
|
|
@ -12,11 +12,10 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||||
let mod: any
|
let mod: any
|
||||||
|
|
||||||
switch (locale) {
|
switch (locale) {
|
||||||
// DISABLED until this translation is fixed -prf
|
case AppLanguage.de: {
|
||||||
// case AppLanguage.de: {
|
mod = await import(`./locales/de/messages`)
|
||||||
// mod = await import(`./locales/de/messages`)
|
break
|
||||||
// break
|
}
|
||||||
// }
|
|
||||||
case AppLanguage.es: {
|
case AppLanguage.es: {
|
||||||
mod = await import(`./locales/es/messages`)
|
mod = await import(`./locales/es/messages`)
|
||||||
break
|
break
|
||||||
|
|
|
@ -6,8 +6,7 @@ interface Language {
|
||||||
|
|
||||||
export enum AppLanguage {
|
export enum AppLanguage {
|
||||||
en = 'en',
|
en = 'en',
|
||||||
// DISABLED until this translation is fixed -prf
|
de = 'de',
|
||||||
// de = 'de',
|
|
||||||
es = 'es',
|
es = 'es',
|
||||||
fr = 'fr',
|
fr = 'fr',
|
||||||
hi = 'hi',
|
hi = 'hi',
|
||||||
|
@ -26,8 +25,7 @@ interface AppLanguageConfig {
|
||||||
|
|
||||||
export const APP_LANGUAGES: AppLanguageConfig[] = [
|
export const APP_LANGUAGES: AppLanguageConfig[] = [
|
||||||
{code2: AppLanguage.en, name: 'English'},
|
{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.es, name: 'Español'},
|
||||||
{code2: AppLanguage.fr, name: 'Français'},
|
{code2: AppLanguage.fr, name: 'Français'},
|
||||||
{code2: AppLanguage.hi, name: 'हिंदी'},
|
{code2: AppLanguage.hi, name: 'हिंदी'},
|
||||||
|
|
Loading…
Reference in New Issue