Skip to content

Commit

Permalink
Merge pull request #6752 from nextcloud/fix/alarms-plural
Browse files Browse the repository at this point in the history
fix: always show alarm unit in pural
  • Loading branch information
st3iny authored Feb 20, 2025
2 parents 19f0213 + 1509e87 commit c91c1c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Editor/Alarm/AlarmTimeUnitSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,28 @@ export default {

if (this.unit === 'seconds') {
options.push({
label: this.$n('calendar', 'second', 'seconds', this.count),
label: this.$t('calendar', 'seconds'),
unit: 'seconds',
})
}

if (!this.isAllDay || ['minutes', 'hours'].indexOf(this.unit) !== -1) {
options.push({
label: this.$n('calendar', 'minute', 'minutes', this.count),
label: this.$t('calendar', 'minutes'),
unit: 'minutes',
})
options.push({
label: this.$n('calendar', 'hour', 'hours', this.count),
label: this.$t('calendar', 'hours'),
unit: 'hours',
})
}

options.push({
label: this.$n('calendar', 'day', 'days', this.count),
label: this.$t('calendar', 'days'),
unit: 'days',
})
options.push({
label: this.$n('calendar', 'week', 'weeks', this.count),
label: this.$t('calendar', 'weeks'),
unit: 'weeks',
})

Expand Down

0 comments on commit c91c1c4

Please sign in to comment.