-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Chore/add warning on invalid fallback lang #2241
Chore/add warning on invalid fallback lang #2241
Conversation
… supported languages array
… supported languages array
|
Some tests pass "dev" as a fallback even though it's not in supported languages so I wasn't sure if there was some behavior I'm not aware of, okay will fix what you just said! |
ok, keep the exception with the dev language |
so I found something interesting, while trying to write the tests I actually got 2 logs from module called languageUtils that warned that the default language is not in the supported languages list, it seems to me that the feature is already there, maybe it's not called in the react package? |
totally forgot that... yes... it's already there ;-) Yes, it should be called also via react-i18next... |
Just tested here (change the fallbackLng accordingly): https://codesandbox.io/p/sandbox/react-i18next-http-example-forked-n4fqct So this PR can be closed, right? |
I'll have to investigate this on my side, maybe it just doesn't trigger in Remix for some remix related reason. I'll raise the issue again if I figure out the root cause |
I've tried to implement the warning for the issue outlined in the ticket below, although I am not sure about the following:
react-i18next:: i18n.languages were undefined or empty react-i18next#1803
Checklist
npm run test
Checklist (for documentation change)