Documentation & getting started - Community feedback #14
Replies: 8 comments
-
I wanted to understand how the i18next integration works. How is the |
Beta Was this translation helpful? Give feedback.
-
Hi @sjsakib, interesting question! The See https://github.com/UnlyEd/next-right-now/blob/master/src/components/Layout.tsx#L416, that's where the Layout component passes down to the react tree the Manipulating the Another way of providing the |
Beta Was this translation helpful? Give feedback.
-
all the react-i18next components need to access an i18next instance to get a In most cases using When do you need the I18nextProvider?
|
Beta Was this translation helpful? Give feedback.
-
Thanks @jamuhl for your feedback, I was also wondering how the But it's clear now that it's because of next-right-now/src/utils/i18nextLocize.ts Line 369 in 3458fa3 t or Trans can use the translations that had been loaded previously.
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot guys. So, is the i18next instance getting initialized anew with every page transition in the client? |
Beta Was this translation helpful? Give feedback.
-
I would say it does. A new page refresh (SSR) would definitely initialise the i18nextInstance, but a CSR would also initialise it. But, that doesn't mean it will fetch translations again, because of caching mechanisms that are built-in with the i18nextLocize implementation. A lot of efforts have been made to avoid over-fetching, and if that's your concern you can see that no additional network request is performed toward Locize provider when navigating on the client side. Feel free to test and confirm that it works properly on your side! :) |
Beta Was this translation helpful? Give feedback.
-
issues i can create a pull request for .... laterI'm currently working on a branch that just deals with typos in the documentation, but I thought maybe this was a space to enumerate "non-typo" issues that could be fixed later. |
Beta Was this translation helpful? Give feedback.
-
Good catch! Fixed through b2acea1 |
Beta Was this translation helpful? Give feedback.
-
Lots of documentation has been written, both in markdown files (README, etc.) and as in-code comments. About 2h of video tutorial has been recorded as well, so that you don't get stuck when trying out this project for yourself, but I know there is a lot of things to understand, lots of third parties, lots of configuration as well, and all this is likely overwhelming.
If you could share what you've struggled to understand, where you got stuck, it would help us improve the documentation and ease the process for everyone. Contributions are also welcome!
Beta Was this translation helpful? Give feedback.
All reactions