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

Actual Language #71

Closed
CarlosDanielDev opened this issue Jan 27, 2020 · 2 comments
Closed

Actual Language #71

CarlosDanielDev opened this issue Jan 27, 2020 · 2 comments

Comments

@CarlosDanielDev
Copy link

How can I get the actual language with hooks ?

@jamuhl
Copy link
Member

jamuhl commented Jan 27, 2020

https://react.i18next.com/latest/usetranslation-hook#what-it-does

const { t, i18n } = useTranslation();

i18n is the instance and you can get: i18n.language, i18n.languages: https://www.i18next.com/overview/api#language

@CarlosDanielDev
Copy link
Author

Thank you!!

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

2 participants