Skip to content

Commit 6fc731a

Browse files
st3inybackportbot[bot]
authored andcommitted
fix: always show alarm unit in pural
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent d6a76cc commit 6fc731a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/Editor/Alarm/AlarmTimeUnitSelect.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,28 +71,28 @@ export default {
7171

7272
if (this.unit === 'seconds') {
7373
options.push({
74-
label: this.$n('calendar', 'second', 'seconds', this.count),
74+
label: this.$t('calendar', 'seconds'),
7575
unit: 'seconds',
7676
})
7777
}
7878

7979
if (!this.isAllDay || ['minutes', 'hours'].indexOf(this.unit) !== -1) {
8080
options.push({
81-
label: this.$n('calendar', 'minute', 'minutes', this.count),
81+
label: this.$t('calendar', 'minutes'),
8282
unit: 'minutes',
8383
})
8484
options.push({
85-
label: this.$n('calendar', 'hour', 'hours', this.count),
85+
label: this.$t('calendar', 'hours'),
8686
unit: 'hours',
8787
})
8888
}
8989

9090
options.push({
91-
label: this.$n('calendar', 'day', 'days', this.count),
91+
label: this.$t('calendar', 'days'),
9292
unit: 'days',
9393
})
9494
options.push({
95-
label: this.$n('calendar', 'week', 'weeks', this.count),
95+
label: this.$t('calendar', 'weeks'),
9696
unit: 'weeks',
9797
})
9898

0 commit comments

Comments
 (0)