From 0d3df25a94bb678fdda58de79379b16e427f5a1e Mon Sep 17 00:00:00 2001 From: landaiqing Date: Mon, 28 Apr 2025 11:49:58 +0800 Subject: [PATCH] :sparkles: Add i18n support --- frontend/src/components/toolbar/Toolbar.vue | 140 ++++++++++++++++++-- frontend/src/i18n/index.ts | 55 ++++++++ frontend/src/i18n/locales/en-US.ts | 33 +++++ frontend/src/i18n/locales/index.ts | 7 + frontend/src/i18n/locales/zh-CN.ts | 33 +++++ frontend/src/main.ts | 2 + frontend/src/stores/configStore.ts | 79 ++++++++++- frontend/src/stores/logStore.ts | 107 +++++++++++++++ 8 files changed, 440 insertions(+), 16 deletions(-) create mode 100644 frontend/src/i18n/index.ts create mode 100644 frontend/src/i18n/locales/en-US.ts create mode 100644 frontend/src/i18n/locales/index.ts create mode 100644 frontend/src/i18n/locales/zh-CN.ts create mode 100644 frontend/src/stores/logStore.ts diff --git a/frontend/src/components/toolbar/Toolbar.vue b/frontend/src/components/toolbar/Toolbar.vue index 1cb65b2..a08d970 100644 --- a/frontend/src/components/toolbar/Toolbar.vue +++ b/frontend/src/components/toolbar/Toolbar.vue @@ -1,35 +1,59 @@