Skip to content

npm module that automatically translates node-i18n JSON files

License

Notifications You must be signed in to change notification settings

xinbenlv/i18n-translate-json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18n-translate-json

Automatically translates node-i18n JSON files into different languages via Google Translate API.

Installation

npm install -g i18n-translate-json

Usage

You need a Google Translate API Key.

i18n-translate-json apiKey dir sourceLang (targetLang1,targetLang2,..)

e.g.

i18n-translate-json iuOHAEbo9H788d34h93h4diouehIUHI locale/ en es,fr

This would translate all strings in locale/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.

Credits

Based on i18n-translate by Thomas Brüggemann.

This fork is sponsored by Meedan.

About

npm module that automatically translates node-i18n JSON files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%