-
Notifications
You must be signed in to change notification settings - Fork 463
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
Add fallbackLocale
to nuxt.config options
#2753
Comments
You're right, the configuration split between I'm open to suggestions on how to improve/clarify this while taking into account the reasoning behind moving |
I was also struggling with this and needed quite some time to figure it out. I expected the config to work like it does for many other modules I have worked with. Configuration either in the Before any code changes I suggest to update the documentation and clarify following points:
I think this would help already very much. |
Describe the feature
Figuring out how to set the
fallbackLocale
seems to be a quite common question and point of confusion (happened to myself just now and checked on the nuxt discord). It feels very natural to want to stick that property intonuxt.config
and not create a seperatei18n.config.ts
.I'd like to propose the addition of that setting to the possible settings to the i18n object in
nuxt.config
. (If this has been asked and denied earlier then I apologize, couldn't find an issue though).We're dealing with ~10 layer apps that extend off of a shared nuxt layer in a monorepo and adding 10 i18n.config files feels like an suboptimal solution for something that could also be achieved with a single line of code.
Thanks!
Additional information
Final checks
The text was updated successfully, but these errors were encountered: