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

Can't access the items beyond #2 items in the gts-translate-list #50

Closed thjwong closed 1 year ago

thjwong commented 1 year ago

For example, if the gts-translate is set like this:

(setq gts-translate-list '(("de" "en")("en" "de")("en" "it")("it" "en")))

then c-N and c-P can only access up to ("en" "de") and further pressing c-N will change the translation path back to ("de" "en")

lorniu commented 1 year ago

I don't quite understand what you mean. Can you show your configuration about go-translate and paste some text you want to translate here?

gyps commented 1 year ago

I seem to have the same issue. My config is simply:

(setq gts-translate-list '(("de" "en") ("de" "it")))
(setq gts-default-translator
      (gts-translator
       :picker (gts-prompt-picker)
       :engines (list (gts-google-engine))
       :render (gts-buffer-render)))

pressing x or M-n/M-p toggles between en->de and de->en but how can I access the second option to translate de<->it ?

Cheers, Alex

lorniu commented 1 year ago

Fixed, please have a try.

gyps commented 1 year ago

Works like a charm. Thanks!