mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibJS: Use Intl.PluralRules within Intl.RelativeFormat
The Polish test cases added here cover previous failures from test262, due to the way that 0 is specified to be "many" in Polish.
This commit is contained in:
parent
36abcd820d
commit
bf85bf2a9e
6 changed files with 119 additions and 67 deletions
|
@ -27,16 +27,7 @@ enum class TimeUnit {
|
|||
};
|
||||
|
||||
struct RelativeTimeFormat {
|
||||
enum class Plurality {
|
||||
Zero,
|
||||
One,
|
||||
Two,
|
||||
Few,
|
||||
Many,
|
||||
Other,
|
||||
};
|
||||
|
||||
Plurality plurality { Plurality::Other };
|
||||
PluralCategory plurality;
|
||||
StringView pattern;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue