Reputation: 51
In my android app, when a user enters data, it has to upload to the database and the data has to be translated into different languages. So, that the user can access the data in his/her desired language. Is it possible? If possible please tell me. If not possible, any alternatives or any ideas will be upvoted.
Upvotes: 0
Views: 317
Reputation: 1619
You could create a trigger in the database, so that when the record is created, a function is run to perform the translation and save the translated text alongside the original data. This is similar to the pattern described here, more information about triggers in the Cloud Firestore db here - looks as though there are similar triggers for Realtime Database too.
Upvotes: 1