no message
Former-commit-id: 81ed749f0cc0919e3560d59536a7a2bfb3d32cec [formerly 81ed749f0cc0919e3560d59536a7a2bfb3d32cec [formerly 81ed749f0cc0919e3560d59536a7a2bfb3d32cec [formerly 81ed749f0cc0919e3560d59536a7a2bfb3d32cec [formerly efed8ea3185d767af26a8c7ac0022056443ccddf [formerly d2ef4da90c85f2aaffe40ad9582961b86fcf79e6]]]]] Former-commit-id: dafb9ad722dc1cbfafbe7e935de82bce4c332178 Former-commit-id: 0af9a05e9e579c3c65a39c0fba5f23c9a0da64a2 Former-commit-id: c2f06e6fa5c46fd71c14f7a24a17644873855fc8 [formerly cd9acd8f3b7207615d4c94cbca727c36e8d7bf24] Former-commit-id: e9bafe627ad08e8d749003ccdc89a7102c8a7d50 Former-commit-id: 78a36587924dd602ff6e162bb7e7db4e324aaec7 Former-commit-id: 8c626144ba89409472f214b95a075e6917235600 Former-commit-id: 2a7f31432021e3ac207f813730311db6a30ccdcc Former-commit-id: 4feb9a4d4a6fb4accd617a1c90ce7cdb81fd591c
This commit is contained in:
parent
3416e8fd76
commit
99e8058039
4
.env
4
.env
|
|
@ -1,5 +1,5 @@
|
||||||
VUE_APP_TITLE=D2Admin
|
VUE_APP_TITLE=D2Admin
|
||||||
VUE_APP_API=/api/
|
VUE_APP_API=/api/
|
||||||
VUE_APP_REPO=https://github.com/d2-projects/d2-admin
|
VUE_APP_REPO=https://github.com/d2-projects/d2-admin
|
||||||
VUE_APP_I18N_LOCALE=zh-chs
|
VUE_APP_I18N_LOCALE=en
|
||||||
VUE_APP_I18N_FALLBACK_LOCALE=en
|
VUE_APP_I18N_FALLBACK_LOCALE=zh-chs
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,6 @@ Vue.prototype.$languages = Object.keys(messages).map(langlage => ({
|
||||||
|
|
||||||
export default new VueI18n({
|
export default new VueI18n({
|
||||||
locale: util.cookies.get('lang') || process.env.VUE_APP_I18N_LOCALE,
|
locale: util.cookies.get('lang') || process.env.VUE_APP_I18N_LOCALE,
|
||||||
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
|
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE,
|
||||||
messages
|
messages
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,8 @@ module.exports = {
|
||||||
// i18n
|
// i18n
|
||||||
pluginOptions: {
|
pluginOptions: {
|
||||||
i18n: {
|
i18n: {
|
||||||
locale: 'zh-chs',
|
locale: 'en',
|
||||||
fallbackLocale: 'en',
|
fallbackLocale: 'zh-chs',
|
||||||
localeDir: 'locales',
|
localeDir: 'locales',
|
||||||
enableInSFC: true
|
enableInSFC: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue