Skip to content

Commit

Permalink
Display 'Option' instead of 'Alt' for Mac users
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Oct 20, 2024
1 parent 6f8d212 commit 16693ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/renderer/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,11 @@ export function getChannelPlaylistId(channelId, type, sortBy) {

function getIndividualLocalizedShortcut(shortcut) {
switch (shortcut) {
case 'option':
case 'alt':
return i18n.t('Keys.alt')
return process.platform === 'darwin'
? i18n.t('Keys.option')
: i18n.t('Keys.alt')
case 'cmd':
case 'ctrl':
return process.platform === 'darwin'
Expand Down
1 change: 1 addition & 0 deletions static/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,7 @@ Keys:
alt: Alt
cmd: Cmd
ctrl: Ctrl
option: Option
arrowdown: Down Arrow
arrowleft: Left Arrow
arrowright: Right Arrow
Expand Down

0 comments on commit 16693ea

Please sign in to comment.