From bcbae262b812ae6e5eb746db4b9712eb09e08d18 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 28 Dec 2025 23:14:23 +0800 Subject: [PATCH] =?UTF-8?q?dashboard=E5=A2=9E=E5=8A=A0=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/App.vue | 16 ++--- dashboard/src/composables/useI18n.js | 14 +++++ dashboard/src/globals.ts | 2 + dashboard/src/main.js | 6 +- dashboard/src/utils/i18n.js | 93 ++++++++++++++++++++++++++++ dashboard/vite.config.ts | 7 +++ 6 files changed, 129 insertions(+), 9 deletions(-) create mode 100644 dashboard/src/composables/useI18n.js create mode 100644 dashboard/src/utils/i18n.js diff --git a/dashboard/src/App.vue b/dashboard/src/App.vue index 53a3478..e9b4759 100644 --- a/dashboard/src/App.vue +++ b/dashboard/src/App.vue @@ -72,9 +72,8 @@ " class="border bg-red-200 px-5 py-3 text-base text-red-900" > - You are not logged in. - Login to - access dashboard. + {{ $t('You are not logged in.') }} + {{ $t('Login') }} {{ $t('to access dashboard.') }} @@ -89,13 +88,14 @@