jdlorimer/chinese-support-redux

Fetch missing translations or sentences from DeepL?

Opened this issue · 1 comments

Hi

Thanks for this add-on, it's just fantastic ! for so many reasons.

I am really new to Anki but I was able very easily to tweak the add-on to work with my already existing decks,
bulk-add audio to all my cards (started lazy, stayed lazy... :) and customize tone colors for instance.

Now I have a remark / feature request. I guess many asked before but I didn't find it in past issues :
I noticed that when a word is not already in chinese.db the translation field will stay blank.
Sentences especially will not be translated (at least this is the case for French)

I don't know how hard it would be to implement in Python, but would it make sense,
in case the dictionary returns nothing, to have the option of fetching a translation from the DeepL API or other?
That would especially add support for other languages, and I suppose latency would not really be an issue...

Anyway, thanks for the huge work !

Julien

Something to note for anyone implementing this: the DeepL API requires a pro subscription to use.