feat: i18n support

This commit is contained in:
AnotiaWang
2025-02-12 15:20:41 +08:00
parent 272f417e80
commit 6d6124d4ef
21 changed files with 1226 additions and 294 deletions

12
i18n.config.ts Normal file
View File

@ -0,0 +1,12 @@
import en from '~/i18n/en.json'
import zh from '~/i18n/zh.json'
export default defineI18nConfig(() => ({
legacy: false,
fallbackLocale: 'en',
availableLocales: ['en', 'zh'],
messages: {
en,
zh,
},
}))