no message

Former-commit-id: dfb70c261eb670133d905f25fc525f59d01a05f2
Former-commit-id: 38532f4c1cd8b63afadd21d80e4f7a56200ecbdf
Former-commit-id: 589c68cc6aad2aadb828be5bda04c9eea2ad0bed
This commit is contained in:
李杨
2018-02-13 23:34:20 +08:00
parent 928458b19f
commit 508ca330bc
3 changed files with 23 additions and 5 deletions

View File

@@ -7,10 +7,13 @@ const sourceMapEnabled = isProduction
: config.dev.cssSourceMap
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
loaders: {
...utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
i18n: '@kazupon/vue-i18n-loader'
},
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {

View File

@@ -37,6 +37,7 @@
"xlsx": "^0.12.0"
},
"devDependencies": {
"@kazupon/vue-i18n-loader": "^0.2.1",
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-eslint": "^7.1.1",

View File

@@ -1,3 +1,17 @@
<i18n>
{
"cn": {
"hello": "你好!"
},
"en": {
"hello": "hello world!"
},
"ja": {
"hello": "こんにちは、世界!"
}
}
</i18n>
<template>
<el-button>Hello</el-button>
<el-button>{{$t('hello')}}</el-button>
</template>