1.404.405 • Published 5 years ago

translate-extension-json v1.404.405

Weekly downloads
1
License
GPL
Repository
github
Last release
5 years ago

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

alt text

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.

1.404.405

5 years ago

1.404.404

5 years ago

1.0.404

5 years ago

1.0.201

5 years ago

1.0.200

5 years ago

1.0.122

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago