mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +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
|
@ -56,6 +56,9 @@ public:
|
|||
NumberFormat& number_format() const { return *m_number_format; }
|
||||
void set_number_format(NumberFormat* number_format) { m_number_format = number_format; }
|
||||
|
||||
PluralRules& plural_rules() const { return *m_plural_rules; }
|
||||
void set_plural_rules(PluralRules* plural_rules) { m_plural_rules = plural_rules; }
|
||||
|
||||
private:
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
@ -65,6 +68,7 @@ private:
|
|||
Unicode::Style m_style { Unicode::Style::Long }; // [[Style]]
|
||||
Numeric m_numeric { Numeric::Always }; // [[Numeric]]
|
||||
NumberFormat* m_number_format { nullptr }; // [[NumberFormat]]
|
||||
PluralRules* m_plural_rules { nullptr }; // [[PluralRules]]
|
||||
};
|
||||
|
||||
struct PatternPartitionWithUnit : public PatternPartition {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue