Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix(files_reminders): Fix translations #44599

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/files_reminders/src/actions/clearReminderAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
2 changes: 1 addition & 1 deletion apps/files_reminders/src/actions/setReminderMenuAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading