diff --git a/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx b/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx index 29a4060a9c..0efb11fd6c 100644 --- a/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/KeyboardUserSettingsTab.tsx @@ -35,7 +35,8 @@ const getKeyboardShortcutValue = (name: string) => { }; const getKeyboardShortcutDisplayName = (name: string): string => { - return getKeyboardShortcuts()[name]?.displayName as string; + const keyboardShortcutDisplayName = getKeyboardShortcuts()[name]?.displayName as string; + return keyboardShortcutDisplayName && _t(keyboardShortcutDisplayName); }; interface IKeyboardKeyProps { diff --git a/test/components/views/settings/tabs/user/__snapshots__/KeyboardUserSettingsTab-test.tsx.snap b/test/components/views/settings/tabs/user/__snapshots__/KeyboardUserSettingsTab-test.tsx.snap index ab0a3b8eb3..99a97a72d0 100644 --- a/test/components/views/settings/tabs/user/__snapshots__/KeyboardUserSettingsTab-test.tsx.snap +++ b/test/components/views/settings/tabs/user/__snapshots__/KeyboardUserSettingsTab-test.tsx.snap @@ -140,7 +140,7 @@ exports[`KeyboardUserSettingsTab renders list of keyboard shortcuts 1`] = `