mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Localize new hotkey settings
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
"viewPlaylists": "view $t(entity.playlist_other)"
|
"viewPlaylists": "view $t(entity.playlist_other)"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
"currentSong": "current $t(entity.track_one)",
|
||||||
|
"previousSong": "previous $t(entity.track_one)",
|
||||||
"backward": "backward",
|
"backward": "backward",
|
||||||
"forward": "forward",
|
"forward": "forward",
|
||||||
"modified": "modified",
|
"modified": "modified",
|
||||||
@@ -414,6 +416,12 @@
|
|||||||
"gaplessAudio_optionWeak": "weak (recommended)",
|
"gaplessAudio_optionWeak": "weak (recommended)",
|
||||||
"globalMediaHotkeys": "global media hotkeys",
|
"globalMediaHotkeys": "global media hotkeys",
|
||||||
"globalMediaHotkeys_description": "enable or disable the usage of your system media hotkeys to control playback",
|
"globalMediaHotkeys_description": "enable or disable the usage of your system media hotkeys to control playback",
|
||||||
|
"hotkey_favoriteCurrentSong": "favorite $t(common.currentSong)",
|
||||||
|
"hotkey_unfavoriteCurrentSong": "unfavorite $t(common.currentSong)",
|
||||||
|
"hotkey_toggleCurrentSongFavorite": "toggle $t(common.currentSong) favorite",
|
||||||
|
"hotkey_favoritePreviousSong": "favorite $t(common.previousSong)",
|
||||||
|
"hotkey_unfavoritePreviousSong": "unfavorite $t(common.previousSong)",
|
||||||
|
"hotkey_togglePreviousSongFavorite": "toggle $t(common.previousSong) favorite",
|
||||||
"hotkey_browserBack": "browser back",
|
"hotkey_browserBack": "browser back",
|
||||||
"hotkey_browserForward": "browser forward",
|
"hotkey_browserForward": "browser forward",
|
||||||
"hotkey_globalSearch": "global search",
|
"hotkey_globalSearch": "global search",
|
||||||
|
|||||||
@@ -18,12 +18,30 @@ const BINDINGS_MAP: Record<BindingActions, string> = {
|
|||||||
context: 'browserForward',
|
context: 'browserForward',
|
||||||
postProcess: 'sentenceCase',
|
postProcess: 'sentenceCase',
|
||||||
}),
|
}),
|
||||||
favoriteCurrentAdd: 'Favorite current song',
|
favoriteCurrentAdd: i18n.t('setting.hotkey', {
|
||||||
favoriteCurrentRemove: 'Unfavorite current song',
|
context: 'favoriteCurrentSong',
|
||||||
favoriteCurrentToggle: 'Toggle current song favorite',
|
postProcess: 'sentenceCase',
|
||||||
favoritePreviousAdd: 'Favorite previous song',
|
}),
|
||||||
favoritePreviousRemove: 'Unfavorite previous song',
|
favoriteCurrentRemove: i18n.t('setting.hotkey', {
|
||||||
favoritePreviousToggle: 'Toggle previous song favorite',
|
context: 'unfavoriteCurrentSong',
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
|
favoriteCurrentToggle: i18n.t('setting.hotkey', {
|
||||||
|
context: 'toggleCurrentSongFavorite',
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
|
favoritePreviousAdd: i18n.t('setting.hotkey', {
|
||||||
|
context: 'favoritePreviousSong',
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
|
favoritePreviousRemove: i18n.t('setting.hotkey', {
|
||||||
|
context: 'unfavoritePreviousSong',
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
|
favoritePreviousToggle: i18n.t('setting.hotkey', {
|
||||||
|
context: 'togglePreviousSongFavorite',
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
globalSearch: i18n.t('setting.hotkey', {
|
globalSearch: i18n.t('setting.hotkey', {
|
||||||
context: 'globalSearch',
|
context: 'globalSearch',
|
||||||
postProcess: 'sentenceCase',
|
postProcess: 'sentenceCase',
|
||||||
|
|||||||
Reference in New Issue
Block a user