Send the remaining interface text through the catalog and audit it
Phase 4f. - scripts/i18nAudit.mjs runs in pnpm check. It fails for a key that the catalog does not have, a catalog key that the code does not use, and a row without all four languages. - message() marks a key that a variable carries to the translation call later: table formats, formula errors, and browser status messages. - 53 new rows with French, Japanese, and Simplified Chinese text for the status and error messages of the workbench, the tree, Settings, theme import, images, the built-in browser, and code blocks. The backlinks toggle now translates too. - 13 unused rows are gone. - Errors of the plugin API stay in English. docs/development.md has the rule in "Interface text". pnpm check, pnpm test (350 of 350), and the full smoke suite pass, except two tests that failed one time under load and passed on retry and 3 of 3 times alone.
This commit is contained in:
@@ -166,14 +166,14 @@
|
||||
for (const path of linkCandidates(buffer.relPath, image.dataset.mdSrc || "", "md")) {
|
||||
try { await workspaceReadDataUrl(path); await workspaceReveal(path); return; } catch { /* Try the workspace-relative image. */ }
|
||||
}
|
||||
throw new Error("Could not find this image in the workspace.");
|
||||
throw new Error($t("Could not find this image in the workspace."));
|
||||
},
|
||||
validate: async source => {
|
||||
if (isRemoteImage(source)) return;
|
||||
for (const path of linkCandidates(buffer.relPath, source, "md")) {
|
||||
try { await workspaceReadDataUrl(path); return; } catch { /* Try the workspace-relative image. */ }
|
||||
}
|
||||
throw new Error("Choose an image that exists in the workspace.");
|
||||
throw new Error($t("Choose an image that exists in the workspace."));
|
||||
},
|
||||
report: message => { error = message; },
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user