translate-extension-json
v1.404.405
Published
Automatically translates i18n JSON files via Google Translate API for Google Chrome extensions
Downloads
11
Maintainers
Readme
translate-extension-json
Automatically translates node-i18n JSON files into different languages via Google Translate API. This fork repo is for translating extensions mostly.
Installation
npm install -g translate-extension-json
Demo
Usage
You need a Google Translate API Key.
translate-extension {{apiKey}} {{location of json file}} {{Translate from} {{Tanslate too,Tanslate too,Tanslate too,}}
e.g.
translate-extension-json iuOHAEbo9H788d34h93h4dioue2I locales en es,fr
This would translate all strings in messages/en.json
(relative to current folder in the shell) from English to Spanish and French, based on the Google Translate API language codes.
The target languages list is optional. When not present, it will be translated to all languages supported by Google Translate.
Why for this fork?
Well when building extension you need to have a correct folder setup for the translations. Also code was rewritten and will be creating a pr soon on the orgion master.
Follow me
Credits
Based on i18n-translate by Thomas Brüggemann.
This fork is sponsored by Meedan.