Skip to content

Commit

Permalink
Merge 3a7042d into d54e465
Browse files Browse the repository at this point in the history
  • Loading branch information
Spown committed Oct 24, 2017
2 parents d54e465 + 3a7042d commit 2396980
Show file tree
Hide file tree
Showing 15 changed files with 2,811 additions and 177 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ coverage/
defaultlocales
localestowrite
localesmakeplural
.vscode
3 changes: 0 additions & 3 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
// Prohibit use of a variable before it is defined.
"latedef": false,

// Enforce line length to 100 characters
"maxlen": 100,

// Require capitalized names for constructor functions.
"newcap": true,

Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: node_js
node_js:
- 0.10
- 0.11
- 0.12
- iojs
- 4
- 5
- iojs
- 6
- 7
branches:
only:
- master
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ and add it's extra attributes and methods, like so:

Now each _local_ object (ie. res.locals) is setup with _it's own "private"_ locale and methods to get the appropriate translation from the _global_ catalog.

### i18n.disableReload()

Stopps watching for outside changes on the locale files if ```autoReload: true```.

### i18n.__()

Translates a single phrase and adds it to locales if unknown. Returns translated parsed and substituted string.
Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ environment:
matrix:
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "iojs"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "iojs"
- nodejs_version: "6"
- nodejs_version: "7"
branches:
only:
- master
Expand Down
Loading

0 comments on commit 2396980

Please sign in to comment.