I am building a react website, and It has multiple localizations. What is the best practice to store ui texts for different languages? I am currently considering the two
What is the best practice to implement text storage for multiple localization react app?
First, you need to use npm packages i18next react-i18next
Here is good tutorial how to do it
https://www.mindbowser.com/adding-multi-language-support-using-reactjs/
You should save as local Json, no need for static translation to be served from server.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.