- by wox (stable)
wpm install Gtranslate/谷歌翻译
- by Github (newest, but may be some bugs)
download or clone from:remove to:https://github.com/CN-DXTZ/Wox.Plugin.Gtranslate.git
%USERPROFILE%\AppData\Roaming\Wox\Plugins\
- input others language (automatic recognition) like
en
(english), translate tozh-CN
(chinese) - input
zh-CN
, translate toen
- for only one word or phrase (any language), it will provide the dictionary functions, specifically, it will append a list of translation sorted by part of speech
- you can one-lick to copy the translation to your clipboard
- you can one-lick to open browser to view details of google translation search
You can use this plugin without any dependence completely, but you must install the python package pyperclip if you wang to copy to clipboard by one key, for this, you can open your cmd or powershell, and then:
pip install pyperclip
Because of the wox plugin development with python is not provide to modify the settings in the main interface, so for other users different requirements, provide a json config file and method for it.
default json file as follows:
{"My_Language": "zh-CN", "Obj_Language": "en"}
it means:
- other languages will translate to
My_Language
exceptMy_Language
My_Language
will translate toObj_Language
-
you can modify the config as the gif:
- input
tran _
- then select or input completely:
tran _config
- there is a list of config you can selsect or input completely:
tran _config My_Language = zh-CN
- modify the "=" left language code to what you requirement, it will prompt you the success or failure
- input
-
or you can edit config.json directly, the path as follows:
- open the folder:
%USERPROFILE%\AppData\Roaming\Wox\Plugins\
- and then open the folder prefix with
Wox.Plugin.Gtranslate
(download or clone by git) orGtranslate_谷歌翻译
(install by wox) - in the end, open the
config.json
and edit it
- open the folder:
if you want continue to develop based on this plugin, you can refenence to this article —— 开发 Wox.Plugin.Gtranslate