8000 GitHub - Mehmetymw/translate-cli: Google Translator API on CLI
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mehmetymw/translate-cli

Repository files navigation

Translate CLI

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.

Features

  • Text translation
  • Setting default languages
  • Reverse translation

Usage

Download Precompiled Binaries

You can download the precompiled binaries and use them directly.

Linux

  1. Download the file and make it executable:

    chmod +x translate-cli-linux
  2. Run the application:

    ./translate-cli-linux <commands and arguments>

Windows

  1. Download the file and run it directly:
    translate-cli-windows.exe <commands and arguments>

macOS

  1. Download the file and make it executable:

    chmod +x translate-cli-macos
  2. Run the application:

    ./translate-cli-macos <commands and arguments>

Commands

Setting Default Languages

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)

About

Google Translator API on CLI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0