🎬 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
fix(desktop): translate the recording card and give its buttons the extension's words
Luis Ortizfed5ddfd056f
diff --git a/apps/desktop/scripts/check-overlay.ts b/apps/desktop/scripts/check-overlay.tsindex 4d5e701..2aeae5d 100644--- a/apps/desktop/scripts/check-overlay.ts+++ b/apps/desktop/scripts/check-overlay.ts@@ -391,7 +391,7 @@ app.whenReady().then(async () => {);check('Finish leads the footer, with the mic and Pause after it',- /^\["primary:Finish","mic:","secondary:"\]$/.test(String(order)),+ /^\["primary:Finish recording","mic:","secondary:"\]$/.test(String(order)),String(order),);check(diff --git a/apps/desktop/src/renderer/overlay/controls.ts b/apps/desktop/src/renderer/overlay/controls.tsindex 0e1d346..d3a06c7 100644--- a/apps/desktop/src/renderer/overlay/controls.ts+++ b/apps/desktop/src/renderer/overlay/controls.ts@@ -26,10 +26,10 @@ export function controls(): void {let collapsed = false;const dot = el('span', { id: 'dot' });- const label = el('span', { id: 'label' }, 'Ready');+ const label = el('span', { id: 'label' }, i18n.t('desktop.armed'));const counter = el('span', { id: 'counter' });const badge = el('span', { id: 'badge' });- const collapse = el('button', { id: 'collapse', type: 'button', title: 'Collapse' });+ const collapse = el('button', { id: 'collapse', type: 'button', title: i18n.t('desktop.collapse') });collapse.append(icon('chevronDown'));const head = el('div', { id: 'head' }, dot, label, counter, badge, collapse);@@ -47,13 +47,14 @@ export function controls(): void {const stepMeta = el('div', { id: 'stepMeta' }, source, metaText);const tip = el('p', { id: 'tip' });+ const hintBefore = el('span', {});const hintKey = el('kbd', { id: 'hintKey' });const hintText = el('span', {});const hint = el('div',{ id: 'keyHint' },icon('keyboard', 14),- el('p', {}, el('strong', {}, 'Tip:'), ' you can press ', hintKey, hintText),+ el('p', {}, el('strong', {}, i18n.t('desktop.tipLabel')), ' ', hintBefore, hintKey, hintText),);const intro = el('div', { id: 'intro' }, el('div', { id: 'mascot' }, cameraMascot(56)), tip);const filmShot = el('img', { alt: '' });@@ -204,12 +205,12 @@ export function controls(): void {const count = capturing ? printingNumber - 1 : (step?.number ?? 0);const counted = [String(count)];label.textContent = starting- ? 'Starting…'+ ? i18n.t('desktop.starting'): recording? i18n.t(count === 1 ? 'recording.recording' : 'recording.recordingPlural', counted): paused? i18n.t('recording.capturePaused')- : i18n.t('desktop.ready');+ : i18n.t('desktop.armed');counter.textContent = i18n.t(count === 1 ? 'fullview.stepCount' : 'fullview.stepCountPlural', counted);counter.hidden = !paused;@@ -240,7 +241,7 @@ export function controls(): void {shownChevron = chevron;collapse.replaceChildren(icon(collapsed ? 'chevronUp' : 'chevronDown'));}- collapse.title = collapsed ? 'Expand' : 'Collapse';+ collapse.title = i18n.t(collapsed ? 'desktop.expand' : 'desktop.collapse');if (step && !capturing && shot.getAttribute('src') !== step.src) shot.src = step.src;stage.hidden = armed || !(capturing || step);@@ -256,7 +257,7 @@ export function controls(): void {aim.style.left = `${(width - shownWidth) / 2 + aimed.x * shownWidth}px`;aim.style.top = `${(height - shownHeight) / 2 + aimed.y * shownHeight}px`;}- printing.textContent = `Capturing step ${printingNumber}`;+ printing.textContent = i18n.t('desktop.capturingStep', [String(printingNumber)]);shot.hidden = !step?.src;veil.hidden = !paused || capturing;remove.hidden = !step || capturing || armed;@@ -277,10 +278,10 @@ export function controls(): void {intro.hidden = !(armed || waiting || resting);tip.textContent = armed- ? 'Each click is saved as a step.'+ ? i18n.t('desktop.tipArmed'): resting- ? 'Nothing is recorded while paused.'- : 'Your first click will show up here.';+ ? i18n.t('desktop.tipPaused')+ : i18n.t('desktop.tipWaiting');const key = armed ? shortcuts.startStop : shortcuts.capture;hint.hidden = intro.hidden || resting || !key || Boolean(narration);voice.hidden = collapsed || !narration;@@ -297,7 +298,9 @@ export function controls(): void {bar.style.transform = `scaleY(${scale})`;});hintKey.textContent = key ?? '';- hintText.textContent = armed ? ' to start and stop.' : ' to capture without clicking.';+ const [before, after] = i18n.t(armed ? 'desktop.hintStartStop' : 'desktop.hintCapture', ['\u0000']).split('\u0000');+ hintBefore.textContent = before ?? '';+ hintText.textContent = after ?? '';body.hidden = collapsed;modes.hidden = collapsed || !paused;@@ -305,12 +308,14 @@ export function controls(): void {if (state !== shownIcon) {shownIcon = state;- const secondaryLabel = i18n.t(armed ? 'common.close' : recording ? 'desktop.pause' : 'desktop.resume');+ const secondaryLabel = i18n.t(+ armed ? 'common.close' : recording ? 'recording.pauseCapture' : 'recording.resumeCapture',+ );secondary.replaceChildren(icon(armed ? 'close' : recording ? 'pause' : 'play', 16));secondary.title = secondaryLabel;secondary.setAttribute('aria-label', secondaryLabel);primary.replaceChildren(icon(armed ? 'video' : 'check'));- primary.append(i18n.t(armed ? 'desktop.startButton' : 'desktop.finish'));+ primary.append(i18n.t(armed ? 'desktop.startButton' : 'recording.finishRecording'));}secondary.dataset.command = armed ? 'disarm' : recording ? 'pause' : 'resume';primary.dataset.command = armed ? 'start' : 'stop';diff --git a/packages/ui/src/navigation/components/Sidebar.tsx b/packages/ui/src/navigation/components/Sidebar.tsxindex a39971c..6a4a01c 100644--- a/packages/ui/src/navigation/components/Sidebar.tsx+++ b/packages/ui/src/navigation/components/Sidebar.tsx@@ -33,7 +33,7 @@ export function Sidebar({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 startLabel = i18n.t('sidepanel.startCapture');+ const startLabel = i18n.t('capture.startCapture');const settingsLabel = i18n.t('settings.title');return (diff --git a/src/locales/de.yml b/src/locales/de.ymlindex caeda11..850fce9 100644--- a/src/locales/de.yml+++ b/src/locales/de.yml@@ -28,7 +28,6 @@ sidepanel:connecting: Wird verbunden…heroTitle: Was möchtest du aufnehmen?heroSubtitle: Nimm jeden Workflow automatisch auf- startCapture: Aufnahme startensearchPlaceholder: Anleitungen durchsuchen…recentLabel: Zuletzt verwendetnotRecordable: "Öffne eine Website, um mit der Aufnahme zu beginnen"@@ -190,13 +189,20 @@ blurPresets:macAddress: MAC-Adressedesktop:+ collapse: "Einklappen"+ expand: "Ausklappen"+ starting: "Wird gestartet…"+ capturingStep: "Schritt $1 wird aufgenommen"+ tipArmed: "Jeder Klick wird als Schritt gespeichert."+ tipPaused: "Während der Pause wird nichts aufgenommen."+ tipWaiting: "Dein erster Klick erscheint hier."+ tipLabel: "Tipp:"+ hintStartStop: "mit $1 startest und beendest du die Aufnahme."+ hintCapture: "mit $1 nimmst du einen Schritt ohne Klick auf."micAccessAsk: "macOS fragt einmal, bevor Mimik dich hören kann."micAccessRefused: "Abgelehnt. Aktiviere Mimik unter Datenschutz & Sicherheit."micAccessOpen: "Einstellungen öffnen"- ready: "Bereit"- pause: "Pausieren"- resume: "Fortsetzen"- finish: "Beenden"+ armed: "Bereit"screenshotDelay: "Screenshot-Verzögerung"keepClicksBeyondArea: "Klicks außerhalb des Bereichs aufnehmen"keepClicksBeyondAreaHint: "Im Bereichsmodus werden Klicks außerhalb trotzdem zu Schritten, gezeigt im Bereich."diff --git a/src/locales/en.yml b/src/locales/en.ymlindex 6331726..85d7814 100644--- a/src/locales/en.yml+++ b/src/locales/en.yml@@ -28,7 +28,6 @@ sidepanel:connecting: Connecting…heroTitle: What would you like to capture?heroSubtitle: Record any workflow automatically- startCapture: "Start capture"searchPlaceholder: Search guides…recentLabel: RecentnotRecordable: Open a website to start capturing@@ -190,13 +189,20 @@ blurPresets:macAddress: "MAC address"desktop:+ collapse: "Collapse"+ expand: "Expand"+ starting: "Starting…"+ capturingStep: "Capturing step $1"+ tipArmed: "Each click is saved as a step."+ tipPaused: "Nothing is recorded while paused."+ tipWaiting: "Your first click will show up here."+ tipLabel: "Tip:"+ hintStartStop: "you can press $1 to start and stop."+ hintCapture: "you can press $1 to capture without clicking."micAccessAsk: "macOS asks once before Mimik can hear you."micAccessRefused: "Refused. Turn on Mimik in Privacy & Security."micAccessOpen: "Open settings"- ready: Ready- pause: Pause- resume: Resume- finish: Finish+ armed: ReadyscreenshotDelay: Screenshot delaykeepClicksBeyondArea: Capture clicks outside the areakeepClicksBeyondAreaHint: "In Area mode, clicks outside the area still become steps, framed by the area."diff --git a/src/locales/es.yml b/src/locales/es.ymlindex 0557694..361094e 100644--- a/src/locales/es.yml+++ b/src/locales/es.yml@@ -28,7 +28,6 @@ sidepanel:connecting: Conectando…heroTitle: "¿Qué quieres capturar?"heroSubtitle: "Graba cualquier flujo de trabajo automáticamente"- startCapture: Empezar a capturarsearchPlaceholder: Buscar guías…recentLabel: RecientesnotRecordable: Abre un sitio web para empezar a grabar@@ -190,13 +189,20 @@ blurPresets:macAddress: "Dirección MAC"desktop:+ collapse: "Contraer"+ expand: "Expandir"+ starting: "Iniciando…"+ capturingStep: "Capturando el paso $1"+ tipArmed: "Cada clic se guarda como un paso."+ tipPaused: "No se graba nada mientras está en pausa."+ tipWaiting: "Tu primer clic aparecerá aquí."+ tipLabel: "Consejo:"+ hintStartStop: "pulsa $1 para iniciar y detener."+ hintCapture: "pulsa $1 para capturar sin hacer clic."micAccessAsk: "macOS pregunta una vez antes de que Mimik pueda oírte."micAccessRefused: "Denegado. Activa Mimik en Privacidad y seguridad."micAccessOpen: "Abrir ajustes"- ready: "Listo"- pause: "Pausar"- resume: "Reanudar"- finish: "Finalizar"+ armed: "Listo"screenshotDelay: "Retraso de la captura"keepClicksBeyondArea: "Capturar clics fuera del área"keepClicksBeyondAreaHint: "En modo Área, los clics fuera del área también se vuelven pasos, encuadrados en el área."diff --git a/src/locales/fr.yml b/src/locales/fr.ymlindex 6ffc3cd..ce150ae 100644--- a/src/locales/fr.yml+++ b/src/locales/fr.yml@@ -28,7 +28,6 @@ sidepanel:connecting: "Connexion…"heroTitle: "Que voulez-vous capturer ?"heroSubtitle: "Enregistrez automatiquement n'importe quel parcours"- startCapture: Lancer la capturesearchPlaceholder: "Rechercher des guides…"recentLabel: "Récents"notRecordable: "Ouvrez un site web pour lancer la capture"@@ -190,13 +189,20 @@ blurPresets:macAddress: Adresse MACdesktop:+ collapse: "Réduire"+ expand: "Développer"+ starting: "Démarrage…"+ capturingStep: "Capture de l’étape $1"+ tipArmed: "Chaque clic est enregistré comme une étape."+ tipPaused: "Rien n’est enregistré pendant la pause."+ tipWaiting: "Votre premier clic apparaîtra ici."+ tipLabel: "Astuce :"+ hintStartStop: "appuyez sur $1 pour démarrer et arrêter."+ hintCapture: "appuyez sur $1 pour capturer sans cliquer."micAccessAsk: "macOS demande une fois avant que Mimik puisse vous entendre."micAccessRefused: "Refusé. Activez Mimik dans Confidentialité et sécurité."micAccessOpen: "Ouvrir les réglages"- ready: "Prêt"- pause: "Pause"- resume: "Reprendre"- finish: "Terminer"+ armed: "Prêt"screenshotDelay: "Délai de capture"keepClicksBeyondArea: "Capturer les clics hors de la zone"keepClicksBeyondAreaHint: "En mode Zone, les clics hors de la zone deviennent aussi des étapes, cadrées sur la zone."diff --git a/src/locales/pt-BR.yml b/src/locales/pt-BR.ymlindex c203038..ee3d883 100644--- a/src/locales/pt-BR.yml+++ b/src/locales/pt-BR.yml@@ -28,7 +28,6 @@ sidepanel:connecting: Conectando…heroTitle: "O que você quer capturar?"heroSubtitle: "Grave qualquer fluxo de trabalho automaticamente"- startCapture: Começar a capturarsearchPlaceholder: Buscar guias…recentLabel: RecentesnotRecordable: Abra um site para começar a gravar@@ -190,13 +189,20 @@ blurPresets:macAddress: Endereço MACdesktop:+ collapse: "Recolher"+ expand: "Expandir"+ starting: "Iniciando…"+ capturingStep: "Capturando a etapa $1"+ tipArmed: "Cada clique é salvo como uma etapa."+ tipPaused: "Nada é gravado enquanto está pausado."+ tipWaiting: "Seu primeiro clique vai aparecer aqui."+ tipLabel: "Dica:"+ hintStartStop: "pressione $1 para iniciar e parar."+ hintCapture: "pressione $1 para capturar sem clicar."micAccessAsk: "O macOS pergunta uma vez antes que o Mimik possa ouvir você."micAccessRefused: "Recusado. Ative o Mimik em Privacidade e Segurança."micAccessOpen: "Abrir ajustes"- ready: "Pronto"- pause: "Pausar"- resume: "Retomar"- finish: "Concluir"+ armed: "Pronto"screenshotDelay: "Atraso da captura"keepClicksBeyondArea: "Capturar cliques fora da área"keepClicksBeyondAreaHint: "No modo Área, cliques fora da área também viram etapas, enquadradas na área."diff --git a/src/locales/zh-CN.yml b/src/locales/zh-CN.ymlindex bc22a82..593342a 100644--- a/src/locales/zh-CN.yml+++ b/src/locales/zh-CN.yml@@ -28,7 +28,6 @@ sidepanel:connecting: 正在连接…heroTitle: 想要捕获什么内容?heroSubtitle: 自动录制任何工作流- startCapture: 开始捕获searchPlaceholder: 搜索指南…recentLabel: 最近使用notRecordable: 打开一个网站即可开始捕获@@ -190,13 +189,20 @@ blurPresets:macAddress: MAC 地址desktop:+ collapse: "收起"+ expand: "展开"+ starting: "正在开始…"+ capturingStep: "正在捕获第 $1 步"+ tipArmed: "每次点击都会保存为一个步骤。"+ tipPaused: "暂停期间不会录制任何内容。"+ tipWaiting: "你的第一次点击会显示在这里。"+ tipLabel: "提示:"+ hintStartStop: "按 $1 开始或停止。"+ hintCapture: "按 $1 无需点击即可捕获。"micAccessAsk: "macOS 会先询问一次,Mimik 才能听到你的声音。"micAccessRefused: "已拒绝。请在“隐私与安全性”中打开 Mimik。"micAccessOpen: "打开设置"- ready: "就绪"- pause: "暂停"- resume: "继续"- finish: "完成"+ armed: "就绪"screenshotDelay: "截图延迟"keepClicksBeyondArea: "捕获区域外的点击"keepClicksBeyondAreaHint: "在区域模式下,区域外的点击也会成为步骤,并以该区域取景。"diff --git a/src/ui/sidepanel/App.tsx b/src/ui/sidepanel/App.tsxindex edb8a6a..523bce6 100644--- a/src/ui/sidepanel/App.tsx+++ b/src/ui/sidepanel/App.tsx@@ -270,7 +270,7 @@ export function App() {className="w-full py-3 px-4 h-auto rounded-lg font-semibold text-sm hover:-translate-y-px shadow-sm"><Video size={18} />- {i18n.t('sidepanel.startCapture')}+ {i18n.t('capture.startCapture')}</Button>) : (<p className="flex items-center justify-center gap-1.5 rounded-lg border border-border py-2.5 text-xs font-medium text-muted-foreground">