Translate text using a variety of translation services.
Go to releases page download latest release binary file.
Ensure that you have a supported version of Go properly installed and setup. You can find the minimum required version of Go in the go.mod file.
You can then install the latest release globally by running:
$ go install github.com/souk4711/honyakusha/cmd/honyakusha@latest
Create a configuration file in the XDG config directory:
$ honyakusha init --xdg
Create a config file in $HOME/.config/honyakusha.toml
And then execute:
$ honyakusha trans Hello, World
Raw:
Hello, World
Google Translate:
こんにちは世界
Bing Translator:
ハローワールド
NOTE: You can edit the config file to change the target language if it is not Japanese.
Code | Name | Auth Method |
---|---|---|
bing | Bing Translator | - |
Google Translate | - | |
deepl-api | DeepL Translate | api-key |
libretranslate-api | LibreTranslate | api-key |
available as open source under the terms of the MIT License.