Skip to content

Conversation

@psykzz
Copy link
Contributor

@psykzz psykzz commented Feb 22, 2022

In the case the user has only a 2 letter string in their browser languages list, but we support only full locales, we will pick the first listed code that matches the first 2 letters.

For example
de, [en-us, de-de, de-as] -> de-de

In the case the user has only a 2 letter string in their browser languages list, but we support only full locales, we will pick the first listed code that matches the first 2 letters.

For example
`de`, [`en-us`, 'de-de', 'de-as'] -> 'de-de'
@psykzz
Copy link
Contributor Author

psykzz commented Feb 22, 2022

Example of the actions in place https://github.com/psykzz/browser-lang/actions/runs/1882393303

@barlas
Copy link

barlas commented Jun 9, 2022

LGTM 👍 We need this fix for our feature.

@psykzz
Copy link
Contributor Author

psykzz commented Sep 2, 2022

@wiziple any update?

@psykzz
Copy link
Contributor Author

psykzz commented Sep 11, 2022

@wiziple poke again 🙏

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

Successfully merging this pull request may close these issues.

3 participants