diff --git a/src/scripts/renderer.ts b/src/scripts/renderer.ts index e6cd01d2..3c958e8a 100644 --- a/src/scripts/renderer.ts +++ b/src/scripts/renderer.ts @@ -257,6 +257,8 @@ let strings = { changeFontSerif: loc("WebClipper.Accessibility.ScreenReader.ChangeFontToSerif", "Change font to Serif"), decreaseFontSize: loc("WebClipper.Accessibility.ScreenReader.DecreaseFontSize", "Decrease font size"), increaseFontSize: loc("WebClipper.Accessibility.ScreenReader.IncreaseFontSize", "Increase font size"), + fontSizeDecreasedTo: loc("WebClipper.Accessibility.ScreenReader.FontSizeDecreasedTo", "Font size decreased to {0}"), + fontSizeIncreasedTo: loc("WebClipper.Accessibility.ScreenReader.FontSizeIncreasedTo", "Font size increased to {0}"), sansSerifLabel: loc("WebClipper.Preview.Header.SansSerifButtonLabel", "Sans-serif"), serifLabel: loc("WebClipper.Preview.Header.SerifButtonLabel", "Serif"), fontFamilySerif: loc("WebClipper.FontFamily.Preview.SerifDefault", "Georgia"), @@ -1532,14 +1534,14 @@ fontDecreaseBtn.addEventListener("click", () => { articleFontSize -= 2; applyArticleFontSize(); updateFontSizeButtonStates(); - announceToScreenReader(strings.decreaseFontSize); + announceToScreenReader(strings.fontSizeDecreasedTo.replace("{0}", "" + articleFontSize)); }); fontIncreaseBtn.addEventListener("click", () => { if (articleFontSize >= 72) { return; } articleFontSize += 2; applyArticleFontSize(); updateFontSizeButtonStates(); - announceToScreenReader(strings.increaseFontSize); + announceToScreenReader(strings.fontSizeIncreasedTo.replace("{0}", "" + articleFontSize)); }); // Highlighter toggle