File tree Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change 1
- # : globe_with_meridians : vue-i18n-loader
1
+ < h1 align = " center " > vue-i18n-loader</ h1 >
2
2
3
- [ ![ CircleCI] ( https://circleci.com/gh/kazupon/vue-i18n-loader.svg?style=svg )] ( https://circleci.com/gh/kazupon/vue-i18n-loader )
4
- [ ![ codecov] ( https://codecov.io/gh/kazupon/vue-i18n-loader/branch/dev/graph/badge.svg )] ( https://codecov.io/gh/kazupon/vue-i18n-loader )
5
- [ ![ npm] ( https://img.shields.io/npm/v/@kazupon/vue-i18n-loader.svg )] ( https://www.npmjs.com/package/@kazupon/vue-i18n-loader )
3
+ <p align =" center " ><img width =" 373px " height =" 168px " src =" ./assets/vue-i18n-loader.png " alt =" Vue I18n Loader logo " ></p >
4
+
5
+ <p align =" center " >
6
+ <a href =" https://circleci.com/gh/kazupon/vue-i18n-loader " ><img src =" https://circleci.com/gh/kazupon/vue-i18n-loader.svg?style=svg " alt =" Build Status " ></a >
7
+ </p >
8
+ <a href =" https://codecov.io/gh/kazupon/vue-i18n-loader " ><img src =" https://codecov.io/gh/kazupon/vue-i18n-loader/branch/dev/graph/badge.svg " alt =" codecov " ></a >
9
+ <a href =" https://www.npmjs.com/package/@kazupon/vue-i18n-loader " ><img src =" https://img.shields.io/npm/v/@kazupon/vue-i18n-loader.svg " alt =" npm " ></a >
10
+ </p >
6
11
7
12
vue-i18n loader for custom blocks
8
13
@@ -67,9 +72,26 @@ new Vue({
67
72
68
73
### Webpack Config
69
74
70
- configure webpack config for ` vue-loader ` (v11.3 later):
75
+ ` vue-loader ` (v15 later):
76
+
77
+ ``` javascript
78
+ // for vue.config.js (Vue CLI)
79
+ module .exports = {
80
+ chainWebpack : config => {
81
+ config .module
82
+ .rule (' i18n' )
83
+ .resourceQuery (/ blockType=i18n/ )
84
+ .type (' javascript/auto' )
85
+ .use (' i18n' )
86
+ .loader (' @kazupon/vue-i18n-loader' )
87
+ }
88
+ }
89
+ ```
90
+
91
+ ` vue-loader ` (~ v14.x):
71
92
72
93
``` javascript
94
+ // for webpack config file
73
95
module .exports = {
74
96
module: {
75
97
rules: [{
You can’t perform that action at this time.
0 commit comments