no message
Former-commit-id: dfb70c261eb670133d905f25fc525f59d01a05f2 Former-commit-id: 38532f4c1cd8b63afadd21d80e4f7a56200ecbdf Former-commit-id: 589c68cc6aad2aadb828be5bda04c9eea2ad0bed
This commit is contained in:
@@ -7,10 +7,13 @@ const sourceMapEnabled = isProduction
|
|||||||
: config.dev.cssSourceMap
|
: config.dev.cssSourceMap
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
loaders: utils.cssLoaders({
|
loaders: {
|
||||||
sourceMap: sourceMapEnabled,
|
...utils.cssLoaders({
|
||||||
extract: isProduction
|
sourceMap: sourceMapEnabled,
|
||||||
}),
|
extract: isProduction
|
||||||
|
}),
|
||||||
|
i18n: '@kazupon/vue-i18n-loader'
|
||||||
|
},
|
||||||
cssSourceMap: sourceMapEnabled,
|
cssSourceMap: sourceMapEnabled,
|
||||||
cacheBusting: config.dev.cacheBusting,
|
cacheBusting: config.dev.cacheBusting,
|
||||||
transformToRequire: {
|
transformToRequire: {
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
"xlsx": "^0.12.0"
|
"xlsx": "^0.12.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@kazupon/vue-i18n-loader": "^0.2.1",
|
||||||
"autoprefixer": "^7.1.2",
|
"autoprefixer": "^7.1.2",
|
||||||
"babel-core": "^6.22.1",
|
"babel-core": "^6.22.1",
|
||||||
"babel-eslint": "^7.1.1",
|
"babel-eslint": "^7.1.1",
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
<i18n>
|
||||||
|
{
|
||||||
|
"cn": {
|
||||||
|
"hello": "你好!"
|
||||||
|
},
|
||||||
|
"en": {
|
||||||
|
"hello": "hello world!"
|
||||||
|
},
|
||||||
|
"ja": {
|
||||||
|
"hello": "こんにちは、世界!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</i18n>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<el-button>Hello</el-button>
|
<el-button>{{$t('hello')}}</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user