Change Relative Time Formatter options to 'always' (#6240)
This commit is contained in:
parent
49f8f8d803
commit
9a3613856c
@ -219,7 +219,7 @@ class RelativeTimeFormatter {
|
||||
* Default locale and options for Relative Time Formatter
|
||||
*/
|
||||
constructor() {
|
||||
this.options = { numeric: "auto" };
|
||||
this.options = { numeric: "always" };
|
||||
this.instance = new Intl.RelativeTimeFormat(currentLocale(), this.options);
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ class RelativeTimeFormatter {
|
||||
};
|
||||
|
||||
if (days > 0) {
|
||||
toFormattedPart(days, "days");
|
||||
toFormattedPart(days, "day");
|
||||
}
|
||||
if (hours > 0) {
|
||||
toFormattedPart(hours, "hour");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user