Translations Sheet CLI

With the Google Translate API, you can dynamically translate text between thousands of language pairs.

Table of Contents

Setup

  1. Download client-secrets from Google Cloud Console (GCC)

  2. Generate Google Translate API key on GCC and paste it into config.json

  3. Edit Config file with Translations Sheet Id in config.json

  4. Update the array of languages to be translated into in config.json

  5. Install dependencies:

     npm install
    

Examples

    node index.js --in "Hello World"

Flags

    --in    Input phrase or word
    --key   Translated string key (Optional)

TODO List

[] Check if a phrase already exists on Translations Sheet

About

Author: Ziyad Al-Obaidi License: ISC