Replies: 2 comments 2 replies
-
I tried to debug it as much as I could. Not sure if that helps, but I found out that |
Beta Was this translation helpful? Give feedback.
-
This is how i18next and react-i18next loads the translations, remix-i18next is not in charge of doing that. The only way to load them synchronous is to use the You could also try to preload if you know what translations you will need, or use suspend to don't render the UI until it's loaded, I think if you don't render any Suspense boundary component and still use suspense it will just wait for the translations without rendering any fallback. |
Beta Was this translation helpful? Give feedback.
-
Hi @sergiodxa 👋 I'm quite desperate. I have been trying to make remix-i18next work for many many hours but still no luck. Everything works on first request, but then, when i move between pages, it looks like that translations are loading asynchronously and I have no idea why. It bothers me because if I want to set default values to my forms, it's set as the translation key rather than the translation itself.
I have tries many different approaches. I tried switching to
{ useSuspense: true }
, tinkering with the config, etc.. but nothing helps. I use latest versions of all packages.link to video
The code is...
entry.server.tsx
entry.client.tsx
root.tsx
It also shows this error
i18next::translator: key "scenario.scenes.inputsPlaceholders" for languages "en" won't get resolved as namespace "task-form" was not yet loaded This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!
Beta Was this translation helpful? Give feedback.
All reactions