From 4548790ced13cd568ad27cb560cd526d5cb6d90b Mon Sep 17 00:00:00 2001 From: laihanbin <512412344@qq.com> Date: Mon, 8 Apr 2024 14:38:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=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 --- README.md | 2 +- src/App.vue | 2 + src/components/NavHeader.vue | 23 +++++++++++- src/composables/use-i18n.ts | 60 ++++++++++++++++++++++++++++++ src/composables/use-local-cache.ts | 12 ++++++ src/config/game.ts | 16 +++++--- src/locale/en-US.json | 28 ++++++++++++++ src/locale/ja-JP.json | 27 ++++++++++++++ src/locale/zh-CN.json | 27 ++++++++++++++ src/views/game/[level].vue | 14 ++++--- src/views/index.vue | 11 ++++-- src/views/record/[date].vue | 11 ++++-- src/views/settings/custom.vue | 19 ++++++---- 13 files changed, 222 insertions(+), 30 deletions(-) create mode 100644 src/composables/use-i18n.ts create mode 100644 src/locale/en-US.json create mode 100644 src/locale/ja-JP.json create mode 100644 src/locale/zh-CN.json diff --git a/README.md b/README.md index 0e7eb4e..ac5bf88 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ - [ ] 本地缓存 - [ ] 彩色方块 - [x] 游戏音效 -- [ ] i18n +- [x] i18n - [ ] 积分商店,积分收集、兑换 - [ ] 道具系统 diff --git a/src/App.vue b/src/App.vue index 6b2355b..581b348 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,9 @@