nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.75k stars 483 forks source link

Support for `defineRouteRules` #3019

Open warflash opened 4 months ago

warflash commented 4 months ago

Describe the feature

Nuxt added support for inline route rules, when using locale prefixed routes however - the rules don't seem to match/be triggered. More broadly speaking a section or note on how to deal with nuxt routeRules and prefixed routes might be nice, maybe even a helper function to pass config to and get a transformed result back

Additional information

Final checks

BobbieGoede commented 4 months ago

Depending on the order of execution for the pages hooks this will probably involve reimplementing this functionality inside this module 😥 Hopefully this won't be as complicated as adding support for definePageMeta was, but it's implementation seems similar to it (before experimental.scanPageMeta was added).