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

add usePreferredLanguages #7

Closed
logaretm opened this issue Sep 26, 2019 · 2 comments · Fixed by #10
Closed

add usePreferredLanguages #7

logaretm opened this issue Sep 26, 2019 · 2 comments · Fixed by #10
Labels
✨ enhancement New feature or request good first issue Good for newcomers 🐣 good for beginners a good first-issue to tackle hacktoberfest 🛳 In PR This is being addressed in a live PR at the moment.

Comments

@logaretm
Copy link
Collaborator

logaretm commented Sep 26, 2019

This API should track the language preference of the user.

Should look like this:

const languages = usePreferredLanguages();

// language is an array of language codes, like ['en-US', 'ar']

Hint: Check the navigator object for useful properties and event listeners.

Don't forget to add docs for it as well!

@logaretm logaretm added ✨ enhancement New feature or request good first issue Good for newcomers hacktoberfest 🐣 good for beginners a good first-issue to tackle labels Sep 26, 2019
@infix
Copy link
Contributor

infix commented Oct 1, 2019

I'd like to work on this.

@logaretm
Copy link
Collaborator Author

logaretm commented Oct 1, 2019 via email

@logaretm logaretm added the 🛳 In PR This is being addressed in a live PR at the moment. label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request good first issue Good for newcomers 🐣 good for beginners a good first-issue to tackle hacktoberfest 🛳 In PR This is being addressed in a live PR at the moment.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants