- import zhHans from './zh-hans.js'
- import zhHant from './zh-hant.js'
- import en from './en.js'
- const lang = navigator.language.toLowerCase()
- let text = zhHans
- if (lang === 'zh-cn' || lang === 'zh') {
- text = zhHans
- } else if (lang === 'zh-tw' || lang === 'zh-hk') {
- text = zhHant
- } else {
- text = en
- }
- export default text
|