From 80f1bf65f0d7d28ed31ff1c3aa820ffd6acb6110 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 10:16:31 +0000 Subject: [PATCH 1/2] Initial plan From 993b0f6ae95dc7edb64227cb3fb0b33f4813ee12 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 14 May 2026 10:59:41 +0100 Subject: [PATCH 2/2] feat: add localization key for print button Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- locales/en.json | 3 +++ static/tests/frontend-new/specs/smoke.spec.ts | 5 +++++ templates/editbarButtons.ejs | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 locales/en.json diff --git a/locales/en.json b/locales/en.json new file mode 100644 index 0000000..aae3b7a --- /dev/null +++ b/locales/en.json @@ -0,0 +1,3 @@ +{ + "ep_print.toolbar.print": "Print" +} diff --git a/static/tests/frontend-new/specs/smoke.spec.ts b/static/tests/frontend-new/specs/smoke.spec.ts index b74f7ae..1c04c40 100644 --- a/static/tests/frontend-new/specs/smoke.spec.ts +++ b/static/tests/frontend-new/specs/smoke.spec.ts @@ -10,4 +10,9 @@ test.describe('ep_print', () => { const padBody = await getPadBody(page); await expect(padBody).toBeVisible(); }); + + test('print button exposes a localization key', async ({page}) => { + const printButton = page.locator('#printButton a.ep_print'); + await expect(printButton).toHaveAttribute('data-l10n-id', 'ep_print.toolbar.print'); + }); }); diff --git a/templates/editbarButtons.ejs b/templates/editbarButtons.ejs index 02e31f2..df28816 100755 --- a/templates/editbarButtons.ejs +++ b/templates/editbarButtons.ejs @@ -1,5 +1,8 @@
  • - +