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

How can I see which language was detected? #134

Closed
cjs1976 opened this issue Feb 17, 2017 · 2 comments
Closed

How can I see which language was detected? #134

cjs1976 opened this issue Feb 17, 2017 · 2 comments

Comments

@cjs1976
Copy link

cjs1976 commented Feb 17, 2017

Hi,

I have some troubles with the implementation. Is there a way to show the detected language?

Thanks,
Christian.

@jamuhl
Copy link
Member

jamuhl commented Feb 17, 2017

detected language will be on i18next.language while an ordered array of languages which will be used to lookup a key will be on i18next.languages.

@cjs1976
Copy link
Author

cjs1976 commented Feb 17, 2017

Hi jamuhl,

thank you for the quick reply. I tried this, but it didn't work. I had the wrong name for this plugin. If someone runs into the same problem, this is the right way:

i18next .use(i18nextBrowserLanguageDetector) .use(i18nextXHRBackend) .init({ ...

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