refactor: ♻️ (i18n/lang)将语言包从 TypeScript 文件迁移到 JSON 文件

- 将 en.ts 和 zh-cn.ts 文件分别重命名为 en.json 和 zh-cn.json

- 更新导入路径以使用新的 JSON 文件

- 删除旧的 TypeScript 语言包文件

#ICWF9O
This commit is contained in:
zimo493
2025-09-04 20:41:48 +08:00
parent 328e093612
commit 39f9676288
5 changed files with 187 additions and 195 deletions

View File

@@ -2,8 +2,8 @@ import type { App } from "vue";
import { createI18n } from "vue-i18n";
import { useAppStoreHook } from "@/store/modules/app-store";
// 本地语言包
import enLocale from "./package/en";
import zhCnLocale from "./package/zh-cn";
import enLocale from "./package/en.json";
import zhCnLocale from "./package/zh-cn.json";
const appStore = useAppStoreHook();