Merge pull request #1 from kemitchell/master Use a Standard-Compliant License Identifier
Merge pull request #1 from kemitchell/master
Use a Standard-Compliant License Identifier
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
meta-translation.json
locale
Example
# Main js file locale/ en/ meta-test.json test.json
Expected data in meta-test.json
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:
data
{ "en": { "meta-test.json": "some date" } }
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
webmaker-translation-stats
Statistics for translation files adding to healthcheck
Install
Requirement:
Must have
meta-translation.jsonin yourlocaledirectory under givenlocaleExample
Expected data in
meta-test.jsonInclude in your project
datawill return this json blob if no error passed in: