mirror of
https://github.com/SomboChea/ui
synced 2024-11-24 06:54:27 +07:00
updated translation config for khmer
This commit is contained in:
parent
35be83f560
commit
3c5fd072f0
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user