fix: use vue-i18n pluralization
This commit is contained in:
parent
429b8a1ec4
commit
2aee048f61
4 changed files with 24 additions and 31 deletions
|
@ -36,35 +36,35 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>s</code></td>
|
<td><code>s</code></td>
|
||||||
<td>{{ $t('time.seconds') }}</td>
|
<td>{{ $tc('time.seconds', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>m</code></td>
|
<td><code>m</code></td>
|
||||||
<td>{{ $t('time.minutes') }}</td>
|
<td>{{ $tc('time.minutes', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>h</code></td>
|
<td><code>h</code></td>
|
||||||
<td>{{ $t('time.hours') }}</td>
|
<td>{{ $tc('time.hours', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>H</code></td>
|
<td><code>H</code></td>
|
||||||
<td>{{ $t('time.hours') }}</td>
|
<td>{{ $tc('time.hours', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>d</code></td>
|
<td><code>d</code></td>
|
||||||
<td>{{ $t('time.days') }}</td>
|
<td>{{ $tc('time.days', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>w</code></td>
|
<td><code>w</code></td>
|
||||||
<td>{{ $t('time.weeks') }}</td>
|
<td>{{ $tc('time.weeks', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>M</code></td>
|
<td><code>M</code></td>
|
||||||
<td>{{ $t('time.months') }}</td>
|
<td>{{ $tc('time.months', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>y</code></td>
|
<td><code>y</code></td>
|
||||||
<td>{{ $t('time.years') }}</td>
|
<td>{{ $tc('time.years', 2) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -48,11 +48,11 @@
|
||||||
@change="updateData"
|
@change="updateData"
|
||||||
:disabled="disabled || undefined"
|
:disabled="disabled || undefined"
|
||||||
>
|
>
|
||||||
<option value="hours">{{ $t('time.hours') }}</option>
|
<option value="hours">{{ $tc('time.hours', 2) }}</option>
|
||||||
<option value="days">{{ $t('time.days') }}</option>
|
<option value="days">{{ $tc('time.days', 2) }}</option>
|
||||||
<option value="weeks">{{ $t('time.weeks') }}</option>
|
<option value="weeks">{{ $tc('time.weeks', 2) }}</option>
|
||||||
<option value="months">{{ $t('time.months') }}</option>
|
<option value="months">{{ $tc('time.months', 2) }}</option>
|
||||||
<option value="years">{{ $t('time.years') }}</option>
|
<option value="years">{{ $tc('time.years', 2) }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -589,20 +589,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"seconds": "Seconds",
|
"seconds": "Second | Seconds",
|
||||||
"second": "Second",
|
"minutes": "Minute | Minutes",
|
||||||
"minutes": "Minutes",
|
"hours": "Hour | Hours",
|
||||||
"minute": "Minute",
|
"days": "Day | Days",
|
||||||
"hours": "Hours",
|
"weeks": "Week | Weeks",
|
||||||
"hour": "Hour",
|
"months": "Month | Months",
|
||||||
"days": "Days",
|
"years": "Year | Years"
|
||||||
"day": "Day",
|
|
||||||
"weeks": "Weeks",
|
|
||||||
"week": "Week",
|
|
||||||
"months": "Months",
|
|
||||||
"month": "Month",
|
|
||||||
"years": "Years",
|
|
||||||
"year": "Year"
|
|
||||||
},
|
},
|
||||||
"task": {
|
"task": {
|
||||||
"task": "Task",
|
"task": "Task",
|
||||||
|
|
|
@ -44,16 +44,16 @@
|
||||||
<div class="control select">
|
<div class="control select">
|
||||||
<select v-model="defaultReminderAmountType">
|
<select v-model="defaultReminderAmountType">
|
||||||
<option value="minutes">
|
<option value="minutes">
|
||||||
{{ $t('time.minute' + (defaultReminderAmount === 1 ? '' : 's')) }}
|
{{ $tc('time.minutes', defaultReminderAmount) }}
|
||||||
</option>
|
</option>
|
||||||
<option value="hours">
|
<option value="hours">
|
||||||
{{ $t('time.hour' + (defaultReminderAmount === 1 ? '' : 's')) }}
|
{{ $tc('time.hours', defaultReminderAmount) }}
|
||||||
</option>
|
</option>
|
||||||
<option value="days">
|
<option value="days">
|
||||||
{{ $t('time.day' + (defaultReminderAmount === 1 ? '' : 's')) }}
|
{{ $tc('time.days', defaultReminderAmount) }}
|
||||||
</option>
|
</option>
|
||||||
<option value="months">
|
<option value="months">
|
||||||
{{ $t('time.month' + (defaultReminderAmount === 1 ? '' : 's')) }}
|
{{ $tc('time.months', defaultReminderAmount) }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue