save-cloud icon indicating copy to clipboard operation
save-cloud copied to clipboard

Typed support of i18next

Open nulls opened this issue 2 years ago • 2 comments

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 avatar Nov 01 '23 15:11 nulls

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

sanyavertolet avatar Nov 05 '23 07:11 sanyavertolet

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

nulls avatar Nov 07 '23 08:11 nulls