This commit is contained in:
zhongjin 2024-04-06 22:58:39 +08:00
parent 0db2a6df4f
commit daa6eee02c
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import deepObjectExtend from 'new-dashboard/utils/deep-object-extend'; import deepObjectExtend from 'new-dashboard/utils/deep-object-extend';
var ACTIVE_LOCALE = 'en'; var ACTIVE_LOCALE = 'zh-cn';
if (ACTIVE_LOCALE !== 'en') { if (ACTIVE_LOCALE !== 'en') {
require('moment/locale/' + ACTIVE_LOCALE); require('moment/locale/' + ACTIVE_LOCALE);
} }

View File

@ -4,14 +4,15 @@ import './backbone-i18n';
// Locales // Locales
import en from 'new-dashboard/i18n/locales/en'; import en from 'new-dashboard/i18n/locales/en';
import cn from 'new-dashboard/i18n/locales/zh-cn';
Vue.use(VueI18n); Vue.use(VueI18n);
// Create VueI18n instance with options // Create VueI18n instance with options
const i18n = new VueI18n({ const i18n = new VueI18n({
locale: 'en', locale: 'cn',
messages: { messages: {
en cn
} }
}); });