diff --git a/src/locales/en.json b/src/locales/en.json index 1cff55978..db451cfbf 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -90,6 +90,7 @@ "MEDIA_CONTROL_VOLUME_UP": "Increase volume", "MINIPLAYER": "Miniplayer", "PREFIX_OPEN_CLOSE": "Open/Close", + "REMOVE_FROM_LIBRARY": "Remove from library", "SHORTCUT_BUTTONS": "UI Actions", "SHOW": "Show", "SKIP_TRACK_MARKED_DISLIKED": "Skip tracks marked as 'Disliked'", diff --git a/src/locales/pt.json b/src/locales/pt.json index a7032b2fc..abdaacd92 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -90,6 +90,7 @@ "MEDIA_CONTROL_VOLUME_UP": "Aumentar volume", "MINIPLAYER": "Miniplayer", "PREFIX_OPEN_CLOSE": "Abrir/Fechar", + "REMOVE_FROM_LIBRARY": "Remover da biblioteca", "SHORTCUT_BUTTONS": "Ações da UI", "SHOW": "Exibir", "SKIP_TRACK_MARKED_DISLIKED": "Pular faixas marcadas como 'Não gostei'", diff --git a/src/locales/scaffold.json b/src/locales/scaffold.json index 1cff55978..db451cfbf 100644 --- a/src/locales/scaffold.json +++ b/src/locales/scaffold.json @@ -90,6 +90,7 @@ "MEDIA_CONTROL_VOLUME_UP": "Increase volume", "MINIPLAYER": "Miniplayer", "PREFIX_OPEN_CLOSE": "Open/Close", + "REMOVE_FROM_LIBRARY": "Remove from library", "SHORTCUT_BUTTONS": "UI Actions", "SHOW": "Show", "SKIP_TRACK_MARKED_DISLIKED": "Skip tracks marked as 'Disliked'", diff --git a/src/utils/injectControls.js b/src/utils/injectControls.js index 5e4a4d888..3855a5c26 100644 --- a/src/utils/injectControls.js +++ b/src/utils/injectControls.js @@ -530,9 +530,15 @@ function createBottomPlayerBarContent() { ) { document.querySelector('#ytmd_add_to_library').innerText = 'check' + document.querySelector( + '#ytmd_add_to_library' + ).title = translate('REMOVE_FROM_LIBRARY') } else { document.querySelector('#ytmd_add_to_library').innerText = 'library_add' + document.querySelector( + '#ytmd_add_to_library' + ).title = translate('ADD_TO_LIBRARY') } document .querySelector('#btn_ytmd_add_to_library')