mololab / json-translator

jsontt 💡 - AI JSON Translator with GPT + other FREE translation modules to translate your json/yaml files into other languages ✅ Check Readme ✌ Supports GPT / DeepL / Google / Bing / Libre / Argos
https://mololab.org/jsontt/npm
MIT License
465 stars 60 forks source link

Too Many Requests #13

Closed FahmiAyil closed 1 year ago

FahmiAyil commented 1 year ago

Hi, I have some issue using jsontt CLI, i have json with 5k char, and i want to translate into all language in this library (but for the screenshoot i only translate into afrikaans) , but it says Too Many Requests

how to solve this problem? Screenshot from 2022-11-07 19-28-36

ParvinEyvazov commented 1 year ago

Hello @FahmiAyil , thank you for the report.

Can you please try another language translation option? (Libre Translate or Argos Translate)

Also which version are you in? You can use: npm view @parvineyvazov/json-translator version

FahmiAyil commented 1 year ago

i am using version 1.3.0

if im using another option its working perfect, but honestly my project need google translate as translator, cause it support so many languages

ParvinEyvazov commented 1 year ago

I got it. Unfortunately, Google Translate API tries to block suspicious requests, it is hard to run away from it. I will try to add a new feature that will divide big strings (like 5k char) into some pieces, translate them and merge them. But I don't think I can do it in a short period of time. Maybe for now:

You can divide this 5k char string into more parts, translate them and merge them manually.

FahmiAyil commented 1 year ago

okay, thankyou for your respond

ParvinEyvazov commented 1 year ago

@FahmiAyil I did a couple of improvements on preventing this error. Can you please try again?