Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fizzywhizbang/gotranslate

a simple language translator using Golang and the Google Translate API
https://github.com/fizzywhizbang/gotranslate

go golang google google-api translate translation

Last synced: about 1 month ago
JSON representation

a simple language translator using Golang and the Google Translate API

Awesome Lists containing this project

README

        

# gotranslate

simple package to translate a word or phrase

## Requirements

You'll need a Google cloud API key in key.txt under the cmd directory
or include your own however you like

### Instructions
to test you can type under the cmd directory go run . -target=fr -source=en -phrase="eat my shorts"
or
Under the cmd directory
go build -o translate
./translate -target=fr -source=en -phrase="eat my shorts"

or ./translate -langs=true to show all languages and their codes

Enjoy and happy translating