From 4a6fbce4851afa97babd0eff46cf39e3ee5e314b Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Fri, 9 Aug 2024 22:49:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E7=9A=84=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E6=94=AF=E6=8C=81=201.=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20jquery=20i18n=20js=20=E4=BE=9D=E8=B5=96=E5=92=8C?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=202.=20=E5=9C=A8=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=B7=BB=E5=8A=A0=E8=AF=AD=E8=A8=80=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/base.pug | 5 +++++ web/index.html | 3 +++ web/ipmi/index.html | 3 +++ web/kvm/index.html | 3 +++ web/login/index.html | 22 +++++++++++++++----- web/login/index.pug | 16 ++++++++++----- web/share/i18n/i18n_cn.json | 10 +++++++++ web/share/i18n/i18n_en.json | 10 +++++++++ web/share/js/i18n/i18n.js | 29 +++++++++++++++++++++++++++ web/share/js/i18n/jquery-3.7.1.min.js | 2 ++ web/share/js/i18n/jquery.i18n.min.js | 1 + web/vnc/index.html | 3 +++ 12 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 web/share/i18n/i18n_cn.json create mode 100644 web/share/i18n/i18n_en.json create mode 100644 web/share/js/i18n/i18n.js create mode 100644 web/share/js/i18n/jquery-3.7.1.min.js create mode 100644 web/share/js/i18n/jquery.i18n.min.js diff --git a/web/base.pug b/web/base.pug index 4bb50099..523b076f 100644 --- a/web/base.pug +++ b/web/base.pug @@ -55,6 +55,11 @@ html(lang="en") script(type="module") | import {main} from "#{js_dir}/#{main_js}.js"; | main(); + + script(src=`${js_dir}/i18n/jquery-3.7.1.min.js`) + script(src=`${js_dir}/i18n/jquery.i18n.min.js`) + script(src=`${js_dir}/i18n/i18n.js`) body(class=body_class) block body + diff --git a/web/index.html b/web/index.html index b92ee5f2..452502d6 100644 --- a/web/index.html +++ b/web/index.html @@ -43,6 +43,9 @@ + + +
diff --git a/web/ipmi/index.html b/web/ipmi/index.html index 5e50f4ce..2a272349 100644 --- a/web/ipmi/index.html +++ b/web/ipmi/index.html @@ -40,6 +40,9 @@ + + +
diff --git a/web/kvm/index.html b/web/kvm/index.html index f96f09ff..6b9327e8 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -55,6 +55,9 @@ + + +