Skip to content

Commit

Permalink
FIX: add missing MessageFormat files for fa_IR, pl_PL and tr_TR
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Mar 30, 2016
1 parent 6f0137d commit 44e41df
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/javascripts/locale/fa_IR.js
@@ -0,0 +1,3 @@
MessageFormat.locale.fa_IR = function ( n ) {
return "other";
};
15 changes: 15 additions & 0 deletions lib/javascripts/locale/pl_PL.js
@@ -0,0 +1,15 @@
MessageFormat.locale.pl_PL = function (n) {
if (n == 1) {
return 'one';
}
if ((n % 10) >= 2 && (n % 10) <= 4 &&
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
return 'few';
}
if ((n % 10) === 0 || n != 1 && (n % 10) == 1 ||
((n % 10) >= 5 && (n % 10) <= 9 || (n % 100) >= 12 && (n % 100) <= 14) &&
n == Math.floor(n)) {
return 'many';
}
return 'other';
};
3 changes: 3 additions & 0 deletions lib/javascripts/locale/tr_TR.js
@@ -0,0 +1,3 @@
MessageFormat.locale.tr_TR = function(n) {
return 'other';
};

1 comment on commit 44e41df

@arpitjalan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.