Neo's Playing Morpheus

    webmaker-translation-stats

    0.0.1 • Public • Published

    webmaker-translation-stats

    Build Status

    Statistics for translation files adding to healthcheck

    Install

    $ npm install webmaker-translation-stats

    Requirement:

    Must have meta-translation.json in your locale directory under given locale

    Example

    # Main js file
    locale/
        en/
           meta-test.json
           test.json

    Expected data in meta-test.json

    {
      "last_update": "some date"
    }

    Include in your project

    var wts = require("webmaker-translation-stats");
    
    wts(['en'], path.join(__dirname, "../../locale"), function(err, data) {
      console.log("err", data);
    });

    data will return this json blob if no error passed in:

      {
        "en": {
          "meta-test.json": "some date"
        }
      }

    Install

    npm i webmaker-translation-stats

    DownloadsWeekly Downloads

    8

    Version

    0.0.1

    License

    Mozilla Public License 2.0

    Last publish

    Collaborators

    • aali