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: 6 months ago
JSON representation
a simple language translator using Golang and the Google Translate API
- Host: GitHub
- URL: https://github.com/fizzywhizbang/gotranslate
- Owner: fizzywhizbang
- License: gpl-3.0
- Created: 2022-05-20T13:42:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T13:45:51.000Z (almost 4 years ago)
- Last Synced: 2024-12-29T20:18:13.145Z (over 1 year ago)
- Topics: go, golang, google, google-api, translate, translation
- Language: Go
- Homepage:
- Size: 3.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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