zh-cn
This commit is contained in:
parent
0db2a6df4f
commit
daa6eee02c
@ -1,6 +1,6 @@
|
||||
import deepObjectExtend from 'new-dashboard/utils/deep-object-extend';
|
||||
|
||||
var ACTIVE_LOCALE = 'en';
|
||||
var ACTIVE_LOCALE = 'zh-cn';
|
||||
if (ACTIVE_LOCALE !== 'en') {
|
||||
require('moment/locale/' + ACTIVE_LOCALE);
|
||||
}
|
||||
|
@ -4,14 +4,15 @@ import './backbone-i18n';
|
||||
|
||||
// Locales
|
||||
import en from 'new-dashboard/i18n/locales/en';
|
||||
import cn from 'new-dashboard/i18n/locales/zh-cn';
|
||||
|
||||
Vue.use(VueI18n);
|
||||
|
||||
// Create VueI18n instance with options
|
||||
const i18n = new VueI18n({
|
||||
locale: 'en',
|
||||
locale: 'cn',
|
||||
messages: {
|
||||
en
|
||||
cn
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user