LeCheese is now available in Portuguese! 🇧🇷🇵🇹
To accomplish this, I had to translate almost 6 million characters. Here's how I did it:
Phase 1 - App Content
First, I had to go over the entire source and replace every text with a function. This was by far the most time-consuming task. These two libraries were very helpful: i18n-js and expo-localization.
Phase 2 - Database Content
Then I had to make sure that every single item in my database was translated. Today I'm using Firebase's Firestore, so I had to loop through all documents and use Google's AutoML Translation API to translate them.
Phase 3 - User Generated Content
On LeCheese users can leave a review about cheese, so I needed to create a foundation that could automatically translate user-generated content. To solve this I wrote a Cloud Function that executes the translation every there's a new database entry.
Phase 4 - App Store Content
Finally, I was ready to publish to the Google Play and App Store. This involved pretty much translating the promotional text and taking new screenshots in different devices.
This whole process took me a week to finish, but I learned a lot and I'm super happy to make the app more accessible for other people.
How about you? How's your experience with translation?