leolabs / json-autotranslate

Translate a folder of JSON files containing translations into multiple languages.
MIT License
128 stars 37 forks source link

Use glossary with DeepL #116

Open fletchgqc opened 2 months ago

fletchgqc commented 2 months ago

DeepL allows you to specify a glossary ID. Could you please add this feature?

fletchgqc commented 1 month ago

Ahh, I found it in the code, undocumented. What would be nice is if it worked with TSV. That's what DeepL needs in the end anyway. And your average non-technical translators are going to maintain their glossaries in Google sheets or something, which exports nicely to TSV.

fletchgqc commented 1 month ago

OK I converted my TSV to json, so that it can be converted back to TSV by json-autotranslate :). Unfortunately the request to DeepL fails with a 400. I think the API calls might need to be checked/updated.