Skip to content

Commit

Permalink
feat: add EN/DE locale support
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Oct 24, 2020
1 parent 465e7d1 commit 161897f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"yaml": "^1.7.2"
},
"devDependencies": {
"@kazupon/vue-i18n-loader": "^0.5.0",
"@types/d3-scale": "^2.2.0",
"@types/d3-scale-chromatic": "^1.5.0",
"@types/d3-selection": "^1.4.1",
Expand Down
10 changes: 10 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ module.exports = {
*/
config.module.rule('js').exclude.add(/\.worker\.js$/)
config.module.rule('ts').exclude.add(/\.worker\.ts$/)
config.module
.rule('i18n')
.resourceQuery(/blockType=i18n/)
.type('javascript/auto')
.use('i18n')
.loader('@kazupon/vue-i18n-loader')
.end()
.use('yaml')
.loader('yaml-loader')
.end()
},
configureWebpack: {
module: {
Expand Down

0 comments on commit 161897f

Please sign in to comment.