webmaker-translation-stats

Webmaker Translation Files Stats

webmaker-translation-stats

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(errdata) {
  console.log("err", data);
});

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

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