foreign-sapphire
foreign-sapphire16mo ago

Multiple translations files

Hi It’s possible have multiple translation files (namespaces) with refine? Thanks
10 Replies
kapa.ai
kapa.ai16mo ago
Hi @tutods. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai16mo ago
---------------------- 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.
kapa.ai
kapa.ai16mo ago
<@205726168295407616> kapa.ai is still learning and improving, please let us how it did by reacting below
xenial-black
xenial-black16mo ago
Hey @tutods, It is possible, you should do the same as suggested in the library you are using.
foreign-sapphire
foreign-sapphire16mo ago
I’m using next Can suggest any article please?
xenial-black
xenial-black16mo ago
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.
foreign-sapphire
foreign-sapphire16mo ago
Sorry for bother you again @salihozdemir . You have any example implementing with this package?
xenial-black
xenial-black16mo ago
We have, you can check it out https://refine.dev/docs/examples/?tags=i18n
foreign-sapphire
foreign-sapphire16mo ago
mas both examples available only have common.json
xenial-black
xenial-black16mo ago
They are just an example, you can create your own file structure following the library suggestions