-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update i18n module and adapt config folder and trad files #203
base: main
Are you sure you want to change the base?
Conversation
|
}, | ||
{ | ||
code: locale, | ||
file: `nuxt.${locale}.default.json`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a good idea to split translations into multiple files. The default file won't be available into xilofone
export function isAvailableI18nLocale(locale: string): locale is typeof I18N_LOCALES[number] { | ||
return (I18N_LOCALES as unknown as string[]).includes(locale) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only rely on Nuxt I18n at runtime, not on constants. All the available translations are available on $i18n.locales
No description provided.