snakk

0.3.1 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i snakk

Weekly Downloads

1

Version

0.3.1

License

ISC

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • eldoy