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
Labels

Comments

@immortal-tofu
Copy link

@immortal-tofu immortal-tofu commented Jan 15, 2019

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

This comment has been minimized.

Copy link
Member

@jamuhl jamuhl commented Jan 15, 2019

will need to check - thank you for reporting

@jamuhl

This comment has been minimized.

Copy link
Member

@jamuhl 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 jamuhl added the v10 (hooks) label Jan 17, 2019
@jamuhl

This comment has been minimized.

Copy link
Member

@jamuhl 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 Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.