0.3.1 • Published 8 months ago
snakk v0.3.1
Snakk
This tool lets your translate YAML files using the Google Translate API from the command line.
Installation
npm i -g snakk
Add your Google Translate API credentials to $HOME/.google/credentials.json
for example.
Then add the following to your .bashrc
or .zshrc
:
export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.google/credentials.json"
Usage
# Help
snakk
# Anatomy
snakk translate [input] [output] [from] [to]
# Example
snakk translate en.yml no.yml en no
Supported languages
The languages supported can be found here:
Google Cloud API Translate Languages
License
ISC licensed. Enjoy!