Translate CLI is a simple command-line application that uses the Google Translate API to translate text. The application supports setting default languages, translating text, and performing reverse translations.
- Text translation
- Setting default languages
- Reverse translation
You can download the precompiled binaries and use them directly.
-
Download the file and make it executable:
chmod +x translate-cli-linux
-
Run the application:
./translate-cli-linux <commands and arguments>
- Download the file and run it directly:
translate-cli-windows.exe <commands and arguments>
-
Download the file and make it executable:
chmod +x translate-cli-macos
-
Run the application:
./translate-cli-macos <commands and arguments>
Set the default source and target languages:
translate-cli -set -s <source> -t <target>
ex: translate-cli -set -s en -t tr (English to Turkish)
translate-cli <text>
ex: translate-cli Hello (It will remember setted config and translate English to Turkish directly)
translate-cli -reverse <text>
ex: translate-cli Merhaba (It will remember your setted config and will reversed translate Turkish to English directly)