From 7bf9d604b9e29a60f564eb0469af07cac4c788fe Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 17 Jul 2021 16:36:21 +0300 Subject: [PATCH] Reusing hard coded In~1 min with base date minute i18n string. --- .../components/time-until/time-until.component.ts | 2 +- frontend/src/locale/messages.xlf | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/frontend/src/app/components/time-until/time-until.component.ts b/frontend/src/app/components/time-until/time-until.component.ts index b85d909cd..9ff0d9e0b 100644 --- a/frontend/src/app/components/time-until/time-until.component.ts +++ b/frontend/src/app/components/time-until/time-until.component.ts @@ -55,7 +55,7 @@ export class TimeUntilComponent implements OnInit, OnChanges, OnDestroy { const seconds = Math.floor((+new Date(this.time) - +new Date()) / 1000); if (seconds < 60) { - return $localize`:@@date-base.last-minute:In ~1 min`; + return $localize`:@@date-base.minute:${1}:DATE: minute`; } let counter; for (const i in this.intervals) { diff --git a/frontend/src/locale/messages.xlf b/frontend/src/locale/messages.xlf index abf90ed16..39f4f20aa 100644 --- a/frontend/src/locale/messages.xlf +++ b/frontend/src/locale/messages.xlf @@ -3125,12 +3125,16 @@ 99 - - In ~1 min + + minute src/app/components/time-until/time-until.component.ts 58 + + src/app/shared/i18n/dates.ts + 13 + In ~ @@ -3840,13 +3844,6 @@ 12 - - minute - - src/app/shared/i18n/dates.ts - 13 - - minutes