🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots 📖
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
refactor: name shared translation keys after what they show instead of the extension page
Luis Ortizcd41227fcd62
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex af5fef1..9bacbff 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -239,7 +239,7 @@ function refreshTrayMenu(): void {if (!tray) return;tray.setContextMenu(Menu.buildFromTemplate([- { label: mainI18n.t('fullview.allGuides'), click: () => openInWindow('library') },+ { label: mainI18n.t('library.allGuides'), click: () => openInWindow('library') },{ label: mainI18n.t('capture.startCapture'), click: () => openInWindow('capture') },{ label: mainI18n.t('settings.title'), click: () => openInWindow('settings') },{ type: 'separator' },@@ -261,7 +261,13 @@ function createTray(): void {}function stateUpdate(command: OverlayCommand | null, guideId: string | null): DesktopStateUpdate {- return { command, ...captureStateUpdate(capture.getSnapshot()), currentGuideId: guideId };+ const snapshot = capture.getSnapshot();+ return {+ command,+ ...captureStateUpdate(snapshot),+ currentGuideId: guideId,+ narrationWasLive: snapshot.context.narrationWasLive,+ };}function broadcastState(command: OverlayCommand, guideId: string | null): void {diff --git a/apps/desktop/src/renderer/capture-host.ts b/apps/desktop/src/renderer/capture-host.tsindex 77bfadc..62d2428 100644--- a/apps/desktop/src/renderer/capture-host.ts+++ b/apps/desktop/src/renderer/capture-host.ts@@ -14,14 +14,13 @@ import { DesktopCaptureSink } from './capture-sink';import { desktopNarration as narration } from './desktop-narration';const sink = new DesktopCaptureSink(narration);-let narratingBeforePause = false;allScreenshotIds().then((ids) => window.mimik.screenshots.sweep(ids));window.mimik.onRequest('mimik:capture:createGuide', (payload) => sink.createGuide(payload));window.mimik.onRequest('mimik:capture:captureStep', (payload) => sink.captureStep(payload));-window.mimik.capture.onStateUpdate(async ({ command, state, currentGuideId }) => {+window.mimik.capture.onStateUpdate(async ({ command, state, currentGuideId, narrationWasLive }) => {if (command === 'narration:start' || command === 'narration:stop') {await localStorage.set({ voiceEnabled: command === 'narration:start' });}@@ -29,14 +28,12 @@ window.mimik.capture.onStateUpdate(async ({ command, state, currentGuideId }) =>const recording = state === CaptureState.RECORDING;if (command === 'start' ||- (command === 'resume' && narratingBeforePause) ||+ (command === 'resume' && narrationWasLive) ||(command === 'narration:start' && recording)) {narration.start(currentGuideId);- } else if (command === 'pause') {- narratingBeforePause = narration.update.phase === 'recording';- narration.stop();- } else if (command === 'narration:stop') narration.turnOff();+ } else if (command === 'pause') narration.stop();+ else if (command === 'narration:stop') narration.turnOff();});window.mimik.onRequest('mimik:capture:deleteStep', async (payload) => {@@ -47,7 +44,7 @@ window.mimik.onRequest('mimik:capture:deleteStep', async (payload) => {async function appTitle(guideId: string): Promise<string> {const app = getMostCommonApp(await getStepsForGuide(guideId))?.name;- return app ? i18n.t('desktop.guideInApp', [app]) : i18n.t('background.newGuide');+ return app ? i18n.t('desktop.guideInApp', [app]) : i18n.t('guide.newGuide');}window.mimik.onRequest('mimik:capture:finishGuide', async (payload) => {diff --git a/apps/desktop/src/renderer/overlay/controls.ts b/apps/desktop/src/renderer/overlay/controls.tsindex c0a9bab..69eb889 100644--- a/apps/desktop/src/renderer/overlay/controls.ts+++ b/apps/desktop/src/renderer/overlay/controls.ts@@ -216,7 +216,7 @@ export function controls(): void {: paused? i18n.t('recording.capturePaused'): i18n.t('desktop.armed');- counter.textContent = i18n.t(count === 1 ? 'fullview.stepCount' : 'fullview.stepCountPlural', counted);+ counter.textContent = i18n.t(count === 1 ? 'guide.stepCount' : 'guide.stepCountPlural', counted);counter.hidden = !paused;const modeId = mode;@@ -297,7 +297,7 @@ export function controls(): void {? i18n.t(voiceErrorKey(narration.reason)): i18n.t(narration?.speaking ? 'voice.micHearing' : 'voice.micQuiet');bars.forEach((bar, index) => {- const scale = Math.max(VOICE_BAR_FLOOR, Math.min(1, (narration?.level ?? 0) * VOICE_BARS[index]));+ const scale = Math.max(VOICE_BAR_FLOOR, Math.min(1, (narration?.level ?? 0) * VOICE_BARS[index]!));bar.style.transform = `scaleY(${scale})`;});hintKey.textContent = key ?? '';diff --git a/packages/core/src/capture/ai/__tests__/finish-guide.test.ts b/packages/core/src/capture/ai/__tests__/finish-guide.test.tsindex 15c0bc5..44e675a 100644--- a/packages/core/src/capture/ai/__tests__/finish-guide.test.ts+++ b/packages/core/src/capture/ai/__tests__/finish-guide.test.ts@@ -47,7 +47,7 @@ const GUIDE_ID = 'guide-1';async function fallbackTitle(guideId: string): Promise<string> {const domain = await getGuideDomainMock(guideId);- return domain ? i18n.t('background.guideOnDomain', [domain]) : i18n.t('background.newGuide');+ return domain ? i18n.t('guide.onDomain', [domain]) : i18n.t('guide.newGuide');}const finish = (guideId: string) =>@@ -83,7 +83,7 @@ describe('guide meta', () => {await run(GUIDE_ID);- const sent = generateGuideMetaMock.mock.calls[0][0];+ const sent = generateGuideMetaMock.mock.calls[0]![0];expect(sent).toHaveLength(15);expect(sent[0].description).toBe('step 0');expect(sent[9].description).toBe('step 9');@@ -96,7 +96,7 @@ describe('guide meta', () => {await run(GUIDE_ID);- expect(generateGuideMetaMock.mock.calls[0][0]).toHaveLength(15);+ expect(generateGuideMetaMock.mock.calls[0]![0]).toHaveLength(15);});it.each(entryPoints)('%s drops steps that have no description', async (_name, run) => {@@ -107,7 +107,9 @@ describe('guide meta', () => {await run(GUIDE_ID);- expect(generateGuideMetaMock.mock.calls[0][0]).toEqual([{ description: 'kept', place: 'https://example.com/a' }]);+ expect(generateGuideMetaMock.mock.calls[0]![0]).toEqual([+ { description: 'kept', place: 'https://example.com/a' },+ ]);});it.each(entryPoints)("%s defaults the model to the provider's own default", async (_name, run) => {@@ -151,7 +153,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);expect(generateGuideMetaMock).not.toHaveBeenCalled();- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]');});it('applies the domain fallback title without calling the model when no key is set', async () => {@@ -160,7 +162,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);expect(generateGuideMetaMock).not.toHaveBeenCalled();- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]');});it('writes the fallback title before narration settles when no key is set', async () => {@@ -177,7 +179,7 @@ describe('guide meta', () => {const run = finish(GUIDE_ID);await vi.waitFor(() =>- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]'),+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]'),);expect(clearStepAiPendingMock).not.toHaveBeenCalled();@@ -238,7 +240,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);expect(generateGuideMetaMock).not.toHaveBeenCalled();- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]');expect(clearStepAiPendingMock).toHaveBeenCalledWith('step-1');});@@ -248,7 +250,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.newGuide');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.newGuide');});it('names a guide with no described step by the fallback, without asking the model', async () => {@@ -266,7 +268,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]');});it('stores both the title and the description on success', async () => {@@ -290,7 +292,7 @@ describe('guide meta', () => {await finish(GUIDE_ID);- expect(updateGuideTitleMock).toHaveBeenNthCalledWith(2, GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenNthCalledWith(2, GUIDE_ID, 'guide.onDomain[example.com]');});});diff --git a/packages/core/src/guides/__tests__/service.test.ts b/packages/core/src/guides/__tests__/service.test.tsindex 38f14e4..f6a02ba 100644--- a/packages/core/src/guides/__tests__/service.test.ts+++ b/packages/core/src/guides/__tests__/service.test.ts@@ -96,7 +96,7 @@ describe('createGuide', () => {const guide = await createGuide('g1');expect(guide.id).toBe('g1');- expect(guide.title).toBe('fullview.untitledGuide');+ expect(guide.title).toBe('guide.untitled');expect(guide.stepIds).toEqual([]);expect(guide.starred).toBe(false);expect(guide.deletedAt).toBeNull();@@ -123,8 +123,8 @@ describe('getGuide', () => {expect(result).not.toBeNull();expect(result!.guide.id).toBe('g1');expect(result!.steps).toHaveLength(2);- expect(result!.steps[0].id).toBe('s1');- expect(result!.steps[1].id).toBe('s2');+ expect(result!.steps[0]!.id).toBe('s1');+ expect(result!.steps[1]!.id).toBe('s2');expect(result!.screenshots.size).toBe(2);expect(result!.screenshots.get('s1')).toBeDefined();expect(result!.screenshots.get('s2')).toBeDefined();@@ -172,8 +172,8 @@ describe('deleteStep', () => {expect(guide!.stepIds).toEqual(['s2', 's3']);const remaining = await db.steps.where('guideId').equals('g1').sortBy('index');- expect(remaining[0].index).toBe(0);- expect(remaining[1].index).toBe(1);+ expect(remaining[0]!.index).toBe(0);+ expect(remaining[1]!.index).toBe(1);});});diff --git a/packages/core/src/guides/dexie-store.ts b/packages/core/src/guides/dexie-store.tsindex 2c7bf79..a636ce2 100644--- a/packages/core/src/guides/dexie-store.ts+++ b/packages/core/src/guides/dexie-store.ts@@ -59,7 +59,7 @@ async function hydrateAll(rows: StoredScreenshot[]): Promise<Screenshot[]> {async function createGuide(guideId: string, staging = false): Promise<Guide> {const guide: Guide = {id: guideId,- title: i18n.t('fullview.untitledGuide'),+ title: i18n.t('guide.untitled'),createdAt: Date.now(),updatedAt: Date.now(),stepIds: [],@@ -226,7 +226,7 @@ async function importGuide(bundle: ParsedBundle): Promise<string> {async function reorderSteps(guideId: string, orderedStepIds: string[]): Promise<void> {await db.transaction('rw', db.steps, db.guides, async () => {for (let i = 0; i < orderedStepIds.length; i++) {- await db.steps.update(orderedStepIds[i], { index: i });+ await db.steps.update(orderedStepIds[i]!, { index: i });}await db.guides.update(guideId, { stepIds: orderedStepIds, updatedAt: Date.now() });});diff --git a/packages/core/src/transfer/__tests__/parse.test.ts b/packages/core/src/transfer/__tests__/parse.test.tsindex 4e6acbf..5cc1499 100644--- a/packages/core/src/transfer/__tests__/parse.test.ts+++ b/packages/core/src/transfer/__tests__/parse.test.ts@@ -99,7 +99,7 @@ describe('parseManifest', () => {],}),);- expect(parsed.screenshots[0].edits?.annotations?.map((a) => a.id)).toEqual(['good']);+ expect(parsed.screenshots[0]!.edits?.annotations?.map((a) => a.id)).toEqual(['good']);});it('rejects a traversal that starts inside the screenshots folder', () => {@@ -137,7 +137,7 @@ describe('parseManifest', () => {],}),);- expect(parsed.screenshots[0].mimeType).toBe('image/webp');+ expect(parsed.screenshots[0]!.mimeType).toBe('image/webp');});it('drops a javascript: url rather than letting it reach an href', () => {@@ -156,8 +156,8 @@ describe('parseManifest', () => {],}),);- expect(parsed.steps[0].url).toBe('');- expect(parsed.steps[0].elementMeta?.href).toBeNull();+ expect(parsed.steps[0]!.url).toBe('');+ expect(parsed.steps[0]!.elementMeta?.href).toBeNull();});it('clamps absurd screenshot dimensions instead of sizing a canvas from them', () => {@@ -168,8 +168,8 @@ describe('parseManifest', () => {],}),);- expect(parsed.screenshots[0].width).toBeLessThanOrEqual(32_768);- expect(parsed.screenshots[0].height).toBeLessThanOrEqual(32_768);+ expect(parsed.screenshots[0]!.width).toBeLessThanOrEqual(32_768);+ expect(parsed.screenshots[0]!.height).toBeLessThanOrEqual(32_768);});it("enforces the manifest's own claim that typed values were stripped", () => {@@ -179,7 +179,7 @@ describe('parseManifest', () => {steps: [{ id: 's', index: 0, description: 'x', action: 'input', url: '', timestamp: 1, inputValue: 'hunter2' }],}),);- expect(parsed.steps[0].inputValue).toBeUndefined();+ expect(parsed.steps[0]!.inputValue).toBeUndefined();});it('keeps typed values when the bundle does not claim to have stripped them', () => {@@ -189,7 +189,7 @@ describe('parseManifest', () => {steps: [{ id: 's', index: 0, description: 'x', action: 'input', url: '', timestamp: 1, inputValue: 'hunter2' }],}),);- expect(parsed.steps[0].inputValue).toBe('hunter2');+ expect(parsed.steps[0]!.inputValue).toBe('hunter2');});it('drops a text annotation with no size, which would compute NaN geometry', () => {@@ -208,7 +208,7 @@ describe('parseManifest', () => {},],}),- ).screenshots[0].edits?.annotations;+ ).screenshots[0]!.edits?.annotations;expect(withAnnotations([{ id: 'bad', type: 'text', x: 1, y: 2, text: 'hi', color: '#000' }])).toBeUndefined();expect(@@ -220,7 +220,7 @@ describe('parseManifest', () => {it('titles a bundle with no title the way a new guide is titled', () => {const parsed = parseManifest(manifest({ guide: { title: ' ', createdAt: 1_700_000_000_000 } }));- expect(parsed.guide.title).toBe('fullview.untitledGuide');+ expect(parsed.guide.title).toBe('guide.untitled');});it('orders steps by their recorded index', () => {diff --git a/packages/core/src/transfer/schema.ts b/packages/core/src/transfer/schema.tsindex 63c5d63..0a4b09d 100644--- a/packages/core/src/transfer/schema.ts+++ b/packages/core/src/transfer/schema.ts@@ -302,7 +302,7 @@ export function parseManifest(raw: unknown): BundleManifest {version,exportedAt: num(raw.exportedAt) ?? Date.now(),guide: {- title: str(guide.title)?.trim() || i18n.t('fullview.untitledGuide'),+ title: str(guide.title)?.trim() || i18n.t('guide.untitled'),...(str(guide.description) ? { description: str(guide.description) } : {}),createdAt: num(guide.createdAt) ?? Date.now(),},diff --git a/packages/ui/src/guide/components/GuideContent.tsx b/packages/ui/src/guide/components/GuideContent.tsxindex b91ef0d..c85998d 100644--- a/packages/ui/src/guide/components/GuideContent.tsx+++ b/packages/ui/src/guide/components/GuideContent.tsx@@ -102,11 +102,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMorif (!editingDescriptionRef.current) desc.set(result.guide.description ?? '');const newTitle = result.guide.title;const prev = titleRef.current;- if (- prev === i18n.t('fullview.untitledGuide') &&- newTitle !== i18n.t('fullview.untitledGuide') &&- result.steps.length > 0- ) {+ if (prev === i18n.t('guide.untitled') && newTitle !== i18n.t('guide.untitled') && result.steps.length > 0) {setTypingTitle(newTitle);} else {titleRef.current = newTitle;@@ -266,7 +262,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMor</div></div>);- if (!data) return <p className="text-sm py-12 text-center text-purple">{i18n.t('fullview.guideNotFound')}</p>;+ if (!data) return <p className="text-sm py-12 text-center text-purple">{i18n.t('guide.notFound')}</p>;const sidePanelOpen = historyOpen || transcriptOpen;const previewView = preview && previewData?.snapshotId === preview.id ? previewData : null;@@ -276,8 +272,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMorconst domain = getMostCommonDomain(viewSteps);const editingScreenshot = editingStepId ? data.screenshots.get(editingStepId) : undefined;const animatingTitle = preview ? null : typingTitle;- const untitledPending =- !preview && !typingTitle && title === i18n.t('fullview.untitledGuide') && viewSteps.length > 0;+ const untitledPending = !preview && !typingTitle && title === i18n.t('guide.untitled') && viewSteps.length > 0;const metaGenerating = (untitledPending || animatingTitle !== null) && !desc.text;return (@@ -303,7 +298,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMor<div className={untitledPending ? 'min-h-[88px]' : ''}>{untitledPending ? (<div className="text-[32px] font-extrabold leading-tight animate-gradient-text bg-[length:300%_100%] bg-clip-text text-transparent bg-gradient-to-r from-muted-foreground via-violet to-muted-foreground max-w-[480px]">- {i18n.t('fullview.writingTitle')}+ {i18n.t('guide.writingTitle')}</div>) : animatingTitle ? (<div className="relative text-[32px] font-extrabold leading-tight">@@ -365,7 +360,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMor<div className="mt-3">{metaGenerating ? (<div className="max-w-[720px] text-[15px] leading-relaxed animate-gradient-text bg-[length:300%_100%] bg-clip-text text-transparent bg-gradient-to-r from-muted-foreground via-violet to-muted-foreground">- {i18n.t('fullview.writingDescription')}+ {i18n.t('guide.writingDescription')}</div>) : editing ? (<div className="flex items-start gap-2 max-w-[720px]">@@ -439,8 +434,8 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMor</span><span className="inline-flex items-center text-[11px] font-medium text-muted-foreground bg-card border border-border px-2.5 py-0.5 rounded-full">{actionCount !== 1- ? i18n.t('fullview.stepCountPlural', [String(actionCount)])- : i18n.t('fullview.stepCount', [String(actionCount)])}+ ? i18n.t('guide.stepCountPlural', [String(actionCount)])+ : i18n.t('guide.stepCount', [String(actionCount)])}</span>{domain && (<span className="inline-flex items-center gap-1.5 text-[11px] font-medium text-muted-foreground bg-card border border-border pl-1.5 pr-2.5 py-0.5 rounded-full">@@ -454,7 +449,7 @@ export function GuideContent({ guideId, initialStepId, initialTool, onCaptureMorclassName="inline-flex items-center gap-1.5 text-[11px] font-semibold text-primary-foreground bg-primary hover:bg-primary/90 px-3 py-0.5 rounded-full transition-colors ml-auto"><Play size={11} />- {i18n.t('fullview.guideMe')}+ {i18n.t('guide.guideMe')}</button>)}</div>diff --git a/packages/ui/src/library/components/GuideGridView.tsx b/packages/ui/src/library/components/GuideGridView.tsxindex 85ecb53..bccdeb8 100644--- a/packages/ui/src/library/components/GuideGridView.tsx+++ b/packages/ui/src/library/components/GuideGridView.tsx@@ -97,8 +97,8 @@ export function GuideGridView({</div><p className="text-xs text-muted-foreground">{guide.stepIds.length !== 1- ? i18n.t('fullview.stepCountPlural', [String(guide.stepIds.length)])- : i18n.t('fullview.stepCount', [String(guide.stepIds.length)])}{' '}+ ? i18n.t('guide.stepCountPlural', [String(guide.stepIds.length)])+ : i18n.t('guide.stepCount', [String(guide.stepIds.length)])}{' '}· {formatDate(guide.updatedAt)}</p></div>diff --git a/packages/ui/src/library/components/GuideListView.tsx b/packages/ui/src/library/components/GuideListView.tsxindex 9bf7d0a..bea7615 100644--- a/packages/ui/src/library/components/GuideListView.tsx+++ b/packages/ui/src/library/components/GuideListView.tsx@@ -71,8 +71,8 @@ export function GuideListView({)}<span className="shrink-0">{guide.stepIds.length !== 1- ? i18n.t('fullview.stepCountPlural', [String(guide.stepIds.length)])- : i18n.t('fullview.stepCount', [String(guide.stepIds.length)])}{' '}+ ? i18n.t('guide.stepCountPlural', [String(guide.stepIds.length)])+ : i18n.t('guide.stepCount', [String(guide.stepIds.length)])}{' '}· {formatDate(guide.updatedAt)}</span></p>diff --git a/packages/ui/src/library/components/ImportGuideModal.tsx b/packages/ui/src/library/components/ImportGuideModal.tsxindex d46e9da..6897dd0 100644--- a/packages/ui/src/library/components/ImportGuideModal.tsx+++ b/packages/ui/src/library/components/ImportGuideModal.tsx@@ -123,8 +123,8 @@ export function ImportGuideModal({ file, onClose, onImported }: ImportGuideModal<div className="text-[15px] font-semibold text-foreground leading-snug">{manifest.guide.title}</div><div className="text-[12px] text-muted-foreground mt-0.5">{stepCount === 1- ? i18n.t('fullview.stepCount', [String(stepCount)])- : i18n.t('fullview.stepCountPlural', [String(stepCount)])}+ ? i18n.t('guide.stepCount', [String(stepCount)])+ : i18n.t('guide.stepCountPlural', [String(stepCount)])}{manifest.sourceDomain ? ` · ${manifest.sourceDomain}` : ''}</div></div>diff --git a/packages/ui/src/library/components/LibraryContent.tsx b/packages/ui/src/library/components/LibraryContent.tsxindex 5593dd7..a04430e 100644--- a/packages/ui/src/library/components/LibraryContent.tsx+++ b/packages/ui/src/library/components/LibraryContent.tsx@@ -31,7 +31,7 @@ interface LibraryContentProps {category: 'all' | 'starred' | 'trash';}-const emptyConfig: Record<string, { titleKey: string; subKey: string }> = {+const emptyConfig: Record<LibraryContentProps['category'], { titleKey: string; subKey: string }> = {all: { titleKey: 'library.noGuidesTitle', subKey: 'library.noGuidesSub' },starred: { titleKey: 'library.noStarredTitle', subKey: 'library.noStarredSub' },trash: { titleKey: 'library.trashEmptyTitle', subKey: 'library.trashEmptySub' },@@ -263,7 +263,7 @@ export function LibraryContent({ category }: LibraryContentProps) {<ChevronLeft size={15} /></button><span className="text-xs font-medium text-muted-foreground">- {i18n.t('fullview.pageOf', [String(page + 1), String(totalPages)])}+ {i18n.t('guide.pageOf', [String(page + 1), String(totalPages)])}</span><buttononClick={() => applyPage(page + 1)}diff --git a/packages/ui/src/navigation/components/Sidebar.tsx b/packages/ui/src/navigation/components/Sidebar.tsxindex 6a4a01c..8d9b0cd 100644--- a/packages/ui/src/navigation/components/Sidebar.tsx+++ b/packages/ui/src/navigation/components/Sidebar.tsx@@ -16,9 +16,9 @@ interface SidebarProps {}const navItems = [- { key: 'all' as const, labelKey: 'fullview.allGuides' as const, icon: FileText },- { key: 'starred' as const, labelKey: 'fullview.starred' as const, icon: Star },- { key: 'trash' as const, labelKey: 'fullview.trash' as const, icon: Trash2 },+ { key: 'all' as const, labelKey: 'library.allGuides' as const, icon: FileText },+ { key: 'starred' as const, labelKey: 'library.starred' as const, icon: Star },+ { key: 'trash' as const, labelKey: 'library.trash' as const, icon: Trash2 },];export function Sidebar({@@ -32,7 +32,7 @@ export function Sidebar({}: SidebarProps) {const counts = useFullview((s) => s.counts);const row = collapsed ? 'justify-center w-9 mx-auto' : 'gap-2.5 px-2.5';- const toggleLabel = i18n.t(collapsed ? 'fullview.expandSidebar' : 'fullview.collapseSidebar');+ const toggleLabel = i18n.t(collapsed ? 'library.expandSidebar' : 'library.collapseSidebar');const startLabel = i18n.t('capture.startCapture');const settingsLabel = i18n.t('settings.title');diff --git a/packages/ui/src/navigation/components/TopBar.tsx b/packages/ui/src/navigation/components/TopBar.tsxindex b87d35b..2fde2df 100644--- a/packages/ui/src/navigation/components/TopBar.tsx+++ b/packages/ui/src/navigation/components/TopBar.tsx@@ -111,13 +111,13 @@ export function TopBar({ route, guideActions }: TopBarProps) {<Buttonsize="sm"variant="ghost"- aria-label={i18n.t('fullview.searchPlaceholder')}+ aria-label={i18n.t('library.searchPlaceholder')}onClick={() => setSearchOpen(true)}className={`${barWidth < COMPACT_SEARCH_PX ? 'w-auto' : 'w-72'} justify-start ${NAV_CONTROL}`}><Search size={14} className="shrink-0 text-muted-foreground" />{barWidth >= COMPACT_SEARCH_PX && (- <span className="flex-1 text-left text-muted-foreground">{i18n.t('fullview.searchPlaceholder')}</span>+ <span className="flex-1 text-left text-muted-foreground">{i18n.t('library.searchPlaceholder')}</span>)}<span className="text-[10px] font-semibold px-1.5 py-0.5 rounded-md bg-secondary text-muted-foreground">{SEARCH_KEY}diff --git a/packages/ui/src/search/components/SearchModal.tsx b/packages/ui/src/search/components/SearchModal.tsxindex 7d28772..848237c 100644--- a/packages/ui/src/search/components/SearchModal.tsx+++ b/packages/ui/src/search/components/SearchModal.tsx@@ -113,7 +113,7 @@ export function SearchModal() {><divrole="dialog"- aria-label={i18n.t('fullview.searchPlaceholder')}+ aria-label={i18n.t('library.searchPlaceholder')}className="w-full max-w-[620px] overflow-hidden rounded-2xl border border-border bg-card shadow-[0_30px_80px_rgba(30,27,75,0.3)]"onClick={(e) => e.stopPropagation()}onKeyDown={handleKeyDown}@@ -122,7 +122,7 @@ export function SearchModal() {<Search size={19} className="shrink-0 text-foreground" /><Inputref={inputRef}- placeholder={i18n.t('fullview.searchPlaceholder')}+ placeholder={i18n.t('library.searchPlaceholder')}value={query}onChange={(e) => {setQuery(e.target.value);diff --git a/packages/ui/src/search/components/SearchResults.tsx b/packages/ui/src/search/components/SearchResults.tsxindex 9b05942..6b3d3e6 100644--- a/packages/ui/src/search/components/SearchResults.tsx+++ b/packages/ui/src/search/components/SearchResults.tsx@@ -51,7 +51,7 @@ export function SearchResults({ guides, thumbnails, places, query, selected, onS</div><div className="flex min-w-0 flex-1 flex-col gap-0.5"><p className="truncate text-[13.5px] font-semibold text-foreground">- <MatchText text={guide.title || i18n.t('fullview.untitledGuide')} query={query} />+ <MatchText text={guide.title || i18n.t('guide.untitled')} query={query} /></p><p className="flex min-w-0 items-center gap-1.5 text-[11.5px] text-muted-foreground">{place && (@@ -62,9 +62,7 @@ export function SearchResults({ guides, thumbnails, places, query, selected, onS</>)}<span className="shrink-0">- {steps === 1- ? i18n.t('fullview.stepCount', ['1'])- : i18n.t('fullview.stepCountPlural', [String(steps)])}{' '}+ {steps === 1 ? i18n.t('guide.stepCount', ['1']) : i18n.t('guide.stepCountPlural', [String(steps)])}{' '}· {formatDateShort(guide.updatedAt)}</span></p>diff --git a/src/entrypoints/background/__tests__/guide-meta.test.ts b/src/entrypoints/background/__tests__/guide-meta.test.tsindex a895e58..ffb8121 100644--- a/src/entrypoints/background/__tests__/guide-meta.test.ts+++ b/src/entrypoints/background/__tests__/guide-meta.test.ts@@ -70,7 +70,7 @@ describe('background guide-meta', () => {await generateGuideMetaOnStop(GUIDE_ID);expect(generateGuideMetaMock).not.toHaveBeenCalled();- expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'background.guideOnDomain[example.com]');+ expect(updateGuideTitleMock).toHaveBeenCalledWith(GUIDE_ID, 'guide.onDomain[example.com]');});it('waits for narration before generating a title when a key is set', async () => {diff --git a/src/entrypoints/background/guide-meta.ts b/src/entrypoints/background/guide-meta.tsindex 434423f..da736ec 100644--- a/src/entrypoints/background/guide-meta.ts+++ b/src/entrypoints/background/guide-meta.ts@@ -5,7 +5,7 @@ import { whenNarrationSettled } from './voice';async function domainTitle(guideId: string): Promise<string> {const domain = await getGuideDomain(guideId);- return domain ? i18n.t('background.guideOnDomain', [domain]) : i18n.t('background.newGuide');+ return domain ? i18n.t('guide.onDomain', [domain]) : i18n.t('guide.newGuide');}export function generateGuideMetaOnStop(guideId: string) {diff --git a/src/locales/__tests__/read-locale.ts b/src/locales/__tests__/read-locale.tsindex e65c555..102dbcb 100644--- a/src/locales/__tests__/read-locale.ts+++ b/src/locales/__tests__/read-locale.ts@@ -23,7 +23,7 @@ export function localeKeys(locale: string): string[] {for (const line of lines(locale)) {const top = /^([\w-]+):/.exec(line);if (top) {- section = top[1];+ section = top[1]!;continue;}@@ -40,11 +40,11 @@ function localeMessage(locale: string, path: string): string {for (const line of lines(locale)) {const top = /^([\w-]+):/.exec(line);- if (top) section = top[1];+ if (top) section = top[1]!;if (section !== wanted) continue;const match = new RegExp(`^ {2}${key}: (.*)$`).exec(line);- if (match) return unquote(match[1]);+ if (match) return unquote(match[1]!);}throw new Error(`${path} missing from ${locale}.yml`);diff --git a/src/locales/de.yml b/src/locales/de.ymlindex dc6f4a4..a1fff87 100644--- a/src/locales/de.yml+++ b/src/locales/de.yml@@ -48,6 +48,12 @@ library:duplicate: DuplizierencopyOfTitle: "Kopie von $1"duplicateFailed: Diese Anleitung konnte nicht dupliziert werden+ collapseSidebar: Seitenleiste einklappen+ expandSidebar: Seitenleiste ausklappen+ allGuides: Alle Anleitungen+ starred: Favoriten+ trash: Papierkorb+ searchPlaceholder: Anleitungen durchsuchen…guideme:manualStep: "Bearbeitete Schritte werden nicht erkannt. Klicke auf Weiter, wenn du fertig bist."@@ -280,21 +286,17 @@ desktop:shortcutPress: "Tasten drücken…"shortcutClear: "Löschen"-fullview:- collapseSidebar: Seitenleiste einklappen- expandSidebar: Seitenleiste ausklappen- allGuides: Alle Anleitungen- starred: Favoriten- trash: Papierkorb- searchPlaceholder: Anleitungen durchsuchen…+guide:guideMe: "Anleiten"- untitledGuide: Unbenannte Anleitung+ untitled: Unbenannte AnleitungwritingTitle: Titel wird aus deinen aufgenommenen Schritten erstellt...- guideNotFound: "Anleitung nicht gefunden."+ notFound: "Anleitung nicht gefunden."stepCount: "$1 Schritt"stepCountPlural: "$1 Schritte"pageOf: "$1 / $2"writingDescription: "Beschreibung wird geschrieben…"+ onDomain: "Anleitung auf $1"+ newGuide: Neue Anleitungsort:recentFirst: Neueste zuerst@@ -420,11 +422,11 @@ emptyGuide:title: Diese Anleitung ist leersubtitle: "Nimm Schritte auf, um sie zu füllen"-blurPanel:title: Smart BlurmanualMode: Manueller ModusselectElements: "Elemente zum Unkenntlichmachen auswählen"+ clickToBlur: "Zum Verwischen klicken"done: FertigdoneResume: "Fertig \xB7 Aufnahme fortsetzen"resetAll: Alles zurücksetzen@@ -600,10 +602,6 @@ export:createdLabel: "Erstellt am $1"sourceLabel: "Quelle: $1"-background:- guideOnDomain: "Anleitung auf $1"- newGuide: Neue Anleitung-annotationEditor:title: "Screenshot bearbeiten"toolBox: "Rechteck"diff --git a/src/locales/en.yml b/src/locales/en.ymlindex 3bc8658..5c1c547 100644--- a/src/locales/en.yml+++ b/src/locales/en.yml@@ -48,6 +48,12 @@ library:duplicate: DuplicatecopyOfTitle: "Copy of $1"duplicateFailed: Couldn't duplicate this guide+ collapseSidebar: Collapse sidebar+ expandSidebar: Expand sidebar+ allGuides: "All guides"+ starred: Starred+ trash: Trash+ searchPlaceholder: Search guides…guideme:live: Live@@ -280,21 +286,17 @@ desktop:shortcutPress: "Press keys…"shortcutClear: "Clear"-fullview:- collapseSidebar: Collapse sidebar- expandSidebar: Expand sidebar- allGuides: "All guides"- starred: Starred- trash: Trash- searchPlaceholder: Search guides…+guide:guideMe: "Guide Me"- untitledGuide: "Untitled guide"+ untitled: "Untitled guide"writingTitle: Writing a title from your captured steps...writingDescription: "Writing a description\u2026"- guideNotFound: "Guide not found"+ notFound: "Guide not found"stepCount: "$1 step"stepCountPlural: "$1 steps"pageOf: "$1 / $2"+ onDomain: "Guide on $1"+ newGuide: "New guide"sort:recentFirst: Recent first@@ -424,6 +426,7 @@ blurPanel:title: "Smart blur"manualMode: "Manual mode"selectElements: Select elements to blur+ clickToBlur: "Click to blur"done: DonedoneResume: "Done · Resume recording"resetAll: "Reset all"@@ -669,10 +672,6 @@ export:createdLabel: "Created $1"sourceLabel: "Source: $1"-background:- guideOnDomain: "Guide on $1"- newGuide: "New guide"-voice:turnOn: Turn on voice narrationturnOff: Turn off voice narrationdiff --git a/src/locales/es.yml b/src/locales/es.ymlindex 371951b..3d427fc 100644--- a/src/locales/es.yml+++ b/src/locales/es.yml@@ -48,6 +48,12 @@ library:duplicate: DuplicarcopyOfTitle: "Copia de $1"duplicateFailed: No se pudo duplicar esta guía+ collapseSidebar: Contraer la barra lateral+ expandSidebar: Expandir la barra lateral+ allGuides: Todas las guías+ starred: Favoritos+ trash: Papelera+ searchPlaceholder: Buscar guías…guideme:live: En vivo@@ -280,21 +286,17 @@ desktop:shortcutPress: "Pulsa las teclas…"shortcutClear: "Borrar"-fullview:- collapseSidebar: Contraer la barra lateral- expandSidebar: Expandir la barra lateral- allGuides: Todas las guías- starred: Favoritos- trash: Papelera- searchPlaceholder: Buscar guías…+guide:guideMe: "Guíame"- untitledGuide: Guía sin título+ untitled: Guía sin títulowritingTitle: Escribiendo un título con tus pasos capturados...writingDescription: "Escribiendo una descripci\xF3n\u2026"- guideNotFound: "No se encontró la guía."+ notFound: "No se encontró la guía."stepCount: "$1 paso"stepCountPlural: "$1 pasos"pageOf: "$1 / $2"+ onDomain: "Guía en $1"+ newGuide: Nueva guíasort:recentFirst: Más recientes@@ -424,6 +426,7 @@ blurPanel:title: Desenfoque inteligentemanualMode: Modo manualselectElements: Selecciona elementos para desenfocar+ clickToBlur: "Haz clic para difuminar"done: ListodoneResume: "Listo · Reanudar grabación"resetAll: Restablecer todo@@ -669,10 +672,6 @@ export:createdLabel: "Creado $1"sourceLabel: "Fuente: $1"-background:- guideOnDomain: "Guía en $1"- newGuide: Nueva guía-voice:turnOn: "Activar narración por voz"turnOff: "Desactivar narración por voz"diff --git a/src/locales/fr.yml b/src/locales/fr.ymlindex 25a5237..9cbe44d 100644--- a/src/locales/fr.yml+++ b/src/locales/fr.yml@@ -48,6 +48,12 @@ library:duplicate: DupliquercopyOfTitle: "Copie de $1"duplicateFailed: Impossible de dupliquer ce guide+ collapseSidebar: Réduire la barre latérale+ expandSidebar: Développer la barre latérale+ allGuides: Tous les guides+ starred: Favoris+ trash: Corbeille+ searchPlaceholder: "Rechercher des guides…"guideme:live: En direct@@ -280,21 +286,17 @@ desktop:shortcutPress: "Appuyez sur les touches…"shortcutClear: "Effacer"-fullview:- collapseSidebar: Réduire la barre latérale- expandSidebar: Développer la barre latérale- allGuides: Tous les guides- starred: Favoris- trash: Corbeille- searchPlaceholder: "Rechercher des guides…"+guide:guideMe: "Guidez-moi"- untitledGuide: Guide sans titre+ untitled: Guide sans titrewritingTitle: "Rédaction du titre à partir de vos étapes..."writingDescription: "R\xE9daction d\u2019une description\u2026"- guideNotFound: Guide introuvable.+ notFound: Guide introuvable.stepCount: "$1 étape"stepCountPlural: "$1 étapes"pageOf: "$1 / $2"+ onDomain: "Guide sur $1"+ newGuide: Nouveau guidesort:recentFirst: "Plus récents"@@ -424,6 +426,7 @@ blurPanel:title: Flou intelligentmanualMode: Mode manuelselectElements: "Sélectionnez les éléments à flouter"+ clickToBlur: "Cliquer pour flouter"done: TerminédoneResume: "Terminé \xB7 Reprendre l'enregistrement"resetAll: Tout réinitialiser@@ -669,10 +672,6 @@ export:createdLabel: "Créé le $1"sourceLabel: "Source : $1"-background:- guideOnDomain: "Guide sur $1"- newGuide: Nouveau guide-voice:turnOn: "Activer la narration vocale"turnOff: "Désactiver la narration vocale"diff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.ymlindex 4457dc1..7c049a7 100644--- a/src/locales/pt-BR.yml+++ b/src/locales/pt-BR.yml@@ -48,6 +48,12 @@ library:duplicate: DuplicarcopyOfTitle: "Cópia de $1"duplicateFailed: Não foi possível duplicar este guia+ collapseSidebar: Recolher a barra lateral+ expandSidebar: Expandir a barra lateral+ allGuides: Todos os guias+ starred: Favoritos+ trash: Lixeira+ searchPlaceholder: Buscar guias…guideme:live: Ao vivo@@ -280,21 +286,17 @@ desktop:shortcutPress: "Pressione as teclas…"shortcutClear: "Limpar"-fullview:- collapseSidebar: Recolher a barra lateral- expandSidebar: Expandir a barra lateral- allGuides: Todos os guias- starred: Favoritos- trash: Lixeira- searchPlaceholder: Buscar guias…+guide:guideMe: "Me guie"- untitledGuide: Guia sem título+ untitled: Guia sem títulowritingTitle: Escrevendo um título com os passos capturados...writingDescription: "Escrevendo uma descri\xE7\xE3o\u2026"- guideNotFound: "Guia não encontrado."+ notFound: "Guia não encontrado."stepCount: "$1 passo"stepCountPlural: "$1 passos"pageOf: "$1 / $2"+ onDomain: "Guia em $1"+ newGuide: Novo guiasort:recentFirst: Mais recentes@@ -424,6 +426,7 @@ blurPanel:title: Desfoque inteligentemanualMode: Modo manualselectElements: "Selecione elementos para desfocar"+ clickToBlur: "Clique para desfocar"done: ProntodoneResume: "Pronto \xB7 Continuar gravação"resetAll: Limpar tudo@@ -669,10 +672,6 @@ export:createdLabel: "Criado em $1"sourceLabel: "Origem: $1"-background:- guideOnDomain: "Guia em $1"- newGuide: Novo guia-voice:turnOn: "Ligar narração por voz"turnOff: "Desligar narração por voz"diff --git a/src/locales/ru.yml b/src/locales/ru.ymlindex f4dceb5..949a24a 100644--- a/src/locales/ru.yml+++ b/src/locales/ru.yml@@ -48,6 +48,12 @@ library:duplicate: ДублироватьcopyOfTitle: "Копия: $1"duplicateFailed: Не удалось дублировать гайд+ collapseSidebar: Свернуть боковую панель+ expandSidebar: Развернуть боковую панель+ allGuides: Все гайды+ starred: Избранное+ trash: Корзина+ searchPlaceholder: Поиск гайдов...guideme:live: Live@@ -280,21 +286,17 @@ desktop:shortcutPress: Нажмите клавиши…shortcutClear: Очистить-fullview:- collapseSidebar: Свернуть боковую панель- expandSidebar: Развернуть боковую панель- allGuides: Все гайды- starred: Избранное- trash: Корзина- searchPlaceholder: Поиск гайдов...+guide:guideMe: "Покажи, как"- untitledGuide: Гайд без названия+ untitled: Гайд без названияwritingTitle: Придумываю название по вашим записанным шагам...writingDescription: Пишу описание…- guideNotFound: Гайд не найден.+ notFound: Гайд не найден.stepCount: $1 шагstepCountPlural: $1 шаговpageOf: $1 / $2+ onDomain: Гайд на $1+ newGuide: Новый гайдsort:recentFirst: Сначала новые@@ -424,6 +426,7 @@ blurPanel:title: Умное размытиеmanualMode: Ручной режимselectElements: Выберите элементы для размытия+ clickToBlur: "Нажмите, чтобы размыть"done: ГотовоdoneResume: Готово · Продолжить записьresetAll: Сбросить всё@@ -669,10 +672,6 @@ export:createdLabel: "Создан: $1"sourceLabel: "Источник: $1"-background:- guideOnDomain: Гайд на $1- newGuide: Новый гайд-voice:turnOn: Включить озвучкуturnOff: Выключить озвучкуdiff --git a/src/locales/zh-CN.yml b/src/locales/zh-CN.ymlindex 1c52d3f..ec87e12 100644--- a/src/locales/zh-CN.yml+++ b/src/locales/zh-CN.yml@@ -48,6 +48,12 @@ library:duplicate: 创建副本copyOfTitle: "$1 的副本"duplicateFailed: "无法创建此指南的副本"+ collapseSidebar: 收起侧边栏+ expandSidebar: 展开侧边栏+ allGuides: 全部指南+ starred: 已收藏+ trash: 回收站+ searchPlaceholder: 搜索指南…guideme:live: 实时@@ -280,21 +286,17 @@ desktop:shortcutPress: "请按下按键…"shortcutClear: "清除"-fullview:- collapseSidebar: 收起侧边栏- expandSidebar: 展开侧边栏- allGuides: 全部指南- starred: 已收藏- trash: 回收站- searchPlaceholder: 搜索指南…+guide:guideMe: "引导我"- untitledGuide: 未命名指南+ untitled: 未命名指南writingTitle: 正在根据捕获的步骤生成标题...writingDescription: "正在生成描述…"- guideNotFound: "未找到指南。"+ notFound: "未找到指南。"stepCount: "$1 个步骤"stepCountPlural: "$1 个步骤"pageOf: "$1 / $2"+ onDomain: "$1 上的指南"+ newGuide: 新指南sort:recentFirst: 最近优先@@ -424,6 +426,7 @@ blurPanel:title: 智能模糊manualMode: 手动模式selectElements: 选择要模糊的元素+ clickToBlur: "点击以模糊"done: 完成doneResume: "完成 · 继续录制"resetAll: 全部重置@@ -669,10 +672,6 @@ export:createdLabel: "创建于 $1"sourceLabel: "来源:$1"-background:- guideOnDomain: "$1 上的指南"- newGuide: 新指南-voice:turnOn: 开启语音讲解turnOff: 关闭语音讲解diff --git a/src/ui/sidepanel/GuideEditor.tsx b/src/ui/sidepanel/GuideEditor.tsxindex 0e7fda6..6b0cf32 100644--- a/src/ui/sidepanel/GuideEditor.tsx+++ b/src/ui/sidepanel/GuideEditor.tsx@@ -65,10 +65,10 @@ export function GuideEditor({ guideId, onBack, onGuideMe }: GuideEditorProps) {if (options?.stepId) params.set('stepId', options.stepId);if (options?.tool) params.set('tool', options.tool);const url = getExtensionURL(`/fullview.html?${params.toString()}`);- queryTabs({ url: getExtensionURL('/fullview.html') }).then((tabs) => {- if (tabs.length > 0 && tabs[0].id) {- updateTab(tabs[0].id, { active: true, url });- if (tabs[0].windowId) focusWindow(tabs[0].windowId);+ queryTabs({ url: getExtensionURL('/fullview.html') }).then(([tab]) => {+ if (tab?.id) {+ updateTab(tab.id, { active: true, url });+ if (tab.windowId) focusWindow(tab.windowId);} else {createTab({ url });}@@ -84,7 +84,7 @@ export function GuideEditor({ guideId, onBack, onGuideMe }: GuideEditorProps) {<ArrowLeft size={18} />{i18n.t('common.back')}</button>- <p className="text-sm text-destructive">{i18n.t('fullview.guideNotFound')}</p>+ <p className="text-sm text-destructive">{i18n.t('guide.notFound')}</p></div>);}@@ -116,8 +116,8 @@ export function GuideEditor({ guideId, onBack, onGuideMe }: GuideEditorProps) {<div className="flex items-center gap-1.5 text-[10px] text-muted-foreground leading-tight"><span>{actionCount !== 1- ? i18n.t('fullview.stepCountPlural', [String(actionCount)])- : i18n.t('fullview.stepCount', [String(actionCount)])}+ ? i18n.t('guide.stepCountPlural', [String(actionCount)])+ : i18n.t('guide.stepCount', [String(actionCount)])}</span>{domain && (<>diff --git a/src/ui/sidepanel/LibraryView.tsx b/src/ui/sidepanel/LibraryView.tsxindex 0fdb78d..831a8d1 100644--- a/src/ui/sidepanel/LibraryView.tsx+++ b/src/ui/sidepanel/LibraryView.tsx@@ -174,8 +174,8 @@ export function LibraryView({ onOpen, searchQuery = '' }: LibraryViewProps) {{guide.stepIds.length > 0 && (<span className="text-[9px] font-semibold text-muted-foreground bg-secondary px-2 py-0.5 rounded-full leading-none">{guide.stepIds.length !== 1- ? i18n.t('fullview.stepCountPlural', [String(guide.stepIds.length)])- : i18n.t('fullview.stepCount', [String(guide.stepIds.length)])}+ ? i18n.t('guide.stepCountPlural', [String(guide.stepIds.length)])+ : i18n.t('guide.stepCount', [String(guide.stepIds.length)])}</span>)}</div>