diff options
Diffstat (limited to 'src/service/locale.js')
| -rw-r--r-- | src/service/locale.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/service/locale.js b/src/service/locale.js index e94c2100..069a691e 100644 --- a/src/service/locale.js +++ b/src/service/locale.js @@ -58,6 +58,13 @@ angularServiceInject('$locale', function() { shortDate: 'M/d/yy', mediumTime: 'h:mm:ss a', shortTime: 'h:mm a' + }, + + pluralCat: function(num) { + if (num === 1) { + return 'one'; + } + return 'other'; } }; }); |
