We are using google translation api to translation the key words from english to particular language. in this article we are going to see how we are using google api to translate the keywords.
Find the translation.xlsx file from main-file folder & import into google sheet,
If you want to add new language you can add new column as you prefered language short code Example of creating french language Create a new column named "fr" . & under fr use the below formula to translate all the keywords.
Translation Formula: =GOOGLETRANSLATE(B2, "en", "fr")
In this formula B2 is the row number of english word.
Refer The below url to create short code for languages
https://developers.google.com/admin-sdk/directory/v1/languages
you can copy the sheet_id from the updated google sheet link like below
https://docs.google.com/spreadsheets/d/1tQekGR1ViQeRdlFe7NsDFfrJX_Zb55H2UTMe01VRjso/edit#gid=0
Note:Your sheet should update the permission to see the sheet with anyone, please see the below reference image
copy the sheet id & place it in to Configurations->System Settings->map Settings->Google Sheet Id field.
You will get the json response from this api. which is updated json for the translation. copy the json and paste in project/lib/translations/translation.dart
Map<String, dynamic> languages = {
"en": {