Multiple translations files
Hi
It’s possible have multiple translation files (namespaces) with refine?
Thanks
10 Replies
Hi @tutods. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, it's possible to have multiple translation files (namespaces) with refine. The default language of refine is English, but you can include and use your own translations in the project for different language preferences. You can follow the examples provided in the documentation for Next.js (https://refine.dev/docs/examples/i18n/i18n-nextjs) and React (https://refine.dev/docs/examples/i18n/i18n-react) to see how to use different language options and translations in practice.
For more information, you can refer to the refine i18n Provider documentation (https://refine.dev/docs/api-reference/core/providers/i18n-provider/).
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------Next.js | refine
refine i18n Provider allows you to add mutiple language choices to your web application. The default language of refine is English. You can include and use your own translation in the project for different language preferences. This example shows how to use different language options and translations in practice.
React | refine
refine i18n Provider allows you to add mutiple language choices to your web application. The default language of refine is English. You can include and use your own translation in the project for different language preferences. This example shows how to use different language options and translations in practice.
<@205726168295407616> kapa.ai is still learning and improving, please let us how it did by reacting below
evident-indigo•2y ago
Hey @tutods,
It is possible, you should do the same as suggested in the library you are using.
eastern-cyan•2y ago
I’m using next
Can suggest any article please?
evident-indigo•2y ago
You can check it out here:
https://github.com/i18next/next-i18next#readme
GitHub
GitHub - i18next/next-i18next: The easiest way to translate your Ne...
The easiest way to translate your NextJs apps. Contribute to i18next/next-i18next development by creating an account on GitHub.
eastern-cyan•2y ago
Sorry for bother you again @salihozdemir . You have any example implementing with this package?
evident-indigo•2y ago
We have, you can check it out
https://refine.dev/docs/examples/?tags=i18n
eastern-cyan•2y ago
mas both examples available only have
common.json
evident-indigo•2y ago
They are just an example, you can create your own file structure following the library suggestions