New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tt-terminal-translator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tt-terminal-translator

Terminal Translator is a translation CLI that uses the Google Cloud API.

  • 0.2.1
  • PyPI
  • Socket score

Maintainers
1

Terminal Translator

Documentation Status

Terminal Translator is a translation CLI that uses the Google Cloud API.

Documentation

See the full documentation

Installation

Installation is very simple, just run the following command in the terminal:

pip install tt-terminal-translator

Basic Usage

The CLI consists of two commands, tt and tt-configure.

tt

tt is the main CLI command.

Usage

Basically we call the command passing the text to be translated

By default the text will be translated to en-us

tt ola mundo

tt

We can also inform the target language for the translation

tt ola mundo --target es  # spanish

tt-2

There is also a parameter to translate directly into Portuguese

tt hello world -p

tt-3

In addition there is a parameter to copy the output directly to the clipboard

tt -c hola mundo

tt-4

For more information use the parameter --help

tt --help

tt-5

tt-configure

tt-configure is only for the initial configuration of the Google Cloud API credentials, as seen in the settings section.

Usage

Basically we call the command passing two arguments, first the project-id followed by the path of the credentials Json file.

tt-configure <project-id> <google-api-credentials>

For quick help use the --help argument.

tt-configure --help

tt-configure

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc