Skip to content

Commit

Permalink
+ i18n.disableReload;
Browse files Browse the repository at this point in the history
~ fs.watch->chokidar;
  • Loading branch information
Spown committed May 7, 2017
1 parent 11d89da commit 2310c9a
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 66 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
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"latedef": false,

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

// Require capitalized names for constructor functions.
"newcap": true,
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
- 0.12
- 4
- 5
- 6
- iojs
branches:
only:
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
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "iojs"
branches:
only:
Expand Down
Loading

0 comments on commit 2310c9a

Please sign in to comment.