Skip to content
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

fix(i18n): ignore i18n modifiers #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alolu
Copy link

@Alolu Alolu commented Jun 20, 2024

Description

This PR solves the issue #149, where router dependent functions such as localePath or nuxtLinkLocale would break if i18n was on with the strategy prefix_and_default, the bug might occur with other strategies, this has not been tested for the moment.

An option has been added ignoreI18nModifiers set by default to false to assure backwards compatibility, setting the option to true will prevent the generator from changing the routes names.

nuxtTypedRouter: {
   ignoreI18nModifiers: true //default false
}

I haven't found any functionality that has been broken from this change yet

@victorgarciaesgi
Copy link
Owner

Thanks for your PR! Sorry the code is a mess, i have a plan to refactor everything for 4.0 but lack motivation 😂
I'll test this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants