updated translation config for khmer

This commit is contained in:
Sambo Chea 2020-05-05 19:14:11 +07:00
parent 35be83f560
commit 3c5fd072f0

View File

@ -9,6 +9,7 @@ import translationFR from './translations/fr-FR.json';
import translationCN from './translations/zh-CN.json'; import translationCN from './translations/zh-CN.json';
import translationJP from './translations/ja-JP.json'; import translationJP from './translations/ja-JP.json';
import translationUA from './translations/uk-UA.json'; import translationUA from './translations/uk-UA.json';
import translationKM from './translations/km-KH.json';
const languages = { const languages = {
'en-US': { 'en-US': {
@ -35,6 +36,9 @@ const languages = {
'uk-UA': { 'uk-UA': {
translation: translationUA, translation: translationUA,
}, },
'km-KH': {
translation: translationKM,
}
}; };
type Language = keyof typeof languages; type Language = keyof typeof languages;
@ -48,7 +52,7 @@ i18n
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US' // in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language, lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
fallbackLng: 'en-US', fallbackLng: 'en-US',
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA'], whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA', 'km-KH'],
load: 'currentOnly', load: 'currentOnly',
resources: languages, resources: languages,
debug: false, debug: false,