mirror of
https://github.com/SomboChea/ui
synced 2024-12-24 21:24:26 +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 translationJP from './translations/ja-JP.json';
|
||||
import translationUA from './translations/uk-UA.json';
|
||||
import translationKM from './translations/km-KH.json';
|
||||
|
||||
const languages = {
|
||||
'en-US': {
|
||||
@ -35,6 +36,9 @@ const languages = {
|
||||
'uk-UA': {
|
||||
translation: translationUA,
|
||||
},
|
||||
'km-KH': {
|
||||
translation: translationKM,
|
||||
}
|
||||
};
|
||||
|
||||
type Language = keyof typeof languages;
|
||||
@ -48,7 +52,7 @@ i18n
|
||||
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
|
||||
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
|
||||
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',
|
||||
resources: languages,
|
||||
debug: false,
|
||||
|
Loading…
Reference in New Issue
Block a user