🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/hyperschwartz/translationator

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hyperschwartz/translationator

v0.4.21
Source
Go
Version published
Created
Source

Translationator!

This app takes an English sentence (or a paragraph or whatever you're feeling), and proceeds to translate it from English into a bunch of other languages, and then back to English. The goal is to convert a normal sentence into something totally crazy.

Prerequisites

  • Install Golang on your computer. This comes in various shapes and forms based on your OS.
  • Register with Google Cloud Console (https://console.cloud.google.com/) to get yourself a translation API key or service account JSON file (the JSON file is preferred for ease of use).

Installation

To install (run from translationator root directory):

go install translationator

Running the dang thing

To run the app with a JSON file in the default directory (~/translationator/translation-credentials.json), just run:

translationator -t "Target phrase"

To run the app with an API key via Google Cloud, just run:

translationator -a myApiKeyFromGoogleCloud -t "Target phrase"

Sample run:

> translationator -t "Hello, I am writing words in English"
I write greetings in English

FAQs

Package last updated on 10 Jul 2024

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