-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
TypeScript 4.1 types no longer allow fallback keys #1218
Comments
//cc: @pedrodurek |
same problem to me |
It is another type error, at build time, but it's for a slightly different reason to yours, @Him-2C Your error seems to be due to the
This issue is due to the arguments accepted by the
|
Hey @BenJenkinson, it should be fixed now in v11.8.2. |
Hi @pedrodurek, thanks, the fix you made in 9d339d3 has resolved this for me 👍 |
💥 Regression Report
The
t(..)
translation function provided by theuseTranslation()
hook should accept an array of fallback keys.This no longer works with the new Typescript 4.1 types.
Documentation
For example (taken from the
i18next
documentation here:https://www.i18next.com/translation-function/essentials#multiple-fallback-keys):
Last working version
Worked up to version: 11.7.3
Stopped working in version: 11.8.0
To Reproduce
The following code will now produce a type/build error:
Expected behavior
The code does not produce a type/build error :)
The text was updated successfully, but these errors were encountered: