Using GCP client the app will connect to the APIs using a service account and translate the text. It's also good to use Mongo to hold the value already translated to prevent the translation of the value again, that way we can create a small draft of the new quote, and after the quote is translated we can remove the whole collection on the Mongo side.
We gonna add a new collection on Mongo to hold the translations that are already known so it's not necessary to call Google translation API all the time. The flow will be the following:
Check Mongo for the translation of the quote you want
If a quote already exists return it
If not call Google translation API
Save the returned translation into the Mongo DB collection.
Feature
Suggest localization for a quote
Solution
Using GCP client the app will connect to the APIs using a service account and translate the text. It's also good to use Mongo to hold the value already translated to prevent the translation of the value again, that way we can create a small draft of the new quote, and after the quote is translated we can remove the whole collection on the Mongo side.