Skip to content

Conversation

@lpheller
Copy link
Contributor

This pull request updates the logic for generating localized routes to provide more flexibility in whether the default locale uses a URL prefix. The main change is the introduction of a configuration option that controls if the default locale should have a URL prefix, making route generation more customizable.

Routing behavior improvements:

  • Updated makeTransRouteForLocale in src/Localize/TransRoute.php to use the translatable.default_locale_url_prefix config value to determine if the locale prefix should be used for the default locale, allowing developers to control whether the default locale appears in URLs. By default this will still be the case.

@lpheller lpheller requested a review from jannescb September 19, 2025 08:03
@jannescb
Copy link
Contributor

👍

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.

3 participants