1
Fork 0
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:
Timothy Flynn 2022-07-07 13:59:46 -04:00 committed by Linus Groh
parent 36abcd820d
commit bf85bf2a9e
6 changed files with 119 additions and 67 deletions

View file

@ -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;
};