diff --git a/frontend/config/webpack.config.common.js b/frontend/config/webpack.config.common.js index 5a85a3f7..ebc5c82a 100644 --- a/frontend/config/webpack.config.common.js +++ b/frontend/config/webpack.config.common.js @@ -22,7 +22,12 @@ const webpackConfig = { { test: /\.vue$/, loader: 'vue-loader', - include: [ helpers.root('src') ] + include: [ helpers.root('src') ], + options: { + loaders: { + i18n: '@kazupon/vue-i18n-loader' + } + } }, { test: /\.js$/, diff --git a/frontend/package.json b/frontend/package.json index 6b366b32..b672688d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -36,6 +36,7 @@ "vue-cookies": "^1.7.0", "vue-flatpickr-component": "^8.1.5", "vue-github-button": "^1.1.2", + "vue-i18n": "^8.18.1", "vue-moment": "^4.1.0", "vue-observe-visibility": "^0.4.6", "vue-router": "~3.0", @@ -51,6 +52,7 @@ "@babel/plugin-syntax-import-meta": "~7.2", "@babel/polyfill": "~7.2", "@babel/preset-env": "^7.9.0", + "@kazupon/vue-i18n-loader": "^0.5.0", "@vue/babel-preset-app": "^4.1.2", "@vue/cli-plugin-babel": "^4.1.0", "@vue/cli-service": "^4.2.3", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 323a7651..8a8d0dad 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -6,7 +6,6 @@