Is anyone working with i18n in a Meteor/React project? We used msgfmt for to get our Blaze app in English and Chinese, but now I need to get a Meteor/Redux/React app UI working in English, Japanese and Chinese. Just looking for success stories (and cautionary tales)! How did it go?
I’m using universe:i18n in ReelCrafter. Though admittedly, I’m only using English right now. But there are already two benefits: 1) I’m in a position where I can easily add a second language, and 2) all my UI verbiage is together in a single file, so I don’t have to go hunting around in hundreds of JS files for it.
We soon created an adapter/service for it to add more functionality. We also wanted to replace the yaml-files with something that is collection-based, so that the customer can change their texts themselves.
It allows the devs or admins to see the keys instead of the translation on demand. E.g. in our apps the user can press and hold the ALT-Key to show the translations (with help of https://github.com/panter/meteor-keypress)
An admin or dev can click on a <T>-Component to jump to the translation (you have to provide a function or action for that). E.g. in our apps, the admin can jump to a form where he or she can update the texts (with https://github.com/panter/manul-admin)