diff --git a/locales.babel.REMOVED.git-id b/locales.babel.REMOVED.git-id
index d5b926e9..9f036f7b 100644
--- a/locales.babel.REMOVED.git-id
+++ b/locales.babel.REMOVED.git-id
@@ -1 +1 @@
-961b48ccb8ed6a26747b373e793852ded4210ed3
\ No newline at end of file
+b6bb25353a9e136a4ba55d703d528bc069f5b6d6
\ No newline at end of file
diff --git a/src/i18n.js b/src/i18n.js
index 2b285c50..4098f333 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -16,8 +16,15 @@ function loadLocaleMessages () {
return messages
}
+const messages = loadLocaleMessages()
+
+Vue.prototype.$languages = Object.keys(messages).map(langlage => ({
+ label: messages[langlage]._name,
+ value: langlage
+}))
+
export default new VueI18n({
locale: process.env.VUE_APP_I18N_LOCALE || 'en',
fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',
- messages: loadLocaleMessages()
+ messages
})
diff --git a/src/locales/en.json b/src/locales/en.json
index d06a86a8..243039d6 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1,4 +1,5 @@
{
+ "_name": "English",
"public": {
"error-message": {
"form-not-valid": "Form Check Failure"
@@ -39,26 +40,6 @@
"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": {
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 62a64fa1..939891b2 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -1,4 +1,5 @@
{
+ "_name": "日本語",
"public": {
"error-message": {
"form-not-valid": "フォームの検証に失敗しました"
@@ -39,26 +40,6 @@
"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": {
diff --git a/src/locales/zh-chs.json b/src/locales/zh-chs.json
index af720f5f..0d31d52e 100644
--- a/src/locales/zh-chs.json
+++ b/src/locales/zh-chs.json
@@ -1,4 +1,5 @@
{
+ "_name": "简体中文",
"public": {
"error-message": {
"form-not-valid": "表单校验失败"
@@ -39,26 +40,6 @@
"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": {
diff --git a/src/locales/zh-cht.json b/src/locales/zh-cht.json
index 9cea6bec..5471b632 100644
--- a/src/locales/zh-cht.json
+++ b/src/locales/zh-cht.json
@@ -1,4 +1,5 @@
{
+ "_name": "繁體中文",
"public": {
"error-message": {
"form-not-valid": "表單校驗失敗"
@@ -39,26 +40,6 @@
"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": {
diff --git a/src/views/system/index/components/d2-help-btn/image/qq.jpg.REMOVED.git-id b/src/views/system/index/components/d2-help-btn/image/qq.jpg.REMOVED.git-id
deleted file mode 100644
index a957a237..00000000
--- a/src/views/system/index/components/d2-help-btn/image/qq.jpg.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-b27de32f6832b50dc5b8b1dc613060a81f88a8e9
\ No newline at end of file
diff --git a/src/views/system/index/components/d2-help-btn/image/we.jpg.REMOVED.git-id b/src/views/system/index/components/d2-help-btn/image/we.jpg.REMOVED.git-id
deleted file mode 100644
index b485920f..00000000
--- a/src/views/system/index/components/d2-help-btn/image/we.jpg.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-12bb778e8779f32a46ee756e6dbb890024b40f5d
\ No newline at end of file
diff --git a/src/views/system/index/components/d2-help-btn/index.vue b/src/views/system/index/components/d2-help-btn/index.vue
deleted file mode 100644
index f4fdfc0c..00000000
--- a/src/views/system/index/components/d2-help-btn/index.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-

-
-
-
-
-
- {{ $t('views.system.index.help.link.text.github') }}
-
-
-
- {{ $t('views.system.index.help.link.text.doc') }}
-
-
-
- {{ $t('views.system.index.help.link.text.issues') }}
-
-
-
- {{ $t('views.system.index.help.link.text.new-issue') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/system/index/page.vue b/src/views/system/index/page.vue
index deac0acd..424032da 100644
--- a/src/views/system/index/page.vue
+++ b/src/views/system/index/page.vue
@@ -23,19 +23,16 @@
-