From 44657a90bc6171a16596116adb619e4acae027cc Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Fri, 3 Jan 2025 00:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=A2=9E=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/public/index.html | 1 + jshERP-web/public/static/translate.js | 5035 +++++++++++++++++ jshERP-web/src/App.vue | 16 +- .../src/components/setting/SettingDrawer.vue | 94 +- 4 files changed, 5144 insertions(+), 2 deletions(-) create mode 100644 jshERP-web/public/static/translate.js diff --git a/jshERP-web/public/index.html b/jshERP-web/public/index.html index 811e182a6..912c78949 100644 --- a/jshERP-web/public/index.html +++ b/jshERP-web/public/index.html @@ -238,6 +238,7 @@ /* 滚动条优化 end */ + diff --git a/jshERP-web/src/components/setting/SettingDrawer.vue b/jshERP-web/src/components/setting/SettingDrawer.vue index 2d9a37cd6..26bf8b18f 100644 --- a/jshERP-web/src/components/setting/SettingDrawer.vue +++ b/jshERP-web/src/components/setting/SettingDrawer.vue @@ -83,6 +83,91 @@ +
+

语言设置

+
+
{{langSetTitle}}
+
+ + 简体中文 + 繁體中文 + English + 한국어 + しろうと + Tiếng Việt + हिन्दी + Русский язык + Français + УкраїнськаName + Norge + color name + nederlands + Pilipino + ກະຣຸນາ + తెలుగుQFontDatabase + Română + नेपालीName + Kreyòl ayisyen + český + Svenska + Malagasy + ဗာရမ် + پښتوName + คนไทย + Արմենյան + Persian + Kurdî + Türkçe + български + Malay + Kiswahili + ଓଡିଆ + ÍslandName + Íris + ខ្មែរKCharselect unicode block name + ગુજરાતી + Slovenská + ಕನ್ನಡ್Name + היברית + magyar + मराठीName + தாமில் + eesti keel + മലമാലം + ᐃᓄᒃᑎᑐᑦ + بالعربية + Deutsch + slovenščina + বেঙ্গালী + اوردو + azerbaijani + português + lifiava + afrikaans + 汤加语 + ελληνικά + IndonesiaName + Español + dansk + amharic + ਪੰਜਾਬੀName + albanian + Lietuva + italiano + Malti + suomi + català + hrvatski + bosnian + Polski + latviešu + Maori + +
+
+
+ +

其他设置

@@ -121,8 +206,10 @@ data() { return { visible: true, + langSetTitle: '选择语言', + currentLang: translate.language.getCurrent(), colorList - } + } }, watch: { @@ -143,6 +230,8 @@ this.$store.dispatch('ToggleMultipage', this.multipage) } }, + created () { + }, methods: { showDrawer() { this.visible = true @@ -188,6 +277,9 @@ handleFixSiderbar (fixed) { this.fixSiderbar = fixed this.$store.dispatch('ToggleFixSiderbar', fixed) + }, + handleChangeLang(value) { + translate.changeLanguage(value) } }, }