Reusing hard coded In~1 min with base date minute i18n string.

This commit is contained in:
softsimon
2021-07-17 16:36:21 +03:00
parent 08fd4a4835
commit 7bf9d604b9
2 changed files with 7 additions and 10 deletions

View File

@@ -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) {