refactor(i18n): route remaining extension labels through the catalog (T-468)
Migrate the user-facing strings in menubar, output, search, deeplink, editor, files, terminal, markdown, and vim to ClideSettings.i18n.string/.interpolated; extend the existing catalogs and create the missing ones (deeplink, output, search, markdown, menubar, vim). vim mode labels now resolve through builtin.vim (default still `-- NORMAL --`, now localizable). A dock-status test seeds builtin.output so the widget's own i18n lookups resolve instead of warning into the logRing it counts. No en_US behaviour change (D-21). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"dialog.title": { "translation": "Open an external link?" },
|
||||
"dialog.body": { "translation": "A clide:// link from outside the app is asking to:" },
|
||||
"dialog.warning": { "translation": "Only allow this if you trust where the link came from." },
|
||||
"button.cancel": { "translation": "Cancel" },
|
||||
"button.open": { "translation": "Open" }
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
"tab.title": { "translation": "Editor" },
|
||||
"chrome.title": { "translation": "editor" },
|
||||
"empty": { "translation": "Open a file to begin editing." },
|
||||
"subtitle.no-buffer": { "translation": "no buffer · use `clide open <path>` or pick a file in the tree" }
|
||||
"subtitle.no-buffer": { "translation": "no buffer · use `clide open <path>` or pick a file in the tree" },
|
||||
"a11y.text-area": { "translation": "editor text area" }
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"tab.title": { "translation": "Files" },
|
||||
"loading": { "translation": "Loading…" },
|
||||
"empty": { "translation": "No visible files" }
|
||||
"empty": { "translation": "No visible files" },
|
||||
"filter.hint": { "translation": "Filter files…" },
|
||||
"a11y.tree": { "translation": "file tree — {name}" },
|
||||
"a11y.collapse": { "translation": "Collapse {name}" },
|
||||
"a11y.expand": { "translation": "Expand {name}" },
|
||||
"a11y.open": { "translation": "Open {name}" }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"empty": { "translation": "Select a .md file to preview it here." },
|
||||
"chrome.title": { "translation": "viewer" },
|
||||
"subtitle.lines": { "translation": "{count} lines" }
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"menu.file": { "translation": "File" },
|
||||
"menu.view": { "translation": "View" },
|
||||
"menu.help": { "translation": "Help" },
|
||||
"about.version": { "translation": "Version" },
|
||||
"about.commit": { "translation": "Commit" },
|
||||
"about.built": { "translation": "Built" },
|
||||
"about.repository": { "translation": "Repository" },
|
||||
"licenses.heading": { "translation": "Bundled dependencies" },
|
||||
"licenses.unavailable": { "translation": "Licenses unavailable." },
|
||||
"licenses.loading": { "translation": "Loading…" },
|
||||
"button.close": { "translation": "Close" },
|
||||
"button.cancel": { "translation": "Cancel" },
|
||||
"button.open": { "translation": "Open" },
|
||||
"button.opening": { "translation": "Opening…" },
|
||||
"button.ok": { "translation": "OK" },
|
||||
"dialog.openProject.title": { "translation": "Open project" },
|
||||
"dialog.openProject.body": { "translation": "Enter the path to a git repository." },
|
||||
"dialog.openProject.error": { "translation": "Not a git repository" },
|
||||
"dialog.notRepo.title": { "translation": "No git repo found" },
|
||||
"dialog.notRepo.body": { "translation": "A clide project root requires a git repository." }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"a11y.log": { "translation": "output log" },
|
||||
"empty": { "translation": "No output yet." },
|
||||
"empty.filtered": { "translation": "No output matches the filter." },
|
||||
"filter.hint": { "translation": "Filter…" },
|
||||
"chip.level": { "translation": "Level: {level}" },
|
||||
"chip.source": { "translation": "Source: {source}" },
|
||||
"chip.clear": { "translation": "Clear" },
|
||||
"source.all": { "translation": "all" },
|
||||
"a11y.jumpToLatest": { "translation": "jump to latest" },
|
||||
"jump.label": { "translation": "Jump to latest ↓" },
|
||||
"a11y.toggleDock": { "translation": "toggle output dock" },
|
||||
"dock.label": { "translation": "Output" }
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"mode.find": { "translation": "Find" },
|
||||
"mode.vault": { "translation": "Vault" },
|
||||
"mode.query": { "translation": "Query" },
|
||||
"mode.markdown": { "translation": "Markdown" },
|
||||
"find.hint": { "translation": "Search" },
|
||||
"replace.hint": { "translation": "Replace" },
|
||||
"include.hint": { "translation": "files to include (e.g. *.dart)" },
|
||||
"exclude.hint": { "translation": "files to exclude" },
|
||||
"toggle.regex": { "translation": "Regular expression" },
|
||||
"toggle.caseInsensitive": { "translation": "Case insensitive" },
|
||||
"status.searching": { "translation": "Searching…" },
|
||||
"status.noResults": { "translation": "No results" },
|
||||
"status.counts": { "translation": "{matches} in {files}" },
|
||||
"a11y.openMatch": { "translation": "Open {path} line {line}" },
|
||||
"button.replaceAll": { "translation": "Replace all" },
|
||||
"button.ok": { "translation": "OK" },
|
||||
"button.cancel": { "translation": "Cancel" },
|
||||
"button.confirm": { "translation": "Confirm" },
|
||||
"dialog.dirty.title": { "translation": "Working tree not clean" },
|
||||
"dialog.dirty.body": { "translation": "Commit or stash your changes before replacing — git is the only undo." },
|
||||
"dialog.confirm.body": { "translation": "Replace {matches} match(es) across {files} file(s)? This cannot be undone in clide." }
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
{
|
||||
"tab.title": { "translation": "Terminal" },
|
||||
"chrome.title": { "translation": "terminal" },
|
||||
"subtitle.spawning": { "translation": "spawning shell…" },
|
||||
"subtitle.exited": { "translation": "Shell exited." },
|
||||
"error.unavailable": { "translation": "Terminal unavailable" },
|
||||
"error.daemon": { "translation": "Backend not connected." }
|
||||
"error.daemon": { "translation": "Backend not connected." },
|
||||
"a11y.label": { "translation": "terminal — {subtitle}" }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mode.normal": { "translation": "NORMAL" },
|
||||
"mode.insert": { "translation": "INSERT" },
|
||||
"mode.visual": { "translation": "VISUAL" }
|
||||
}
|
||||
Reference in New Issue
Block a user