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
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
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) {

View File

@ -3125,12 +3125,16 @@
<context context-type="linenumber">99</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.last-minute" datatype="html">
<source>In ~1 min</source>
<trans-unit id="date-base.minute" datatype="html">
<source><x id="DATE" equiv-text="1"/> minute</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/components/time-until/time-until.component.ts</context>
<context context-type="linenumber">58</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">13</context>
</context-group>
</trans-unit>
<trans-unit id="time-until" datatype="html">
<source>In ~<x id="DATE" equiv-text="dateStrings.i18nYear"/></source>
@ -3840,13 +3844,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.minute" datatype="html">
<source><x id="DATE" equiv-text="counter"/> minute</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/shared/i18n/dates.ts</context>
<context context-type="linenumber">13</context>
</context-group>
</trans-unit>
<trans-unit id="date-base.minutes" datatype="html">
<source><x id="DATE" equiv-text="counter"/> minutes</source>
<context-group purpose="location">