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

Custom prefixes #70

Merged
merged 3 commits into from
Jan 10, 2023
Merged

Conversation

tanerkay
Copy link
Contributor

Adds backwards compatible support for custom prefixes. This aims to cover one part of #20.

I've used the term "custom prefixes" instead of "slugs" as the latter is used elsewhere in the codebase to reference parts of the path that get localized.

The approach is to preserve the route name prefix as the application locale, and to modify the URL generators to use a custom prefix, if provided.

If custom prefixes are not set, or there is not a custom prefix for any specific locale, the locale string itself is used.

@tanerkay tanerkay changed the title Custom prefixes (#20) Custom prefixes Jan 10, 2023
@ivanvermeyen ivanvermeyen merged commit 6780fed into codezero-be:master Jan 10, 2023
@ivanvermeyen
Copy link
Contributor

Looks great! Thanks!

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.

2 participants