Re-factor the toggleButton l10n in the PDFSidebar class

Rather than "manually" looking up the l10n-string and then updating the button, we can (and probably even should) just update the l10n-id and then trigger proper translation for the button DOM-element.
This commit is contained in:
Jonas Jenwald 2022-09-30 09:56:54 +02:00
parent 0011a747f7
commit bad00f825a
2 changed files with 7 additions and 10 deletions

View file

@ -40,10 +40,6 @@ const DEFAULT_L10N_STRINGS = {
print_progress_percent: "{{progress}}%",
"toggle_sidebar.title": "Toggle Sidebar",
"toggle_sidebar_notification2.title":
"Toggle Sidebar (document contains outline/attachments/layers)",
additional_layers: "Additional Layers",
page_landmark: "Page {{page}}",
thumb_page_title: "Page {{page}}",