diff --git a/apps/renderer/src/constants/shortcuts.ts b/apps/renderer/src/constants/shortcuts.ts index 38efb5e1b9..ad8b06b2be 100644 --- a/apps/renderer/src/constants/shortcuts.ts +++ b/apps/renderer/src/constants/shortcuts.ts @@ -93,3 +93,11 @@ export const shortcuts = { }, }, } as const + +export const shortcutsType: { [key in keyof typeof shortcuts]: string } = { + feeds: "keys.type.feeds", + layout: "keys.type.layout", + entries: "keys.type.entries", + entry: "keys.type.entry", + audio: "keys.type.audio", +} diff --git a/apps/renderer/src/modules/modal/shortcuts.tsx b/apps/renderer/src/modules/modal/shortcuts.tsx index 66642d8dcc..99d416f56a 100644 --- a/apps/renderer/src/modules/modal/shortcuts.tsx +++ b/apps/renderer/src/modules/modal/shortcuts.tsx @@ -9,7 +9,7 @@ import { KbdCombined } from "~/components/ui/kbd/Kbd" import { useCurrentModal, useModalStack } from "~/components/ui/modal" import { PlainModal } from "~/components/ui/modal/stacked/custom-modal" import { ScrollArea } from "~/components/ui/scroll-area" -import { shortcuts } from "~/constants/shortcuts" +import { shortcuts, shortcutsType } from "~/constants/shortcuts" import { useSwitchHotKeyScope } from "~/hooks/common" import { cn } from "~/lib/utils" @@ -53,7 +53,7 @@ const ShortcutModalContent = () => {
{Object.keys(shortcuts).map((type) => (
-
{type}
+
{t(shortcutsType[type])}
{Object.keys(shortcuts[type]).map((action, index) => (
{Object.keys(shortcuts).map((type) => (
-
{type}
+
{t(shortcutsType[type])}
{Object.keys(shortcuts[type]).map((action, index) => (