webmaker-translation-stats
v0.0.1
Published
Webmaker Translation Files Stats
Downloads
31
Readme
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(err, data) {
console.log("err", data);
});
data
will return this json blob if no error passed in:
{
"en": {
"meta-test.json": "some date"
}
}