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

fallbackLng: false seems to not be handled #677

Closed
immortal-tofu opened this issue Jan 15, 2019 · 3 comments
Closed

fallbackLng: false seems to not be handled #677

immortal-tofu opened this issue Jan 15, 2019 · 3 comments

Comments

@immortal-tofu
Copy link

Describe the bug
If you use react-i18next (for me, with hooks, but I'm not sure it's related), if you init i18next with fallbackLng: false and an unknown lng, you'll encounter an error.

Cannot read property '0' of undefined in node_modules/react-i18next/dist/es/hooks/useTranslation.js?:52:52

Occurs in react-i18next version
9.02

To Reproduce

  • Initialize a i18next with fallbackLng: false and set language to an unknown value (for example eo)

Expected behaviour
Working :)

OS (please complete the following information):
Happened on SSR, node 10 on Elasticbeanstalk and locally (MacOS)

@jamuhl
Copy link
Member

jamuhl commented Jan 15, 2019

will need to check - thank you for reporting

@jamuhl
Copy link
Member

jamuhl commented Jan 17, 2019

could you retry with react-i18next@9.0.3

that at least should fix the state never get ready and therefore "killing" the app

@jamuhl
Copy link
Member

jamuhl commented Jan 22, 2019

closing for now...feel free to reopen if still an issue in react-i18next@>=9.0.3

@jamuhl jamuhl closed this as completed Jan 22, 2019
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