Skip to content

Commit

Permalink
Add a few more pluralizers
Browse files Browse the repository at this point in the history
  • Loading branch information
maranomynet committed Dec 6, 2016
1 parent 1862220 commit e60c7cf
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pluralize/cs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function (n) {
return (n==1) ? 's' : (n>=2 && n<=4) ? 'p' : 'n'
}
1 change: 1 addition & 0 deletions pluralize/de.js
1 change: 1 addition & 0 deletions pluralize/dk.js
4 changes: 0 additions & 4 deletions pluralize/en.js

This file was deleted.

1 change: 1 addition & 0 deletions pluralize/en.js
1 change: 1 addition & 0 deletions pluralize/es.js
1 change: 1 addition & 0 deletions pluralize/fr.js
3 changes: 1 addition & 2 deletions pluralize/is.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Icelandic rules: Numbers ending in 1 are singular - unless ending in 11.
module.exports = function (n /*, tarnslationKey*/) {
module.exports = function (n) {
return (n % 10 !== 1 || n % 100 === 11) ? 'p' : 's'
}
1 change: 1 addition & 0 deletions pluralize/it.js
1 change: 1 addition & 0 deletions pluralize/ja.js
3 changes: 3 additions & 0 deletions pluralize/proto/none.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function (n) {
return 'n'
}
3 changes: 3 additions & 0 deletions pluralize/proto/p_gt_1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function (n) {
return n > 1 ? 'p' : 's'
}
3 changes: 3 additions & 0 deletions pluralize/proto/p_ne_1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function (n) {
return n !== 1 ? 'p' : 's'
}
1 change: 1 addition & 0 deletions pluralize/pt.js
1 change: 1 addition & 0 deletions pluralize/se.js

0 comments on commit e60c7cf

Please sign in to comment.