|
|
@@ -5,7 +5,8 @@ export enum Language {
|
|
|
Simplified = 'zh-CN',
|
|
|
Traditional = 'zh-TW',
|
|
|
English = 'en-US',
|
|
|
- Thai = 'th'
|
|
|
+ Thai = 'th',
|
|
|
+ VI = 'vi'
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -18,6 +19,7 @@ export function getClientLanguage() {
|
|
|
{ result: Language.Traditional, code: ['zh-TW'] },
|
|
|
{ result: Language.English, code: ['en', 'en-US'] },
|
|
|
{ result: Language.Thai, code: ['th', 'th-TH'] },
|
|
|
+ { result: Language.VI, code: ['vi', 'vi'] },
|
|
|
]
|
|
|
const lang = rules.find(rule => rule.code.includes(navigator.language))
|
|
|
return lang ? lang.result : Language.English
|
|
|
@@ -33,5 +35,6 @@ export function getLanguageList() {
|
|
|
{ label: '繁体中文', value: Language.Traditional },
|
|
|
{ label: 'English', value: Language.English },
|
|
|
{ label: 'ภาษาไทย', value: Language.Thai },
|
|
|
+ { label: 'Việt nam', value: Language.VI },
|
|
|
]
|
|
|
}
|