lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
274 stars 37 forks source link

`:auth-key` did not work on DeepL engine #68

Closed suzuki closed 4 months ago

suzuki commented 4 months ago

About

The following settings were made with reference to the README, but did not work.

(gt-translator :engines (gt-deepl-engine :auth-key "MY_API_KEY"))

Assuming the README is correct, :auth-key seems to work correctly with these fixes.

What do you think of this?

lorniu commented 4 months ago

Sorry, code is fine, it's the documentation that not updated in time.

Now, all auth-keys or apikeys are provided via the :key. Therefore, the configuration should be:

(gt-translator :engines (gt-deepl-engine :key "MY_API_KEY"))

Please have a try and report the result. Thanks.

suzuki commented 4 months ago

Sorry, code is fine,

OK, I understood. By the way, the ChatGPT engine is a nice extension. I would like to use it.