From 3299077db8b84f31721bfdfd2cd04ba977289631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Tue, 13 Feb 2018 21:08:01 +0800 Subject: [PATCH] no message Former-commit-id: 07c9ad367d783208789e834c572365af586eaabe Former-commit-id: 54230eb22ac1974f7343117f3d9a02c8e3bdf310 Former-commit-id: 7d8a2c68e87856bf833aa87525eb117888d5bc6b --- src/i18n/lang/cn.js | 1 - src/i18n/lang/en.js | 3 +-- src/pages/demo/plugins/vue-i18n/demo.vue | 13 +++++++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/i18n/lang/cn.js b/src/i18n/lang/cn.js index c7a234c7..7e4357f1 100644 --- a/src/i18n/lang/cn.js +++ b/src/i18n/lang/cn.js @@ -1,4 +1,3 @@ export const message = { - language: '语言', hello: '你好,世界' } diff --git a/src/i18n/lang/en.js b/src/i18n/lang/en.js index 5f22c184..a58d1a3d 100644 --- a/src/i18n/lang/en.js +++ b/src/i18n/lang/en.js @@ -1,4 +1,3 @@ export const message = { - language: 'language', - hello: 'hello world' + hello: 'Hello World' } diff --git a/src/pages/demo/plugins/vue-i18n/demo.vue b/src/pages/demo/plugins/vue-i18n/demo.vue index af60945a..2f81e427 100644 --- a/src/pages/demo/plugins/vue-i18n/demo.vue +++ b/src/pages/demo/plugins/vue-i18n/demo.vue @@ -1,12 +1,12 @@ @@ -14,7 +14,12 @@ export default { data () { return { - lang: '' + lang: 'CN' + } + }, + methods: { + handleChange (val) { + this.$i18n.locale = val } } }