Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: add missing MessageFormat files for fa_IR, pl_PL and tr_TR
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MessageFormat.locale.fa_IR = function ( n ) { | ||
return "other"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MessageFormat.locale.tr_TR = function(n) { | ||
return 'other'; | ||
}; |
44e41df
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍