Artrois / Google_Translator_API

Scripts to parse PO and YML files and push it to google translator and then store the results
MIT License
0 stars 0 forks source link

is possible translate to es, de and it this file? #1

Open johnfelipe opened 2 years ago

johnfelipe commented 2 years ago

https://gist.github.com/1641f7402fdfc3969e9edb7f08bccc8e

johnfelipe commented 2 years ago

Im using this one https://github.com/fkirc/attranslate

attranslate --srcFile=general.yml --srcLng=en --srcFormat=yaml --targetFile=general-es.yml --targetLng=es --targetFormat=yaml --service=google-translate --serviceConfig=traducciones-352415-79659df1c6f1.json

Artrois commented 2 years ago

Cool, hope it's universal and doesn't take tags for translation.

johnfelipe commented 2 years ago

may be can u reformat your app for use it to

johnfelipe commented 1 year ago

Im using this one https://github.com/fkirc/attranslate

attranslate --srcFile=general.yml --srcLng=en --srcFormat=yaml --targetFile=general-es.yml --targetLng=es --targetFormat=yaml --service=google-translate --serviceConfig=traducciones-352415-79659df1c6f1.json

take a look and my be update your core code, i want contribute with your code for take a multiple options for machine translation

El vie, 5 ago 2022 a las 9:07, Artrois @.***>) escribió:

The file is too big for google API. The error tells you this: The total codepoints in the request must be less than 30720, actual: 75468' You need to check the limits set for the API, maybe it is possible to increase for more than 75000 per request.

— Reply to this email directly, view it on GitHub https://github.com/Artrois/Google_Translator_API/issues/1#issuecomment-1206497566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADIWFFH2JC6TKQVLTCZBBTVXUNZBANCNFSM55OZFNQQ . You are receiving this because you authored the thread.Message ID: @.***>

Artrois commented 1 year ago

It is similar to what Im doing with my code. Not sure how much flexible the code from attranslate is but I dont see how my code can benefit from attranslate. I see your issue with using my code is related to an error that you reported on 5th Aug. That is not due to my code. As explained earlier the error occurred because your file contained more characters to translate than it was allowed by free tier of google translate. As mentioned you need to check in your account if you can increase the max number of characters that is allowed per request via translate API. Look here, this is your response from google: image It tells you the issue. you need now to check with google how to increase the limit.