]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_reminders): Fix translations
authorChristopher Ng <chrng8@gmail.com>
Thu, 15 Feb 2024 01:05:38 +0000 (17:05 -0800)
committerChristopher Ng <chrng8@gmail.com>
Fri, 8 Mar 2024 11:46:55 +0000 (03:46 -0800)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/files_reminders/src/actions/clearReminderAction.ts
apps/files_reminders/src/actions/setReminderCustomAction.ts
apps/files_reminders/src/actions/setReminderMenuAction.ts

index 6f6d792750dcf4db15631764a5d9df2039dae25a..b8d1d55a5fbf750ea20cdfd1d59e64759d3754a6 100644 (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,
index efcf70dc3118ac2074b77877f291a575a5b342a6..2130adbb12d20fb8c6a5abff254c8416f3b7a754 100644 (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,
 
index 11810413db1cf8091ce7287c840b5c388d3c0ef4..20a4e89d2e9e3881f6155eab679eb9490dda1069 100644 (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,