Skip to content

Commit

Permalink
Merge 846950a into 11d89da
Browse files Browse the repository at this point in the history
  • Loading branch information
travnels committed Nov 3, 2016
2 parents 11d89da + 846950a commit b2799c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ branches:
only:
- master
- stable
before_install:
- "npm install -g istanbul"
script:
- "npm run test-ci"
after_script:
Expand Down
4 changes: 3 additions & 1 deletion i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,9 @@ module.exports = (function() {
// this will implicitly write/sync missing keys
// to the rest of locales
for (var l in locales) {
translate(l, singular, plural, true);
if ({}.hasOwnProperty.call(locales, l)) {
translate(l, singular, plural, true);
}
}
};

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
"devDependencies": {
"async": "*",
"cookie-parser": "^1.4.1",
"eslint": "2.13.*",
"express": "^4.13.4",
"jshint": "*",
"istanbul": "0.4.*",
"mocha": "*",
"should": "*",
"sinon": "*",
Expand All @@ -40,9 +41,9 @@
"node": ">=0.10.0"
},
"scripts": {
"jshint": "jshint --verbose .",
"test": "npm run jshint && make test",
"test-ci": "npm run jshint && istanbul cover ./node_modules/mocha/bin/_mocha"
"lint": "eslint .",
"test": "npm run lint && make test",
"test-ci": "npm run lint && istanbul cover ./node_modules/mocha/bin/_mocha"
},
"license": "MIT"
}

0 comments on commit b2799c6

Please sign in to comment.