1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +00:00

LibJS: Delegate to NumberFormat for DurationFormat unit formatting

This is a normative change in the Intl.DurationFormat proposal. See:
12ba9df
This commit is contained in:
Timothy Flynn 2022-09-02 09:06:55 -04:00 committed by Linus Groh
parent a5bf32018f
commit 99fc94e138
2 changed files with 35 additions and 49 deletions

View file

@ -194,7 +194,7 @@ struct DurationInstanceComponent {
DurationFormat::Display (DurationFormat::*get_display_slot)() const;
void (DurationFormat::*set_display_slot)(StringView);
StringView unit;
StringView unit_singular;
StringView number_format_unit;
Span<StringView const> values;
StringView digital_default;
};