parent
2101f358db
commit
6aab864a89
After Width: | Height: | Size: 1.0 KiB |
@ -0,0 +1,12 @@
|
|||||||
|
import Vue from 'vue';
|
||||||
|
import VueI18n from 'vue-i18n'
|
||||||
|
import messages from './messages';
|
||||||
|
|
||||||
|
Vue.use(VueI18n)
|
||||||
|
|
||||||
|
const i18n = new VueI18n({
|
||||||
|
locale: 'zh-CN',
|
||||||
|
messages
|
||||||
|
});
|
||||||
|
|
||||||
|
export default i18n;
|
@ -0,0 +1,18 @@
|
|||||||
|
export default {
|
||||||
|
en: {
|
||||||
|
message: {
|
||||||
|
home: 'Home',
|
||||||
|
explore: 'Explore',
|
||||||
|
library: 'Library',
|
||||||
|
search: 'Search'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'zh-CN': {
|
||||||
|
message: {
|
||||||
|
home: '首页',
|
||||||
|
explore: '发现',
|
||||||
|
library: '歌单',
|
||||||
|
search: '搜索'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in new issue