adoroburrito / translate-json

Quick script i hacked together to translate i18n json files with Google Translate API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

translate-json

Quick script i hacked together to translate i18n json files with Google Translate API

Usage

Script looks for file en-US.json in the src folder for what to translate. Outputs to dist folder with the provided ISO 639-1 language key.

$ git clone https://github.com/andrestevao/translate-json
$ cd translate-json
$ npm install
$ npm run translate <ISO 639-1 code>

TO-DO

  • port to typescript
  • clean code up
  • drink water
  • eat healthy

About

Quick script i hacked together to translate i18n json files with Google Translate API


Languages

Language:JavaScript 100.0%