Translate the result of a GPT API

Database & APIs

Hi, I want my app to be in English and Spanish. I've used the "Settings > Languages" to translate most of the text in the app, however the return from the GPT API doesn't translate.

Question: if I follow (2), how do I translate locally the result from an API that is stored in Firestore?

Question 2: What is the best way to translate, option 1, 2 or another one I am not considering?

What have you tried so far?

What I've tried to do:
1) getLanguageLocale & Pass a language variable to GPT API so that the return is already translated --> I failed because I couldn't get the Language (it always returned en_US)

2) Translate in FlutterFlow the result from the API. I get a JSON format response from GPT API, and that gets stored in a database that then I access the database to display each piece of information.

Did you check FlutterFlow's Documentation for this topic?
No
2
1 reply