Skip to content

thomasbrueggemann/i18n-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i18n-translate Build Status npm

Automatically translates require.js i18n javascript files into different languages via Google Translate API.

Installation

npm install -g i18n-translate

Usage

You need a Google Translate API Key.

i18n-translate apiKey startDir sourceLang targetLang1,targetLang2,.. (file1,file2,..)

e.g.

i18n-translate iuOHAEbo9H788d34h93h4diouehIUHI test/data/ de en,fr

This would translate all the *.js files in test/data (relative to current folder in the shell) to translate from German to English and French, based on the Google Translate API language codes.

The file filter for specific file names is optional. You can specify files in the target folder that you exclusively want to be translated.

About

💬 Automatically translates require.js i18n JSON files

Resources

License

Stars

Watchers

Forks

Packages

No packages published