Newly Purchased Memories

    translate-extension-json

    1.404.405 • Public • Published

    translate-extension-json

    Automatically translates node-i18n JSON files into different languages via Google Translate API. This fork repo is for translating extensions mostly.

    Installation

    npm install -g translate-extension-json
    

    Demo

    alt text

    Usage

    You need a Google Translate API Key.

    translate-extension {{apiKey}} {{location of json file}} {{Translate from}  {{Tanslate too,Tanslate too,Tanslate too,}}
    

    e.g.

    translate-extension-json iuOHAEbo9H788d34h93h4dioue2I locales en es,fr
    

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

    Why for this fork?

    Well when building extension you need to have a correct folder setup for the translations. Also code was rewritten and will be creating a pr soon on the orgion master.

    Follow me

    Credits

    Based on i18n-translate by Thomas Brüggemann.

    This fork is sponsored by Meedan.

    Install

    npm i translate-extension-json

    DownloadsWeekly Downloads

    22

    Version

    1.404.405

    License

    GPL

    Unpacked Size

    3.91 MB

    Total Files

    9

    Last publish

    Collaborators

    • robertjgabriel