feat: 前端新增日语多语言支持

- messages.ts 全量补充日文文案(です・ます 敬体),新增 locale.jaJP 语言名称
- index.ts 扩展 LocaleKey 与消息叶子校验,新增 ja-JP 语言包并支持浏览器 ja 自动识别
- LocaleSwitch 增加「日本語」切换项,App.vue 接入 Naive UI 日语组件与日期 locale
This commit is contained in:
2026-09-18 10:17:30 +08:00
parent a8ef91ed3d
commit 16e4c30456
4 changed files with 397 additions and 377 deletions
+1
View File
@@ -11,6 +11,7 @@ const { t, locale } = useI18n()
const options = computed(() => [
{ label: t('locale.zhCN'), value: 'zh-CN' },
{ label: t('locale.enUS'), value: 'en-US' },
{ label: t('locale.jaJP'), value: 'ja-JP' },
])
/** 切换语言 */