With the Google Translate API, you can dynamically translate text between thousands of language pairs.
-
Download client-secrets from Google Cloud Console (GCC)
-
Generate Google Translate API key on GCC and paste it into config.json
-
Edit Config file with Translations Sheet Id in config.json
-
Update the array of languages to be translated into in config.json
-
Install dependencies:
npm install
node index.js --in "Hello World"
--in Input phrase or word
--key Translated string key (Optional)
[] Check if a phrase already exists on Translations Sheet
Author: Ziyad Al-Obaidi License: ISC