Skip to content

nmehta6/translate-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translate-templates

A tool that uses Google Translate API to translate template strings located in a JSON file while preserving handlebars style templates in English.

Installation

npm install translate-templates --save-dev

Usage overview

let translate = require('translate-templates')
translate(options)

options (all required)

  • options.apiKey: API key for Google Translate
  • options.outDir: Directory where translations should go
  • options.englishFile: Path to the English file to translate from
  • options.locales: An array of locales to translate to. Use any locale accepted by Google Translate.

About

Translate template strings with Google Translate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published