fix(files_reminders): Fix translations

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2024-02-14 17:05:38 -08:00 committed by backportbot[bot]
parent 8db8c615d0
commit 8cec4fe9cb
3 changed files with 4 additions and 4 deletions

View file

@ -33,12 +33,12 @@ import { getVerboseDateString } from '../shared/utils.ts'
export const action = new FileAction({
id: 'clear-reminder',
displayName: () => t('files', 'Clear reminder'),
displayName: () => t('files_reminders', 'Clear reminder'),
title: (nodes: Node[]) => {
const node = nodes.at(0)!
const dueDate = new Date(node.attributes['reminder-due-date'])
return `${t('files', 'Clear reminder')} ${getVerboseDateString(dueDate)}`
return `${t('files_reminders', 'Clear reminder')} ${getVerboseDateString(dueDate)}`
},
iconSvgInline: () => AlarmOffSvg,

View file

@ -28,7 +28,7 @@ import { pickCustomDate } from '../services/customPicker'
export const action = new FileAction({
id: 'set-reminder-custom',
displayName: () => t('files', 'Set custom reminder'),
displayName: () => t('files_reminders', 'Set custom reminder'),
title: () => t('files_reminders', 'Set reminder at custom date & time'),
iconSvgInline: () => CalendarClockSvg,

View file

@ -27,7 +27,7 @@ export const SET_REMINDER_MENU_ID = 'set-reminder-menu'
export const action = new FileAction({
id: SET_REMINDER_MENU_ID,
displayName: () => t('files', 'Set reminder'),
displayName: () => t('files_reminders', 'Set reminder'),
iconSvgInline: () => AlarmSvg,
enabled: () => true,