like-gold
like-gold14mo ago

Multiple translations files

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