Signed-off-by: 吴文峰 <kevin@lmve.net>
This commit is contained in:
2026-04-14 21:42:39 +08:00
parent 9ecab34b15
commit bb6c9fbecb
11 changed files with 1183 additions and 24 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
import { createI18n } from 'vue-i18n'
import { createI18n, useI18n as _useI18n } from 'vue-i18n'
import zh from './zh.js'
import en from './en.js'
// 兼容 uni-app 的 useI18n 导出
export const useI18n = _useI18n
// 获取本地语言设置,默认中文
function getLocale() {
// 从本地存储读取