Translate word between chinese and english.
(use-package maple-translate
:quelpa (:fetcher github :repo "honmaple/emacs-maple-translate")
:commands (maple-translate maple-translate+))
Or alternatively, you can download the repository and install manually by doing:
git clone https://github.com/honmaple/emacs-maple-translate ~/.emacs.d/site-lisp/maple-translate
(use-package maple-translate
:ensure nil
:commands (maple-translate maple-translate+))
(add-to-list 'maple-translate-alist '(custom . custom-translate-function))
(setq maple-translate-engine 'custom)
;; or use multi engines
(setq maple-translate-engine '(youdao dictcn custom))
;; with google translate
(setq maple-translate-google-url "https://translate.googleapis.com/translate_a/single")
(setq maple-translate-google-proxies
'(("http" . "127.0.0.1:1086")
("https" . "127.0.0.1:1086")))
;; with offline sdcv
(setq maple-translate-sdcv-dir "~/.stardict/dicts")
(setq maple-translate-sdcv-dicts
'(("lazyworm-ec" . "stardict-lazyworm-ec-2.4.2")
("lazyworm-ce" . "stardict-lazyworm-ce-2.4.2")))
- [X] Sdcv
- [X] Youdao
- [X] Google
- youdao
- dictcn
- iciba
- bing
- sdcv