From 7e84d020cac8fe4f03303750f3de80907a7ec2bb Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Wed, 22 May 2019 14:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=9B=BD=E8=AF=AD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 2fed3ac1f2125a17f6a1de911cb161c3c0af1468 [formerly 2fed3ac1f2125a17f6a1de911cb161c3c0af1468 [formerly 2fed3ac1f2125a17f6a1de911cb161c3c0af1468 [formerly 2fed3ac1f2125a17f6a1de911cb161c3c0af1468 [formerly 9f53058812f73d9c7b5b2efc2e62f95748cff32f [formerly e4f62faa260e49c6b14ee6c87300e32e2b265145]]]]] Former-commit-id: 635539de87a375eb92359bd7d1d77f9df21d680f Former-commit-id: ab6dd07fd08611194803a7f27b5d1e71f21fb914 Former-commit-id: e3ce68b034c5b18cc576ad95944228e4fa79a711 [formerly 2ea5df265f898946acddbf589533aec1466721e7] Former-commit-id: e2b1336d0ed5c6dd0973a926b974d9fe37c7c17f Former-commit-id: a907e97354f783d4d44d5fefe758d3178d350cf7 Former-commit-id: cd9ec9fd4fe269bea17156e0c7e910e719768fee Former-commit-id: 16294ee7248c65232f9b0e812d1005a754eb76dc Former-commit-id: b08e5ab1d54d6513411139bfa7039431e3626d74 --- locales.babel.REMOVED.git-id | 2 +- src/locales/en.json | 53 +++++++++++++++++++ src/locales/ja.json | 53 +++++++++++++++++++ src/locales/zh-chs.json | 53 +++++++++++++++++++ src/locales/zh-cht.json | 53 +++++++++++++++++++ src/views/system/error/404/index.vue | 2 +- .../index/components/d2-help-btn/index.vue | 22 +++++--- .../index/components/d2-page-cover/index.vue | 8 +-- src/views/system/index/page.vue | 18 +++---- 9 files changed, 241 insertions(+), 23 deletions(-) diff --git a/locales.babel.REMOVED.git-id b/locales.babel.REMOVED.git-id index a3ecac05..8a21c886 100644 --- a/locales.babel.REMOVED.git-id +++ b/locales.babel.REMOVED.git-id @@ -1 +1 @@ -3376b9ca40eaa0fc62436964fc54b565c79521c5 \ No newline at end of file +ae7f3c4ffa4b6ebe316947483e293276b9eb95fb \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index a0c9bb4d..88483ea3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -9,6 +9,59 @@ }, "views": { "system": { + "error": { + "404": { + "back": "Back to home" + } + }, + "index": { + "cover": { + "build-time": "Build time", + "github-fork-alt": "Fork me on GitHub", + "sub-title": "Elegant mid-background integration solution", + "title": "D2 Admin" + }, + "help": { + "chat": { + "title": { + "qq": "QQ group [ 1500 / 2000 people ]", + "we": "Invite into the WeChat group after becoming friends with the author" + } + }, + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/" + }, + "text": { + "doc": "Document", + "github": "Homepage", + "issues": "Issues", + "new-issue": "New issue" + } + }, + "title": "Help" + }, + "page": { + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/" + }, + "text": { + "d2-projects": "Open source organization", + "daily": "Daily", + "doc": "Document", + "ice": "Flying ice", + "juejin": "Nuggets", + "start-kit": "Starter version" + } + }, + "we": { + "button": "WeChat Public", + "introduce": "Official public number, mainly push front-end technical articles, framework resources, learning tutorials, and D2 series project update information", + "title": "JS Daily" + } + } + }, "login": { "footer": { "button": { diff --git a/src/locales/ja.json b/src/locales/ja.json index 8c8eef77..5f524b92 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -9,6 +9,59 @@ }, "views": { "system": { + "error": { + "404": { + "back": "家に戻る" + } + }, + "index": { + "cover": { + "build-time": "構築時間", + "github-fork-alt": "Fork me on GitHub", + "sub-title": "エレガントなミッドバックグラウンド統合ソリューション", + "title": "D2 Admin" + }, + "help": { + "chat": { + "title": { + "qq": "QQグループ[1500/2000人]", + "we": "著者と友達になった後にWeChatグループに招待する" + } + }, + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/" + }, + "text": { + "doc": "文書", + "github": "ホームページ", + "issues": "問題", + "new-issue": "新しい号" + } + }, + "title": "ヘルプ" + }, + "page": { + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/" + }, + "text": { + "d2-projects": "オープンソース組織", + "daily": "日刊新聞", + "doc": "文書", + "ice": "飛んでいる氷", + "juejin": "ナゲット", + "start-kit": "スターターバージョン" + } + }, + "we": { + "button": "WeChatパブリック番号", + "introduce": "公式の公開番号。主にフロントエンドの技術記事、フレームワークリソース、学習チュートリアル、およびD2シリーズプロジェクトの更新情報をプッシュします。", + "title": "今日のフロントエンド" + } + } + }, "login": { "footer": { "button": { diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json index 1429fca6..656fca1b 100644 --- a/src/locales/zh-chs.json +++ b/src/locales/zh-chs.json @@ -9,6 +9,59 @@ }, "views": { "system": { + "error": { + "404": { + "back": "返回首页" + } + }, + "index": { + "cover": { + "build-time": "构建时间", + "github-fork-alt": "Fork me on GitHub", + "sub-title": "优雅的中后台集成方案", + "title": "D2 Admin" + }, + "help": { + "chat": { + "title": { + "qq": "QQ群 [ 1500+ / 2000 人 ]", + "we": "与作者成为好友后邀请进微信群" + } + }, + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/zh/" + }, + "text": { + "doc": "文档", + "github": "主页", + "issues": "issues", + "new-issue": "New issue" + } + }, + "title": "帮助" + }, + "page": { + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/zh/" + }, + "text": { + "d2-projects": "开源组织", + "daily": "日报", + "doc": "文档", + "ice": "飞冰", + "juejin": "掘金", + "start-kit": "简化版" + } + }, + "we": { + "button": "微信公众号", + "introduce": "官方公众号,主要推送前端技术类文章、框架资源、学习教程,以及 D2 系列项目更新信息", + "title": "今日前端" + } + } + }, "login": { "footer": { "button": { diff --git a/src/locales/zh-cht.json b/src/locales/zh-cht.json index 4951a521..fa767f56 100644 --- a/src/locales/zh-cht.json +++ b/src/locales/zh-cht.json @@ -9,6 +9,59 @@ }, "views": { "system": { + "error": { + "404": { + "back": "返回首頁" + } + }, + "index": { + "cover": { + "build-time": "構建時間", + "github-fork-alt": "Fork me on GitHub", + "sub-title": "優雅的中後台集成方案", + "title": "D2 Admin" + }, + "help": { + "chat": { + "title": { + "qq": "QQ群 [ 1500 / 2000 人 ]", + "we": "與作者成為好友後邀請進微信群" + } + }, + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/" + }, + "text": { + "doc": "文檔", + "github": "主頁", + "issues": "issues", + "new-issue": "New issue" + } + }, + "title": "幫助" + }, + "page": { + "link": { + "href": { + "doc": "https://doc.d2admin.fairyever.com/zh/" + }, + "text": { + "d2-projects": "開源組織", + "daily": "日報", + "doc": "文檔", + "ice": "飛冰", + "juejin": "掘金", + "start-kit": "簡化版" + } + }, + "we": { + "button": "微信公眾號", + "introduce": "官方公眾號,主要推送前端技術類文章、框架資源、學習教程,以及 D2 系列項目更新信息", + "title": "今日前端" + } + } + }, "login": { "footer": { "button": { diff --git a/src/views/system/error/404/index.vue b/src/views/system/error/404/index.vue index d265b7b9..12ac37c5 100644 --- a/src/views/system/error/404/index.vue +++ b/src/views/system/error/404/index.vue @@ -2,7 +2,7 @@

404 page not found

- 返回首页 + {{ $t('views.system.error.404.back') }}
diff --git a/src/views/system/index/components/d2-help-btn/index.vue b/src/views/system/index/components/d2-help-btn/index.vue index 29a17f4c..f4fdfc0c 100644 --- a/src/views/system/index/components/d2-help-btn/index.vue +++ b/src/views/system/index/components/d2-help-btn/index.vue @@ -5,7 +5,7 @@ style="width: 138px;" @click="dialogVisible = true"> @@ -13,28 +13,34 @@ - 主页 + {{ $t('views.system.index.help.link.text.github') }} - + - 中文文档 + {{ $t('views.system.index.help.link.text.doc') }} - issues + {{ $t('views.system.index.help.link.text.issues') }} - New issue + {{ $t('views.system.index.help.link.text.new-issue') }} - + - + diff --git a/src/views/system/index/components/d2-page-cover/index.vue b/src/views/system/index/components/d2-page-cover/index.vue index 1045ef35..81162b51 100644 --- a/src/views/system/index/components/d2-page-cover/index.vue +++ b/src/views/system/index/components/d2-page-cover/index.vue @@ -3,15 +3,15 @@ -

D2 Admin {{$version}}

-

优雅的中后台集成方案

-

FINAL BUILD TIME {{$buildTime}}

+

{{ $t('views.system.index.cover.title') }} {{$version}}

+

{{ $t('views.system.index.cover.sub-title') }}

+

{{ $t('views.system.index.cover.build-time') }} {{$buildTime}}

Fork me on GitHub + :alt="$t('views.system.index.cover.github-fork-alt')"> diff --git a/src/views/system/index/page.vue b/src/views/system/index/page.vue index 5068870d..deac0acd 100644 --- a/src/views/system/index/page.vue +++ b/src/views/system/index/page.vue @@ -4,21 +4,21 @@