Permalink
Browse files

fix plurals handling for the case the locale string has to parts like…

… en-us and runs into default case of switch
  • Loading branch information...
1 parent 2f8268e commit ac619e044fd7df25768c1cde6f2e26932468b468 @kof kof committed Mar 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/helpers/plurals.js
View
@@ -84,7 +84,7 @@ module.exports = function plurals(locale) {
// 2 Plurals
default:
if (parts.length === 2) {
- plurals(parts[0]);
+ return plurals(parts[0]);
} else {
return function (n) {
return n === 1 ? 0 : 1;

0 comments on commit ac619e0

Please sign in to comment.