Fix translation for keyboard shortcut displaynames (#7758)
This commit is contained in:
parent
2f7b26214d
commit
8103e606c4
2 changed files with 5 additions and 4 deletions
|
@ -35,7 +35,8 @@ const getKeyboardShortcutValue = (name: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getKeyboardShortcutDisplayName = (name: string): 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 {
|
interface IKeyboardKeyProps {
|
||||||
|
|
|
@ -140,7 +140,7 @@ exports[`KeyboardUserSettingsTab renders list of keyboard shortcuts 1`] = `
|
||||||
<div
|
<div
|
||||||
className="mx_KeyboardShortcut_shortcutRow"
|
className="mx_KeyboardShortcut_shortcutRow"
|
||||||
>
|
>
|
||||||
Cancel replying to a message
|
missing translation: en|Cancel replying to a message
|
||||||
<KeyboardShortcut
|
<KeyboardShortcut
|
||||||
name="keybind1"
|
name="keybind1"
|
||||||
>
|
>
|
||||||
|
@ -177,7 +177,7 @@ exports[`KeyboardUserSettingsTab renders list of keyboard shortcuts 1`] = `
|
||||||
<div
|
<div
|
||||||
className="mx_KeyboardShortcut_shortcutRow"
|
className="mx_KeyboardShortcut_shortcutRow"
|
||||||
>
|
>
|
||||||
Toggle Bold
|
missing translation: en|Toggle Bold
|
||||||
<KeyboardShortcut
|
<KeyboardShortcut
|
||||||
name="keybind2"
|
name="keybind2"
|
||||||
>
|
>
|
||||||
|
@ -241,7 +241,7 @@ exports[`KeyboardUserSettingsTab renders list of keyboard shortcuts 1`] = `
|
||||||
<div
|
<div
|
||||||
className="mx_KeyboardShortcut_shortcutRow"
|
className="mx_KeyboardShortcut_shortcutRow"
|
||||||
>
|
>
|
||||||
Select room from the room list
|
missing translation: en|Select room from the room list
|
||||||
<KeyboardShortcut
|
<KeyboardShortcut
|
||||||
name="keybind3"
|
name="keybind3"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue