[ ] π Documentation (updates to the documentation or readme)
[x] π Bug fix (a non-breaking change that fixes an issue)
[ ] π Enhancement (improving an existing functionality like performance)
[ ] β¨ New feature (a non-breaking change that adds functionality)
[ ] β οΈ Breaking change (fix or feature that would cause existing functionality to 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.
π Linked issue
2351
β 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
orpages
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
orchild
). 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