nuxt-modules / i18n

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

fix: custom child route localization #2743

Closed BobbieGoede closed 9 months ago

BobbieGoede commented 9 months ago

πŸ”— Linked issue

❓ Type of change

πŸ“š Description

Resolves #2351

Based on debugging this, I think we may be able to improve this functionality in the future. Currently we expect users to supply a full localized path the a child route using defineI18nRoute or pages in config (e.g. /parent/child), it would be better if users only have to provide localization for the child path segment (e.g. /child or child). This way the parent route could be renamed or the child route could be moved without having to update the custom route localization in multiple files.

πŸ“ Checklist