mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import locales from './maintenance/locales.json'
|
|
|
|
// https://vue-i18n.intlify.dev/guide/essentials/fallback#explicit-fallback-with-decision-maps
|
|
const fallbackLocale = Object.fromEntries(
|
|
locales
|
|
.filter((locale) => locale.fallback)
|
|
.map((locale) => [locale.code, locale.fallback]),
|
|
) as Record<string, string[]>
|
|
fallbackLocale.default = ['en']
|
|
|
|
export default defineI18nConfig(() => ({
|
|
legacy: false,
|
|
fallbackLocale,
|
|
}))
|