* i18n: add ja.yaml * i18n: polish zh-cn.yaml, apply ja.yaml to i18n * i18n: use the languages themselves to describe languges
22 lines
354 B
JavaScript
22 lines
354 B
JavaScript
import Vue from 'vue'
|
|
import VueI18n from 'vue-i18n'
|
|
import en from './en.yaml'
|
|
import pt from './pt.yaml'
|
|
import ja from './ja.yaml'
|
|
import zhCN from './zh-cn.yaml'
|
|
|
|
Vue.use(VueI18n)
|
|
|
|
const i18n = new VueI18n({
|
|
locale: 'en',
|
|
fallbackLocale: 'en',
|
|
messages: {
|
|
'en': en,
|
|
'pt': pt,
|
|
'ja': ja,
|
|
'zh-cn': zhCN
|
|
}
|
|
})
|
|
|
|
export default i18n
|