How to enable i18n and nprogress client-side ?
Hello, below is how I managed to add
nprogress
as well as loading the react-i18next
extension. Is this the proper way?
Here is my client.tsx
file:
nprogress
seems ok but react-i18next
gives me a warning that I need to pass an instance (which I did 🧐) but it still works it is just that there is a moment where i don't have the translations, then they display like 1 seconds later.
The error:
Thanks in advance for the help 🙂6 Replies
constant-blue•6mo ago
this will result in hydration issues if you only put it into the client.tsx
usually you would put this somewhere in the root route
dependent-tanOP•6mo ago
for both or react-i18next only ?
constant-blue•6mo ago
no idea what nprogress does
dependent-tanOP•6mo ago
it is a fake loader (the same that github has the blue loading bar at the top)
constant-blue•6mo ago
is that react based?
dependent-tanOP•6mo ago
Nope, it was created a long time ago ^^