删除多国语
Former-commit-id: fff801dc61179cb85bd54de42c6d88b2942bc042
This commit is contained in:
@@ -23,12 +23,10 @@
|
|||||||
"screenfull": "^3.3.2",
|
"screenfull": "^3.3.2",
|
||||||
"ua-parser-js": "^0.7.18",
|
"ua-parser-js": "^0.7.18",
|
||||||
"vue": "^2.5.16",
|
"vue": "^2.5.16",
|
||||||
"vue-i18n": "^7.4.2",
|
|
||||||
"vue-router": "^3.0.1",
|
"vue-router": "^3.0.1",
|
||||||
"vuex": "^3.0.1"
|
"vuex": "^3.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@kazupon/vue-i18n-loader": "^0.3.0",
|
|
||||||
"@vue/cli-plugin-babel": "^3.0.0-rc.4",
|
"@vue/cli-plugin-babel": "^3.0.0-rc.4",
|
||||||
"@vue/cli-plugin-eslint": "^3.0.0-rc.4",
|
"@vue/cli-plugin-eslint": "^3.0.0-rc.4",
|
||||||
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.4",
|
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.4",
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
import Vue from 'vue'
|
|
||||||
import VueI18n from 'vue-i18n'
|
|
||||||
|
|
||||||
import cn from './lang/cn'
|
|
||||||
import ja from './lang/ja'
|
|
||||||
import en from './lang/en'
|
|
||||||
|
|
||||||
Vue.use(VueI18n)
|
|
||||||
|
|
||||||
export default new VueI18n({
|
|
||||||
locale: 'cn',
|
|
||||||
messages: {
|
|
||||||
cn,
|
|
||||||
ja,
|
|
||||||
en
|
|
||||||
}
|
|
||||||
})
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export default {
|
|
||||||
pub: {
|
|
||||||
pageHeader: {
|
|
||||||
demo: '示例'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export default {
|
|
||||||
pub: {
|
|
||||||
pageHeader: {
|
|
||||||
demo: 'Demo'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
export default {
|
|
||||||
pub: {
|
|
||||||
pageHeader: {
|
|
||||||
demo: 'サンプル'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,6 @@ import App from './App'
|
|||||||
import ElementUI from 'element-ui'
|
import ElementUI from 'element-ui'
|
||||||
import 'element-ui/lib/theme-chalk/index.css'
|
import 'element-ui/lib/theme-chalk/index.css'
|
||||||
import screenfull from 'screenfull'
|
import screenfull from 'screenfull'
|
||||||
import i18n from './i18n'
|
|
||||||
import '@/assets/svg-icons'
|
import '@/assets/svg-icons'
|
||||||
import '@/components'
|
import '@/components'
|
||||||
import '@/plugin/axios'
|
import '@/plugin/axios'
|
||||||
@@ -28,7 +27,6 @@ Vue.prototype.$baseUrl = process.env.BASE_URL
|
|||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
i18n,
|
|
||||||
render: h => h(App),
|
render: h => h(App),
|
||||||
created () {
|
created () {
|
||||||
// 处理路由 得到每一级的路由设置
|
// 处理路由 得到每一级的路由设置
|
||||||
|
|||||||
+1
-8
@@ -6,7 +6,7 @@ function resolve (dir) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 基础路径 注意发布之前要先修改这里
|
// 基础路径 注意发布之前要先修改这里
|
||||||
const baseUrl = '/d2-admin-preview-dev/'
|
const baseUrl = '/d2-admin-start-kit-preview/'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
baseUrl: baseUrl, // 根据你的实际情况更改这里
|
baseUrl: baseUrl, // 根据你的实际情况更改这里
|
||||||
@@ -17,13 +17,6 @@ module.exports = {
|
|||||||
// webpack 设置
|
// webpack 设置
|
||||||
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
|
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
// i18n
|
|
||||||
config.module
|
|
||||||
.rule('i18n')
|
|
||||||
.resourceQuery(/blockType=i18n/)
|
|
||||||
.use('i18n')
|
|
||||||
.loader('@kazupon/vue-i18n-loader')
|
|
||||||
.end()
|
|
||||||
// svg
|
// svg
|
||||||
const svgRule = config.module.rule('svg')
|
const svgRule = config.module.rule('svg')
|
||||||
svgRule.uses.clear()
|
svgRule.uses.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user