From 9a3613856cc214468e424850abfccfbf9575d947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abass=20=F0=9F=8D=89?= Date: Thu, 23 Oct 2025 22:59:32 +0300 Subject: [PATCH] Change Relative Time Formatter options to 'always' (#6240) --- src/util-frontend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util-frontend.js b/src/util-frontend.js index a3dc4c3ac..7ed3a0cf2 100644 --- a/src/util-frontend.js +++ b/src/util-frontend.js @@ -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");