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
Version: v5.0.0 Environment: go version go1.22.1 linux/amd64 Reproduces: sometimes
Currently, the first available language variant (e.g.: US in en-US) in lang.DetectLanguage() is random because keys are not ordered. We should make language detection deterministic and maybe add an option for developers to define a custom language variant priority, such as a config entry app.languagePriority.
No good solution has been identified yet to solve this problem gracefully, feel free to suggest.
The text was updated successfully, but these errors were encountered:
Bug report
Version: v5.0.0
Environment: go version go1.22.1 linux/amd64
Reproduces: sometimes
Currently, the first available language variant (e.g.:
US
inen-US
) inlang.DetectLanguage()
is random because keys are not ordered. We should make language detection deterministic and maybe add an option for developers to define a custom language variant priority, such as a config entryapp.languagePriority
.No good solution has been identified yet to solve this problem gracefully, feel free to suggest.
The text was updated successfully, but these errors were encountered: