-
Notifications
You must be signed in to change notification settings - Fork 143
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
Allow to hide_locale when using host_locales config #239
Allow to hide_locale when using host_locales config #239
Conversation
Hi! Thanks for this PR Could you please fix the RuboCop offences and push force? Please run specs using Could you also please clarify what you are trying to archive? Locale is automatically hidden when using |
@tagliala I updated the description Pull Request and I added some specs. |
Hi @WaKeMaTTa Ok, I know exactly this issue (#171, from 2017) and you can find it fixed and documented on the branch 10-dev Your tests pass on 10-dev. Now I'm not using route_translator anymore in production, so that has not been merged because I don't know the side effects for other usages, but I can definitely release a version 10.0 Relevant commit and issues: I did not release this change because the only comment in #171 is from someone that was using all the languages on all the domains. But again, I would support the case that makes most sense of all, leaving the developer the ability to provide a custom implementation |
It works as intended. Thanks. |
Welcome. @WaKeMaTTa what do you think about this issue? Should we release a new major with that change? Should we preserve the ability of loading all languages on all hosts? |
@tagliala I think this issue of having duplicated routes deserves a new major version. Because having more routes than necessary make things slower and confusing. I saw that config |
This weekend I will check if I can preserve the ability to have all languages on a single host for some edge cases (multi-domain / multi-language websites where the domain just sets the default locale), or provide some documentation on how to do that I also think the time has come and I should merge this change in the stable version of Route Translator |
As per #171 (comment), I will release 10.0 with consistency lambdas enabled by default but I will keep the half-working implementation of the engine I just need some tweaks to the wiki and to the docs |
@WaKeMaTTa released, please give a try |
@tagliala done, looks great! 🎉 |
This is what I want to accomplish in this Pull Request:
If you run my spec in
master
branch:test/integration/host_locales_with_hide_locale_test.rb
You will see that fails.