DEV Community

Discussion on: How to properly internationalize a React application using i18next

Collapse
 
kevinhfx1 profile image
Kevin

Hello!

This was really helpful, however I'm still a bit confused.

What would be a neat way to handle i18n if the values are coming from a database. So there's a value in the db but on the UI we need to show a "friendly" translated version of this.

Example -

Db value -> Tech
UI En -> Technology
UI Fr -> French translation of Tech

Cheers!

Collapse
 
adrai profile image
Adriano Raiano

just save the translation keys (not the actual translation) in the database…
or at least sync those with the TMS, like with locize via API or via CLI