GithubHelp home page GithubHelp logo

trans's Introduction

trans

Go Report Card

Google Translate CLI written in Go.

Required

You must first set up authentication by creating a API Key or service account of GCP.

API Key

The API Key documentation can be found here.

Set the environment variable TRANS_API_KEY to the API Key.

Or Service Account

The service account documentation can be found here.

Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the file path of the JSON file that contains your service account key.

Note

You need a little bit of money to use google translate API.
e.g. it costs $0.06 for 2889 characters.

Installation

$ go get -u github.com/utahta/trans/cmd/trans

Usage

$ trans -t en こんにちは
Hello
$ trans -t ja this is a pen
これはペンです
$ trans -t ja -r "this is a pen"
これはペンです
this is a pen

trans's People

Contributors

utahta avatar zchee avatar

Stargazers

y_kawashima avatar Andres Chavez avatar Lubomir Anastasov avatar  avatar  avatar  avatar Toan Tran avatar Andrejs Agejevs avatar Daniel T. Lee avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.