diff --git a/.env b/.env index c9de428d..8ad3bfc8 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ VUE_APP_TITLE=D2Admin VUE_APP_API=/api/ VUE_APP_REPO=https://github.com/d2-projects/d2-admin -VUE_APP_I18N_LOCALE=en -VUE_APP_I18N_FALLBACK_LOCALE=zh-chs +VUE_APP_I18N_LOCALE=zh-chs +VUE_APP_I18N_FALLBACK_LOCALE=en diff --git a/vue.config.js b/vue.config.js index 1f5200af..cb5c5de8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -110,8 +110,8 @@ module.exports = { // i18n pluginOptions: { i18n: { - locale: 'en', - fallbackLocale: 'zh-chs', + locale: 'zh-chs', + fallbackLocale: 'en', localeDir: 'locales', enableInSFC: true }