From ac90f3cd28bdc4bd17bbd0781d839b49dda6d582 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 20:36:12 +0800 Subject: [PATCH] no message Former-commit-id: f8f9cdb7231f8a77fe9151b716611e6f38764d26 Former-commit-id: 7dc07e14f51ad5ecbfdbe4f34b4009323fefc87e Former-commit-id: f26ca65e120f24930ecc0f0a510bf847356271c1 --- src/i18n/index.js | 12 ++---------- src/i18n/lang/cn.js | 4 ++++ src/i18n/lang/en.js | 4 ++++ 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 src/i18n/lang/cn.js create mode 100644 src/i18n/lang/en.js diff --git a/src/i18n/index.js b/src/i18n/index.js index 4bfd5afa..d2fe90ec 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -6,15 +6,7 @@ Vue.use(VueI18n) export default new VueI18n({ locale: 'CN', messages: { - en: { - message: { - hello: 'hello world' - } - }, - cn: { - message: { - hello: '你好、世界' - } - } + 'CN': require('./lang/cn'), + 'EN': require('./lang/en') } }) diff --git a/src/i18n/lang/cn.js b/src/i18n/lang/cn.js new file mode 100644 index 00000000..c7a234c7 --- /dev/null +++ b/src/i18n/lang/cn.js @@ -0,0 +1,4 @@ +export const message = { + language: '语言', + hello: '你好,世界' +} diff --git a/src/i18n/lang/en.js b/src/i18n/lang/en.js new file mode 100644 index 00000000..5f22c184 --- /dev/null +++ b/src/i18n/lang/en.js @@ -0,0 +1,4 @@ +export const message = { + language: 'language', + hello: 'hello world' +}