Skip to content

Commit

Permalink
i18n: Bump Tannin dependency to 1.1.0 (#16337)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored Jun 28, 2019
1 parent a53a38b commit 0a3c5c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lodash": "^4.17.11",
"memize": "^1.0.5",
"sprintf-js": "^1.1.1",
"tannin": "^1.0.1"
"tannin": "^1.1.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import sprintfjs from 'sprintf-js';
*/
const DEFAULT_LOCALE_DATA = {
'': {
plural_forms: 'plural=(n!=1)',
plural_forms: ( n ) => n === 1 ? 0 : 1,
},
};

Expand Down

0 comments on commit 0a3c5c0

Please sign in to comment.