A desktop coding agent with free access to frontier models.
TypeScript
fix: translate the jump and preview labels; fail on a missing required locale
ogsamrat17340c270cfa
diff --git a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx b/apps/app/src/react-app/domains/session/editor/editor-panel.tsxindex 1c5827fc..0bdf4422 100644--- a/apps/app/src/react-app/domains/session/editor/editor-panel.tsx+++ b/apps/app/src/react-app/domains/session/editor/editor-panel.tsx@@ -1554,7 +1554,7 @@ export default function EditorPanel(props: EditorPanelProps) {{focusedTab && focusedTab.kind === "file" && isMarkdownPath(focusedTab.path) ? (<Tooltip><TooltipTrigger render={<Button variant="ghost" size="icon-xs" aria-label={t("editor.open_preview_side")} onClick={() => openPreview("side")} data-editor-preview-button><Eye /></Button>} />- <TooltipContent>Open preview to the side ({mac ? "⌘⇧V" : "Ctrl+Shift+V"})</TooltipContent>+ <TooltipContent>{t("editor.open_preview_side")} ({mac ? "⌘⇧V" : "Ctrl+Shift+V"})</TooltipContent></Tooltip>) : null}<Tooltip>diff --git a/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx b/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsxindex 4d64fcb0..bd81fede 100644--- a/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx+++ b/apps/app/src/react-app/domains/session/surface/scroll-overlay.tsx@@ -35,7 +35,7 @@ const JumpToStartButton = memo(function JumpToStartButton({title={t("scroll.jump_to_start")}><ArrowUp className="hidden size-4 @max-[34rem]/chatpane:block" aria-hidden="true" />- <span className="@max-[34rem]/chatpane:hidden">Jump to start</span>+ <span className="@max-[34rem]/chatpane:hidden">{t("scroll.jump_to_start")}</span></button>);});@@ -60,7 +60,7 @@ const JumpToLatestButton = memo(function JumpToLatestButton({title={t("scroll.jump_to_latest")}><ArrowDown className="hidden size-4 @max-[34rem]/chatpane:block" aria-hidden="true" />- <span className="@max-[34rem]/chatpane:hidden">Jump to latest</span>+ <span className="@max-[34rem]/chatpane:hidden">{t("scroll.jump_to_latest")}</span></button>);});diff --git a/scripts/i18n-audit.mjs b/scripts/i18n-audit.mjsindex 9cdf5881..a90a52b9 100644--- a/scripts/i18n-audit.mjs+++ b/scripts/i18n-audit.mjs@@ -182,7 +182,14 @@ if (shouldRun("--missing")) {console.log("=== Missing keys (in en.ts but not in locale) ===");for (const locale of LOCALES) {const file = join(LOCALES_DIR, `${locale}.ts`);- if (!existsSync(file)) continue;+ if (!existsSync(file)) {+ // A locale that must be complete cannot be missing altogether.+ if (COMPLETE_LOCALES.includes(locale)) {+ console.log(` ${locale}: ✗ ${locale}.ts is missing (must be complete)`);+ exitCode = 1;+ }+ continue;+ }const localeKeys = extractKeys(file);const missing = [...enKeys].filter((k) => !localeKeys.has(k));