diff --git a/src/lib/components/AboutDialog.svelte b/src/lib/components/AboutDialog.svelte index 69d2222..02c5803 100644 --- a/src/lib/components/AboutDialog.svelte +++ b/src/lib/components/AboutDialog.svelte @@ -1,4 +1,5 @@ -
{/if} diff --git a/src/lib/components/HeaderFooterLayer.svelte b/src/lib/components/HeaderFooterLayer.svelte index e5898f8..2507394 100644 --- a/src/lib/components/HeaderFooterLayer.svelte +++ b/src/lib/components/HeaderFooterLayer.svelte @@ -4,6 +4,7 @@ import { hfIsEmpty, DEFAULT_HF_DISTANCES, type HfDoc, type HfZone, type HfDistances } from '../storage/headerFooter'; import { cmToPx, type PageMargins } from '../storage/pageMargins'; import { PAGE_W_PORTRAIT, PAGE_H_PORTRAIT, type Orientation } from '../storage/pageOrientation'; + import { t } from '../i18n/i18n.svelte'; let { headerDoc = $bindable(), @@ -130,7 +131,7 @@ liveZone = zone; const ed = new Editor({ element: mount, - extensions: hfExtensions(zone === 'header' ? 'Header…' : 'Footer…'), + extensions: hfExtensions(zone === 'header' ? t().hf.headerPlaceholder : t().hf.footerPlaceholder), content: (zoneDoc(zone) ?? emptyDoc()) as Content, // No autofocus: its scrollIntoView nudges the page so the just-clicked zone // appears to jump. Focus the zone explicitly without scrolling instead. @@ -180,7 +181,7 @@