From 2936a6f121b4a93bb35c9ce8228b79b7afab833c Mon Sep 17 00:00:00 2001 From: FairyEver <1711467488@qq.com> Date: Wed, 28 Aug 2019 09:33:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E5=88=87=E6=8D=A2=E6=BC=94=E7=A4=BA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 876d871397ccb22619543820691942bf1ece9b91 [formerly 876d871397ccb22619543820691942bf1ece9b91 [formerly 876d871397ccb22619543820691942bf1ece9b91 [formerly 876d871397ccb22619543820691942bf1ece9b91 [formerly 1ac87ba7d5a23eda87fcd7f82f8633bd9926d5ee [formerly 3898b5988b112d0f89f5d753ec86375f59488a78]]]]] Former-commit-id: 5ccbe2b813b51163e819c5c31def40b79399e831 Former-commit-id: 43d3967817f9fa2ad8dcf56a0452573328d68f00 Former-commit-id: c731c53f4114955cfa197e34a9bc25003403e590 [formerly 4d75a77a29a4e541f9fdccc5790a470b59716a80] Former-commit-id: d86e449f43c650c5b412273e77f6201568f6cf9e Former-commit-id: 957f9eabd4b47d4f0f63a5e4255378365893fac8 Former-commit-id: 431d8be6b93c674935c1a8c677cf388e9e0c0f41 Former-commit-id: 094252d0290bca4ef2b550f6122ffdeca25b8471 Former-commit-id: bf86e0fe0a8e3b8c60f3d3eefd809bc3c2248aef --- d2-admin.babel | 45 +++++++++++++++++++ .../components/header-locales/index.vue | 4 +- src/locales/en.json | 11 ++++- src/locales/ja.json | 11 ++++- src/locales/zh-chs.json | 11 ++++- src/locales/zh-cht.json | 11 ++++- src/menu/modules/demo-playground.js | 3 +- src/router/modules/playground.js | 3 +- src/views/demo/playground/locales/index.vue | 22 +++++++++ 9 files changed, 113 insertions(+), 8 deletions(-) create mode 100644 src/views/demo/playground/locales/index.vue diff --git a/d2-admin.babel b/d2-admin.babel index 537dd2cc..0da7e2b7 100644 --- a/d2-admin.babel +++ b/d2-admin.babel @@ -40,6 +40,51 @@ + + page + + + demo + + + playground + + + locales + + + text + false + + + + + + en-US + false + + + ja-JP + false + + + zh-CHS + false + + + zh-CHT + false + + + + + + + + + + + false diff --git a/src/layout/header-aside/components/header-locales/index.vue b/src/layout/header-aside/components/header-locales/index.vue index a5fd389e..f2ebf023 100644 --- a/src/layout/header-aside/components/header-locales/index.vue +++ b/src/layout/header-aside/components/header-locales/index.vue @@ -8,8 +8,8 @@ {{ language.label }} diff --git a/src/locales/en.json b/src/locales/en.json index 63a33dfa..cbcf023e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,3 +1,12 @@ { - "_name": "English" + "_name": "English", + "page": { + "demo": { + "playground": { + "locales": { + "text": "D2Admin is a fully open source and free enterprise back-end product front-end integration solution, using the latest front-end technology stack, has prepared most of the project preparations, and with a lot of sample code to help the management system agile development." + } + } + } + } } diff --git a/src/locales/ja.json b/src/locales/ja.json index 5f74259a..656b3235 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1,3 +1,12 @@ { - "_name": "日本語" + "_name": "日本語", + "page": { + "demo": { + "playground": { + "locales": { + "text": "D2Adminは、最新のフロントエンドテクノロジースタックを使用した、完全にオープンソースの無料エンタープライズバックエンド製品フロントエンド統合ソリューションであり、プロジェクトのほとんどの準備を整えており、システムのアジャイル開発の管理に役立つ多くのサンプルコードを備えています。" + } + } + } + } } diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index a272cee2..06dad757 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -1,3 +1,12 @@ { - "_name": "简体中文" + "_name": "简体中文", + "page": { + "demo": { + "playground": { + "locales": { + "text": "D2Admin 是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,已经做好大部分项目前期准备工作,并且带有大量示例代码,助力管理系统敏捷开发。" + } + } + } + } } diff --git a/src/locales/zh-cht.json b/src/locales/zh-cht.json index ee7f22ac..ac5c8911 100644 --- a/src/locales/zh-cht.json +++ b/src/locales/zh-cht.json @@ -1,3 +1,12 @@ { - "_name": "繁體中文" + "_name": "繁體中文", + "page": { + "demo": { + "playground": { + "locales": { + "text": "D2Admin 是一個完全 開源免費 的企業中後台產品前端集成方案,使用最新的前端技術棧,已經做好大部分項目前期準備工作,並且帶有大量示例代碼,助力管理系統敏捷開發。" + } + } + } + } } diff --git a/src/menu/modules/demo-playground.js b/src/menu/modules/demo-playground.js index dcaaf04a..4200500f 100644 --- a/src/menu/modules/demo-playground.js +++ b/src/menu/modules/demo-playground.js @@ -105,6 +105,7 @@ export default { { path: `${pre}add-routes/routes`, title: '添加页面', icon: 'file-o' } ] }, - { path: `${pre}env`, title: '环境信息', icon: 'exclamation-circle' } + { path: `${pre}env`, title: '环境信息', icon: 'exclamation-circle' }, + { path: `${pre}locales`, title: '国际化', icon: 'language' } ])('/demo/playground/') } diff --git a/src/router/modules/playground.js b/src/router/modules/playground.js index a0b97247..c6451f04 100644 --- a/src/router/modules/playground.js +++ b/src/router/modules/playground.js @@ -38,6 +38,7 @@ export default { { path: 'log/error', name: `${pre}log-error`, component: _import('demo/playground/log/error'), meta: { ...meta, title: '错误捕捉' } }, { path: 'log/log', name: `${pre}log-log`, component: _import('demo/playground/log/log'), meta: { ...meta, title: '日志记录' } }, { path: 'add-routes/routes', name: `${pre}add-routes-routes`, component: _import('demo/playground/add-routes/routes'), meta: { ...meta, title: '添加页面' } }, - { path: 'env', name: `${pre}env`, component: _import('demo/playground/env'), meta: { ...meta, title: '环境信息' } } + { path: 'env', name: `${pre}env`, component: _import('demo/playground/env'), meta: { ...meta, title: '环境信息' } }, + { path: 'locales', name: `${pre}locales`, component: _import('demo/playground/locales'), meta: { ...meta, title: '国际化' } } ])('demo-playground-') } diff --git a/src/views/demo/playground/locales/index.vue b/src/views/demo/playground/locales/index.vue new file mode 100644 index 00000000..064755e2 --- /dev/null +++ b/src/views/demo/playground/locales/index.vue @@ -0,0 +1,22 @@ + + + + + + {{ language.label }} + + + + + + + + \ No newline at end of file
+ + + {{ language.label }} + + +