json-translator

0.1.1 • Public • Published

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i json-translator

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • andorx