-
-
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
Declaring a different defaultNS than "translation" allows unexpected cases on t function. [Typescript] #1302
Comments
Hey @ImADrafter, It's not possible to automatically infer the
Since people have been requesting the ability to override the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🐛 Bug Report
Declaring a different defaultNS than "translation" allows unexpected cases on t function.
Related issues: #1301
I think the issue might be related to this line since 'translation' is hardcored.
To Reproduce
codesandbox;
Expected behavior
When a specifing a different defaultNS than "translation", TS compilation should not allow cases that are not supported by JS implementation.
Your Environment
The text was updated successfully, but these errors were encountered: