Implemented multi-language support for the application: - Added @nuxtjs/i18n plugin configuration - Created locale files for English (en-US) and Chinese (zh-CN) - Updated components to use translation keys - Added language switcher in header - Configured VSCode i18n-ally settings - Prepared translation infrastructure for future language expansions
11 lines
249 B
TypeScript
11 lines
249 B
TypeScript
import { currentLocales } from './i18n'
|
|
|
|
export default defineI18nConfig(() => {
|
|
return {
|
|
legacy: false,
|
|
availableLocales: currentLocales.map(l => l.code),
|
|
fallbackLocale: 'zh-CN',
|
|
fallbackWarn: true,
|
|
missingWarn: true,
|
|
}
|
|
})
|