translate

command module
v0.0.0-...-c4eccce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

Translate

Translate is a simple compiled cli utility for translating text using the Google Apps API written in Go.

Requirements

  • Google Apps/Cloud Account
  • Google Default Credentials Configured - See Here for details.

Install

$ go get github.com/daidokoro/translate

Usage


# make sure your google credentials are set
$ GOOGLE_APPLICATION_CREDENTIALS=/path/to/credential.json

$ translate

Simple app for translating text via Google Translate API

Usage:
  translate -c [Lang Code] [Text] [flags]

Flags:
  -C, --codes                  List of available Language Codes
  -h, --help                   help for translate
  -c, --language-code string   Select language code (default "en")

# translate something
$ translate -c en hola
hello

Install

go get -v -u github.com/daidokoro/translate

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL