A CLI application that translates text files using Google Translate API. It supports both Basic and Advanced Google Translate APIs and various language options. The Basic API is simpler but has fewer features, while the Advanced API offers more control but requires a Google Cloud Project ID.
- Use Basic API by default
- Switch to Advanced API when
-aor--advancedflag is used - Require project ID only when using Advanced API
- Support all other features (source language detection, custom credentials, etc.) in both modes
- Indicate which API version was used in the output
- Using Basic API (default):
./gootrago -i input.txt -o output.txt -t es- Short options with Advanced API:
./gootrago -i input.txt -o output.txt -t uk -p your-project-id -a- Full options with Advanced API:
./gootrago \
--input input.txt \
--output output.txt \
--source en \
--target uk \
--project your-project-id \
--credentials /path/to/creds.json \
--advancedConfiguration file (.gootrago.yaml) can now include API preference:
input: default-input.txt
output: default-output.txt
advanced: true
project: your-project-id
credentials: /path/to/credentials.jsonThis project is licensed under the Apache 2.0 License - see the LICENSE file for details.