12 lines
249 B
TypeScript
12 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,
|
||
|
}
|
||
|
})
|