You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice to get access to the very basics of the i18n config in nitro.
Just to give a simple example, we're trying to verify a language passed in query params is actually supported by our website. Or load/return data for every possible locale.
There's of course the option to hardcode/copy it, however I think it'd be preferable to be able to pull i18n related configs straight from the source - similar to what useI18n().locales provides.
Additional information
Would you be willing to help implement this feature?
Could this feature be implemented as a module?
Final checks
Read the contribution guide (The contribution guideline of nuxt-modules/i18n is compliant with Nuxt too).
@warflash I had a similar use case where i needed to validate a local based on a query paramter in a server route. I hacked a workaround that is placing my i18n config in a seperate file and attaching it to my runtimeConfig
Describe the feature
It'd be nice to get access to the very basics of the i18n config in nitro.
Just to give a simple example, we're trying to verify a language passed in query params is actually supported by our website. Or load/return data for every possible locale.
There's of course the option to hardcode/copy it, however I think it'd be preferable to be able to pull i18n related configs straight from the source - similar to what
useI18n().locales
provides.Additional information
Final checks
The text was updated successfully, but these errors were encountered: