From 47b0ce2df57d1e70a76c81e3977bb7445774dbe0 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Mon, 9 Jul 2018 14:40:49 +0800 Subject: [PATCH 1/3] i18n --- src/components/Dialog.vue | 12 +-- src/components/Toolbar.vue | 8 +- ...omponent.vue => AbstractInputComponent.js} | 10 ++- .../dialog-input-components/CodeMirror.vue | 6 +- .../dialog-input-components/Input.vue | 6 +- .../dialog-input-components/Select.vue | 8 +- src/components/i18n.js | 76 +++++++++++++++++++ 7 files changed, 105 insertions(+), 21 deletions(-) rename src/components/dialog-input-components/{AbstractInputComponent.vue => AbstractInputComponent.js} (75%) create mode 100644 src/components/i18n.js diff --git a/src/components/Dialog.vue b/src/components/Dialog.vue index 1fbe30b..967aaed 100644 --- a/src/components/Dialog.vue +++ b/src/components/Dialog.vue @@ -5,7 +5,7 @@
- {{ request.title }} + {{ t(request.title) }}
@@ -17,8 +17,8 @@
@@ -114,6 +114,7 @@ \ No newline at end of file + diff --git a/src/components/Toolbar.vue b/src/components/Toolbar.vue index cea057a..d189237 100644 --- a/src/components/Toolbar.vue +++ b/src/components/Toolbar.vue @@ -3,7 +3,7 @@