Skip to content
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

Confusion between br (breton) and pt_BR #23

Open
tornoz opened this issue Feb 28, 2024 · 0 comments
Open

Confusion between br (breton) and pt_BR #23

tornoz opened this issue Feb 28, 2024 · 0 comments

Comments

@tornoz
Copy link

tornoz commented Feb 28, 2024

Code has a hack to make an equivalent between .br and pt_BR language.

// specific case for pt_BR, let's say it's "br" to make things simpler

TLD names use ISO 3166-1 alpha-2 country codes while language code use ISO 639-1.
They are not the same norm and should not be used together. This can creates mistakes, one of them is breton language (br) being detected as the language spoken in Brasil.

Due to this, the website asks users with breton in their Accept-Language header to translate the website in brasilian portuguese, when it should not, and should show the message for the language that is next in line in the header (usually 'fr')

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

No branches or pull requests

1 participant