DEV Community

Discussion on: How to internationalize a react-native app

Collapse
 
ulisesescamilla profile image
Ulises Escamilla

Hi @merlier , thanks for sharing, I'm interested in how we can implement a context like this section on i18njs.com/

Do you know if it is possible and how we can implement it? What if I want to use Plurals or Genders with this approach?

Thanks for your help

Collapse
 
merlier profile image
Merlier

It should be possible as roddeh-i18n seems close to i18n-js module. You could just add the roddeh-i18n config (en = i18n.create({values:{"Hello":"Hello"}})) in the setI18nConfig function from the i18n.js file. About plurals and genders, it's pretty cool and manage just by the roddeh-i18n so it should works without much more work.