Add i18n
Former-commit-id: c7fe41b748c5af0afe4049b5db0f1f572a4613b4
This commit is contained in:
+9
-7
@@ -50,13 +50,6 @@ module.exports = {
|
||||
propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME
|
||||
})
|
||||
)
|
||||
// i18n
|
||||
config.module
|
||||
.rule('i18n')
|
||||
.resourceQuery(/blockType=i18n/)
|
||||
.use('i18n')
|
||||
.loader('@kazupon/vue-i18n-loader')
|
||||
.end()
|
||||
// svg
|
||||
const svgRule = config.module.rule('svg')
|
||||
svgRule.uses.clear()
|
||||
@@ -87,5 +80,14 @@ module.exports = {
|
||||
.add('@/mock')
|
||||
.end()
|
||||
}
|
||||
},
|
||||
// i18n
|
||||
pluginOptions: {
|
||||
i18n: {
|
||||
locale: 'zh-chs',
|
||||
fallbackLocale: 'en',
|
||||
localeDir: 'locales',
|
||||
enableInSFC: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user