feat: add Japanese language support, three-language subtitles for all demo scenes

This commit is contained in:
2026-06-10 11:55:03 +08:00
parent 25aafb034f
commit 0071a34acf
9 changed files with 130 additions and 3 deletions

View File

@@ -1,9 +1,10 @@
import { ref } from 'vue'
import zh from '@/locales/zh.json'
import en from '@/locales/en.json'
import ja from '@/locales/ja.json'
const messages = { zh, en } as const
type Lang = 'zh' | 'en'
const messages = { zh, en, ja } as const
type Lang = 'zh' | 'en' | 'ja'
const currentLang = ref<Lang>(
(localStorage.getItem('lang') as Lang) || 'zh'