You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic language detection recently got broken in my project.
To Reproduce
Steps to reproduce the behavior:
Browser sends Accept-Language: en-GB,en;q=0.5
i18n chooses to display ga
Expected behavior
Since both en-GB and en are supplied, and en is available as a folder (and not missing any translations), en should be chosen in my eyes. ga is missing some strings, so English is used for them instead.
Desktop (please complete the following information):
OS: Debian GNU/Linux 11
Go version: go1.19.3
Additional context
Add any other context about the problem here.
I randomly tested a little with the Accept-Language header. Malformed input seems to select random language, otherwise ga is default, unless de is chosen.
It works in another browser where I send Accept-Language: de,en-US;q=0.7,en;q=0.3 (de is chosen / displayed).
Appreciate your help :) Thank you!
The text was updated successfully, but these errors were encountered:
Describe the bug
Automatic language detection recently got broken in my project.
To Reproduce
Steps to reproduce the behavior:
Accept-Language: en-GB,en;q=0.5
ga
Expected behavior
Since both en-GB and en are supplied, and en is available as a folder (and not missing any translations), en should be chosen in my eyes.
ga
is missing some strings, so English is used for them instead.Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
file structure of locales
Further notes
ga
is default, unlessde
is chosen.It works in another browser where I send
Accept-Language: de,en-US;q=0.7,en;q=0.3
(de
is chosen / displayed).Appreciate your help :) Thank you!
The text was updated successfully, but these errors were encountered: