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

Typed support of i18next #2836

Open
nulls opened this issue Nov 1, 2023 · 2 comments
Open

Typed support of i18next #2836

nulls opened this issue Nov 1, 2023 · 2 comments
Labels
backlog bug Something isn't working enhancement New feature or request frontend Tasks on frontend

Comments

@nulls
Copy link
Member

nulls commented Nov 1, 2023

We get the following error: https://github.com/saveourtool/save-cloud/pull/2834/files#diff-cfda06917251ebb7b2a42e49c151470bea081447a9a2112d528ed930440a9f35

And looks like the problem that useTranslation returns not Translation type when namespace is not loaded or doesn't exist.

Need to look at https://react.i18next.com/latest/usetranslation-hook#not-using-suspense and looks like we need to handle component3 which returns transaction is ready

@nulls nulls added bug Something isn't working enhancement New feature or request frontend Tasks on frontend backlog labels Nov 1, 2023
@sanyavertolet
Copy link
Member

There are two different hooks: useTraslation and useTransition. Are you sure you use the right one?

@nulls
Copy link
Member Author

nulls commented Nov 7, 2023

There are two different hooks: useTraslation and useTransition. Are you sure you use the right one?

this error is from existed code, fixed a typo in the description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog bug Something isn't working enhancement New feature or request frontend Tasks on frontend
Projects
None yet
Development

No branches or pull requests

2 participants