Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relevant issue(s)
#5080
What does this do?
A quick spike exploring what might be involved in accepting the user's language preferences from their browser settings (only relevant to multi language sites)
Why was this needed?
We currently give more weight than intended to the default locale when falling back to it without a param value (when the site is configured not to have the default locale in the URL - which is the most common choice).
Implementation notes
(In other words, I may have justified nobody working on this as it's more trouble than it's worth!)
Notes to reviewer
The unexpected finding on
collect_locales
(155799e) might be useful though - although maybe it could go inAlaveteliLocalization.set_locales
? - if there is ever a reported problem with the language switcher working incorrectly after a locale change.