Skip to content

Commit

Permalink
* Allow shortcut label separator to be translated
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Dec 29, 2024
1 parent a32e332 commit 98d8e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,5 +1030,6 @@ export function localizeAndAddKeyboardShortcutToActionTitle(localizedActionTitle
unlocalizedShortcuts = [unlocalizedShortcuts]
}
const localizedShortcuts = unlocalizedShortcuts.map((s) => getLocalizedShortcut(s))
return addKeyboardShortcutToActionTitle(localizedActionTitle, localizedShortcuts.join('/'))
const shortcutLabelSeparator = i18n.t('shortcutLabelSeparator')
return addKeyboardShortcutToActionTitle(localizedActionTitle, localizedShortcuts.join(shortcutLabelSeparator))
}
1 change: 1 addition & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ checkmark: ✓
Display Label: '{label}: {value}'
KeyboardShortcutTemplate: '{label} ({shortcut})'
shortcutJoinOperator: +
shortcutLabelSeparator: /
Keys:
alt: Alt
ctrl: Ctrl
Expand Down

0 comments on commit 98d8e39

Please sign in to comment.