Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 635 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 635 Bytes

json-translator

Translate JSON files (supported nested structure) using MSTranslator service

Usage:

jsonTranslate(options), options param requires these properties:

  • clientId: Microsoft Translator App Id,
  • clientSecret: Microsoft Translator App Secret Key,
  • sourcePath: source file in JSON format,
  • targetPath: target to store translated json content,
  • fromLang: translate from language,
  • toLang: translate to language

TODO:

  • Multiple translator client support (Google Translate)
  • Guarantee the order of properties after translated