refactor(i18n): bundle catalogs under assets/i18n/<locale>/ (T-462)
Move the catalogs out of lib/kernel/src/i18n/catalog/ into assets/i18n/, and
switch the layout from a `{namespace}_{locale}.json` filename to a per-locale
DIRECTORY: assets/i18n/en_us/{namespace}.json. Adding a language is now just a
new folder (assets/i18n/nl_nl/, nl_be, en_eu, …) of the same namespace files —
no renames — which is cleaner to maintain and mirrors how an external
extension ships its own catalog. AssetCatalogLoader/FileCatalogLoader resolve
`<root>/<locale>/<namespace>.json`; pubspec bundles the locale folder.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,201 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Claude" },
|
||||
"status.attaching": { "translation": "attaching…" },
|
||||
"status.no-tmux": { "translation": "no-tmux · fresh every launch" },
|
||||
"status.exited": { "translation": "session exited" },
|
||||
"status.primary-exited": { "translation": "session exited — restart clide to retry" },
|
||||
"banner.title": { "translation": "Claude" },
|
||||
"banner.warmingUp": { "translation": "Warming up — your conversation will appear here." },
|
||||
"composer.hint": { "translation": "Message Claude… (Enter to send · Shift+Enter for newline)" },
|
||||
"composer.stop": { "translation": "Stop ⎋" },
|
||||
"composer.stop.hint": { "translation": "Interrupt the running turn (Escape)" },
|
||||
"composer.removeAttachment": { "translation": "Remove {name}" },
|
||||
"pane.starting": { "translation": "starting…" },
|
||||
"pane.modeBadge.semantics": { "translation": "permission mode: {mode}" },
|
||||
"running.semantics": { "translation": "Claude is running" },
|
||||
"conversation.empty": { "translation": "Waiting for Claude…" },
|
||||
"conversation.label.you": { "translation": "you" },
|
||||
"conversation.label.claude": { "translation": "claude" },
|
||||
"conversation.label.clide": { "translation": "clide" },
|
||||
"conversation.label.agent": { "translation": "agent" },
|
||||
"conversation.label.agentPrompt": { "translation": "agent prompt" },
|
||||
"conversation.label.context": { "translation": "context" },
|
||||
"conversation.label.thinking": { "translation": "thinking" },
|
||||
"conversation.label.agentThinking": { "translation": "agent thinking" },
|
||||
"conversation.label.image": { "translation": "image" },
|
||||
"conversation.label.agentRun": { "translation": "agent run" },
|
||||
"conversation.label.workflow": { "translation": "workflow" },
|
||||
"conversation.label.error": { "translation": "error" },
|
||||
"conversation.label.result": { "translation": "result" },
|
||||
"conversation.label.denied": { "translation": "denied" },
|
||||
"conversation.segment.prompt": { "translation": "prompt" },
|
||||
"conversation.segment.result": { "translation": "result" },
|
||||
"conversation.segment.liveTail": { "translation": "live tail" },
|
||||
"conversation.segment.usage": { "translation": "usage" },
|
||||
"conversation.segment.script": { "translation": "script" },
|
||||
"conversation.workflow.launching": { "translation": "Launching…" },
|
||||
"conversation.imagePlaceholder": { "translation": "could not load {path}" },
|
||||
"conversation.bashTail.empty": { "translation": "no independent source to follow" },
|
||||
"conversation.bashTail.label": { "translation": "live tail" },
|
||||
"conversation.cluster.activity": { "translation": "Activity" },
|
||||
"conversation.cluster.edits": { "translation": "Edits" },
|
||||
"prompt.permission.allow": { "translation": "1. Allow" },
|
||||
"prompt.permission.allowRemember": { "translation": "2. Allow & don't ask again" },
|
||||
"prompt.permission.deny": { "translation": "{n}. Deny" },
|
||||
"prompt.permission.denySimplify": { "translation": "{n}. Deny & simplify" },
|
||||
"prompt.permission.denySimplify.tooltip": { "translation": "Deny and ask Claude to retry this action in a simpler format — complex interactions don't work well with the permission system." },
|
||||
"prompt.permission.note.placeholder": { "translation": "add a note (optional) — sent to Claude" },
|
||||
"prompt.permission.label": { "translation": "permission · {name}" },
|
||||
"prompt.question.label": { "translation": "question" },
|
||||
"prompt.review.label": { "translation": "review" },
|
||||
"prompt.review.title": { "translation": "Review your answers" },
|
||||
"prompt.submit": { "translation": "Submit" },
|
||||
"prompt.submitAnswers": { "translation": "Submit answers" },
|
||||
"prompt.back": { "translation": "‹ Back" },
|
||||
"prompt.next": { "translation": "Next ›" },
|
||||
"prompt.reviewNav": { "translation": "Review ›" },
|
||||
"prompt.nav.review": { "translation": "Review" },
|
||||
"prompt.option.other": { "translation": "Other…" },
|
||||
"prompt.other.placeholder": { "translation": "type your answer…" },
|
||||
"prompt.note.placeholder": { "translation": "+ note (optional)" },
|
||||
"prompt.chatInstead": { "translation": "chat instead" },
|
||||
"tool.edit.before": { "translation": "— before" },
|
||||
"tool.edit.after": { "translation": "+ after" },
|
||||
"tool.bash.background": { "translation": "background" },
|
||||
"permissionControl.semantics": { "translation": "permission mode: {mode}. Activate to change." },
|
||||
"permissionControl.tooltip": { "translation": "Permission mode: {mode} — change (Ctrl/Cmd+M cycles)" },
|
||||
"permissionBadge.tooltip": { "translation": "Permission mode: {mode}. Click to cycle default/acceptEdits/plan; Shift-click for bypassPermissions." },
|
||||
"permissionBadge.semantics": { "translation": "Permission mode: {label}" },
|
||||
"card.expand": { "translation": "Expand" },
|
||||
"card.collapse": { "translation": "Collapse" },
|
||||
"card.succeeded": { "translation": "succeeded" },
|
||||
"card.failed": { "translation": "failed" },
|
||||
"card.copy": { "translation": "copy" },
|
||||
"taskDock.summary": { "translation": "{count} {tasks} · {done} done" },
|
||||
"taskDock.task.singular": { "translation": "task" },
|
||||
"taskDock.task.plural": { "translation": "tasks" },
|
||||
"taskDock.collapse": { "translation": "Collapse tasks" },
|
||||
"taskDock.expand": { "translation": "Expand tasks" },
|
||||
"taskDock.semantics": { "translation": "Claude task list, {summary}, {state}" },
|
||||
"taskDock.state.expanded": { "translation": "expanded" },
|
||||
"taskDock.state.collapsed": { "translation": "collapsed" },
|
||||
"taskDock.status.done": { "translation": "done" },
|
||||
"taskDock.status.inProgress": { "translation": "in progress" },
|
||||
"taskDock.status.pending": { "translation": "pending" },
|
||||
"taskDock.row.semantics": { "translation": "{text}, {status}" },
|
||||
"sessionPicker.title": { "translation": "Resume a Claude session" },
|
||||
"sessionPicker.empty": { "translation": "No sessions found for this workspace." },
|
||||
"modelPicker.cancel": { "translation": "cancel" },
|
||||
"image.semantics": { "translation": "Image {name}" },
|
||||
"activity.section.session": { "translation": "SESSION" },
|
||||
"activity.control.clear": { "translation": "clear" },
|
||||
"activity.control.compact": { "translation": "compact" },
|
||||
"activity.control.fork": { "translation": "fork" },
|
||||
"activity.control.resume": { "translation": "resume" },
|
||||
"activity.control.refreshUsage": { "translation": "refresh usage" },
|
||||
"activity.control.semantics": { "translation": "{label} session" },
|
||||
"activity.control.tooltip": { "translation": "{label} · {command}" },
|
||||
"activity.empty": { "translation": "No activity recorded yet." },
|
||||
"activity.section.workflows": { "translation": "WORKFLOWS" },
|
||||
"activity.workflow.fallback": { "translation": "workflow" },
|
||||
"activity.workflow.done": { "translation": "done" },
|
||||
"activity.workflow.starting": { "translation": "starting" },
|
||||
"activity.section.usage": { "translation": "USAGE" },
|
||||
"activity.row.session": { "translation": "session" },
|
||||
"activity.row.weekAll": { "translation": "week (all)" },
|
||||
"activity.row.weekSonnet": { "translation": "week (sonnet)" },
|
||||
"activity.section.today": { "translation": "TODAY" },
|
||||
"activity.row.messages": { "translation": "messages" },
|
||||
"activity.row.sessions": { "translation": "sessions" },
|
||||
"activity.row.toolCalls": { "translation": "tool calls" },
|
||||
"activity.section.lifetime": { "translation": "LIFETIME" },
|
||||
"activity.section.runtime": { "translation": "RUNTIME · primary" },
|
||||
"activity.row.model": { "translation": "model" },
|
||||
"activity.row.effort": { "translation": "effort" },
|
||||
"activity.row.context": { "translation": "context" },
|
||||
"activity.row.mode": { "translation": "mode" },
|
||||
"activity.row.skills": { "translation": "skills" },
|
||||
"config.empty": { "translation": "Claude environment not loaded." },
|
||||
"config.section.settings": { "translation": "SETTINGS" },
|
||||
"config.row.model": { "translation": "model" },
|
||||
"config.row.effort": { "translation": "effort" },
|
||||
"config.row.permissionMode": { "translation": "permission mode" },
|
||||
"config.row.outputStyle": { "translation": "output style" },
|
||||
"config.row.source": { "translation": "source" },
|
||||
"config.row.source.value": { "translation": "~/.claude + .claude" },
|
||||
"config.footer": { "translation": "expand a list to see all · click a skill/agent/command → opens its .md" },
|
||||
"config.section.skills": { "translation": "SKILLS" },
|
||||
"config.section.agents": { "translation": "AGENTS" },
|
||||
"config.section.commands": { "translation": "COMMANDS" },
|
||||
"config.section.hooks": { "translation": "HOOKS" },
|
||||
"config.section.permissions": { "translation": "PERMISSIONS" },
|
||||
"config.section.mcpServers": { "translation": "MCP SERVERS" },
|
||||
"config.perm.allow": { "translation": "allow" },
|
||||
"config.perm.ask": { "translation": "ask" },
|
||||
"config.perm.deny": { "translation": "deny" },
|
||||
"config.control.semantics": { "translation": "{label}: {value}. Click to change." },
|
||||
"config.control.tooltip": { "translation": "change {label}" },
|
||||
"config.control.option.semantics": { "translation": "{label}: {name}" },
|
||||
"roster.bypass.confirmBody": { "translation": "Enable bypassPermissions? All tool calls will be auto-allowed." },
|
||||
"roster.bypass.confirm.semantics": { "translation": "Confirm bypass" },
|
||||
"roster.bypass.confirm.tooltip": { "translation": "Confirm" },
|
||||
"roster.bypass.ok": { "translation": "OK" },
|
||||
"roster.bypass.cancel.semantics": { "translation": "Cancel bypass" },
|
||||
"roster.bypass.cancel.tooltip": { "translation": "Cancel" },
|
||||
"roster.bypass.cancel": { "translation": "Cancel" },
|
||||
"roster.hidePane": { "translation": "Hide pane" },
|
||||
"roster.showPane": { "translation": "Show pane" },
|
||||
"roster.unmute": { "translation": "Unmute messages" },
|
||||
"roster.mute": { "translation": "Mute messages" },
|
||||
"roster.inject": { "translation": "Inject message" },
|
||||
"roster.fork": { "translation": "Fork session" },
|
||||
"roster.close": { "translation": "Close session" },
|
||||
"roster.inject.cancel": { "translation": "Cancel" },
|
||||
"taskRow.reassign": { "translation": "Reassign task" },
|
||||
"team.empty": { "translation": "No team active." },
|
||||
"team.section.tasks": { "translation": "TASKS" },
|
||||
"tabStrip.activity": { "translation": "Activity" },
|
||||
"tabStrip.team": { "translation": "Team" },
|
||||
"tabStrip.team.count": { "translation": "Team · {count}" },
|
||||
"tabStrip.config": { "translation": "Config" },
|
||||
"teamChat.section.messages": { "translation": "MESSAGES" },
|
||||
"teamChat.popOut.semantics": { "translation": "Open full chat pane" },
|
||||
"teamChat.popOut.tooltip": { "translation": "Open full chat" },
|
||||
"teamChat.empty": { "translation": "No messages yet." },
|
||||
"teamChat.composer.placeholder": { "translation": "@name or @team …" },
|
||||
"teamChat.pane.title": { "translation": "Team Chat" },
|
||||
"teamChat.interrupt.semantics": { "translation": "Interrupt target session" },
|
||||
"teamChat.interrupt.label": { "translation": "Interrupt" },
|
||||
"command.newSecondary": { "translation": "Claude: open a secondary session" },
|
||||
"command.killAllSessions": { "translation": "Claude: kill all sessions for this repo" },
|
||||
"command.sessionStorage": { "translation": "Claude: session storage (disk usage + cleanup)" },
|
||||
"command.activity.foldLevel": { "translation": "Claude: cycle activity fold level" },
|
||||
"command.agent.show": { "translation": "Claude: show an agent session pane" },
|
||||
"command.agent.hide": { "translation": "Claude: hide an agent session pane" },
|
||||
"command.agent.close": { "translation": "Claude: close (kill) an agent session" },
|
||||
"command.agent.mute": { "translation": "Claude: mute broker delivery to an agent session" },
|
||||
"command.agent.unmute": { "translation": "Claude: unmute broker delivery to an agent session" },
|
||||
"command.agent.injectMessage": { "translation": "Claude: inject a text turn into an agent session" },
|
||||
"command.agent.setPermissionMode": { "translation": "Claude: set permission mode for an agent session" },
|
||||
"command.mode.cycle": { "translation": "Claude: Cycle permission mode" },
|
||||
"command.task.reassign": { "translation": "Claude: reassign a shared task to an agent" },
|
||||
"command.teamChat.open": { "translation": "Claude: open the team chat pane" },
|
||||
"command.teamChat.post": { "translation": "Claude: post a message into the team channel as the user" },
|
||||
"command.agent.fork": { "translation": "Claude: fork a managed session into a new branch session" },
|
||||
"settings.activity.title": { "translation": "Activity" },
|
||||
"settings.activity.conversation.label": { "translation": "Conversation" },
|
||||
"settings.activity.foldLevel.label": { "translation": "Fold level" },
|
||||
"settings.activity.foldLevel.help": { "translation": "How aggressively the conversation folds tool calls, thinking, and results." },
|
||||
"settings.activity.opt.none": { "translation": "Show everything" },
|
||||
"settings.activity.opt.tools": { "translation": "Fold tool calls" },
|
||||
"settings.activity.opt.thinking": { "translation": "Fold tools + thinking" },
|
||||
"settings.activity.opt.everything": { "translation": "Fold all but prose" },
|
||||
"settings.claude.title": { "translation": "Claude" },
|
||||
"settings.claude.newSessionDefaults.label": { "translation": "New session defaults" },
|
||||
"settings.claude.model.label": { "translation": "Model" },
|
||||
"settings.claude.model.help": { "translation": "Model for new sessions." },
|
||||
"settings.claude.effort.label": { "translation": "Effort" },
|
||||
"settings.claude.effort.help": { "translation": "Reasoning effort for new sessions (applied via --effort at spawn)." },
|
||||
"settings.claude.permissionMode.label": { "translation": "Permission mode" },
|
||||
"settings.claude.permissionMode.help": { "translation": "Starting permission mode for new sessions." }
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"command.clide.installCli": { "translation": "clide: Install 'clide' command in PATH" }
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Decisions" },
|
||||
"tab.detail.title": { "translation": "Decision" },
|
||||
"loading": { "translation": "Loading decisions..." },
|
||||
"error.load": { "translation": "failed to load decisions" },
|
||||
"empty": { "translation": "No decisions found.\nRun `pql decisions sync` to index." },
|
||||
"filter.hint": { "translation": "Filter decisions…" },
|
||||
"refresh.tooltip": { "translation": "Refresh decisions" },
|
||||
"section.confirmed": { "translation": "CONFIRMED" },
|
||||
"section.questions": { "translation": "QUESTIONS" },
|
||||
"section.rejected": { "translation": "REJECTED" },
|
||||
"badge.resolved": { "translation": "resolved" },
|
||||
"detail.loading": { "translation": "Loading…" },
|
||||
"detail.empty": { "translation": "Select a decision to view details." },
|
||||
"detail.section.refs": { "translation": "CROSS-REFERENCES" }
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"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" },
|
||||
"command.deeplink.invoke": { "translation": "Open a clide:// deep link" }
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"command.reset": { "translation": "Layout: Reset to Classic" },
|
||||
"preset.classic": { "translation": "Classic" },
|
||||
"command.palette.toggle": { "translation": "Command Palette" },
|
||||
"command.sidebar.collapse": { "translation": "Toggle Sidebar Collapse" },
|
||||
"command.context.collapse": { "translation": "Toggle Context Panel Collapse" },
|
||||
"command.panel.focus.left": { "translation": "Focus Left Panel" },
|
||||
"command.panel.focus.middle": { "translation": "Focus Middle Panel" },
|
||||
"command.panel.focus.right": { "translation": "Focus Right Panel" },
|
||||
"command.panel.focusMode": { "translation": "Toggle Focus Mode" },
|
||||
"command.panel.focusMode.exit": { "translation": "Exit Focus Mode" },
|
||||
"command.editor.open": { "translation": "Open Editor" },
|
||||
"command.editor.close": { "translation": "Close Editor" },
|
||||
"command.workspace.tab.next": { "translation": "Next Workspace Tab" },
|
||||
"command.workspace.tab.previous": { "translation": "Previous Workspace Tab" },
|
||||
"command.sidebar.section.1": { "translation": "Sidebar: Section 1" },
|
||||
"command.sidebar.section.2": { "translation": "Sidebar: Section 2" },
|
||||
"command.sidebar.section.3": { "translation": "Sidebar: Section 3" },
|
||||
"command.sidebar.section.4": { "translation": "Sidebar: Section 4" },
|
||||
"command.sidebar.section.5": { "translation": "Sidebar: Section 5" }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Diff" },
|
||||
"view.semantics": { "translation": "diff view" },
|
||||
"status.loading": { "translation": "Loading…" },
|
||||
"empty.staged": { "translation": "No staged changes." },
|
||||
"empty.unstaged": { "translation": "No unstaged changes." },
|
||||
"toolbar.unstaged": { "translation": "Unstaged" },
|
||||
"toolbar.unstaged.semantics": { "translation": "show unstaged changes" },
|
||||
"toolbar.staged": { "translation": "Staged" },
|
||||
"toolbar.staged.semantics": { "translation": "show staged changes" },
|
||||
"meta.newFile": { "translation": "new file" },
|
||||
"meta.deleted": { "translation": "deleted" },
|
||||
"meta.renamedFrom": { "translation": "renamed from {path}" },
|
||||
"meta.binary": { "translation": "binary" }
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"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" },
|
||||
"a11y.text-area": { "translation": "editor text area" }
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"notice.title": { "translation": "Extension management is coming" },
|
||||
"notice.body": { "translation": "Installing, enabling, and disabling extensions arrives with third-party (Lua) extension support. For now the built-in extensions are always on." },
|
||||
"notice.tracked": { "translation": "Tracked in T-8 (Tier 6) · D-16" },
|
||||
"settings.extensions.title": { "translation": "Extensions" },
|
||||
"settings.extensions.section.notice": { "translation": "" },
|
||||
"settings.extensions.field.notice.label": { "translation": "" }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Files" },
|
||||
"loading": { "translation": "Loading…" },
|
||||
"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}" }
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Git" },
|
||||
"panel.semantics": { "translation": "git panel" },
|
||||
"filter.hint": { "translation": "Filter changes…" },
|
||||
"status.loading": { "translation": "Loading…" },
|
||||
"status.clean": { "translation": "Nothing to commit, working tree clean." },
|
||||
"group.conflicts": { "translation": "Merge conflicts" },
|
||||
"group.staged": { "translation": "Staged" },
|
||||
"group.changes": { "translation": "Changes" },
|
||||
"group.untracked": { "translation": "Untracked" },
|
||||
"action.unstageAll": { "translation": "Unstage all" },
|
||||
"action.stageAll": { "translation": "Stage all" },
|
||||
"commit.message.semantics": { "translation": "commit message" },
|
||||
"commit.button": { "translation": "Commit" },
|
||||
"commit.button.semantics": { "translation": "commit staged changes" },
|
||||
"branch.detached": { "translation": "(detached)" },
|
||||
"action.pull": { "translation": "Pull" },
|
||||
"action.pull.semantics": { "translation": "git pull" },
|
||||
"action.push": { "translation": "Push" },
|
||||
"action.push.semantics": { "translation": "git push" },
|
||||
"state.added": { "translation": "added" },
|
||||
"state.modified": { "translation": "modified" },
|
||||
"state.deleted": { "translation": "deleted" },
|
||||
"state.renamed": { "translation": "renamed" },
|
||||
"state.copied": { "translation": "copied" },
|
||||
"state.untracked": { "translation": "untracked" },
|
||||
"row.stage.semantics": { "translation": "stage {name}" },
|
||||
"row.unstage.semantics": { "translation": "unstage {name}" },
|
||||
"row.discard.semantics": { "translation": "discard changes to {name}" },
|
||||
"discard.title": { "translation": "Discard changes?" },
|
||||
"discard.body": { "translation": "Unstaged changes to {name} will be permanently lost." },
|
||||
"button.cancel": { "translation": "Cancel" },
|
||||
"button.discard": { "translation": "Discard" },
|
||||
"branch.switch.semantics": { "translation": "switch branch — {branch}" },
|
||||
"branchPicker.title": { "translation": "Switch branch" },
|
||||
"branchPicker.empty": { "translation": "No branches found." },
|
||||
"branchPicker.loadFailed": { "translation": "failed to load branches" }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"connected": { "translation": "connected" },
|
||||
"connected.hint": { "translation": "backend isolate is reachable" },
|
||||
"disconnected": { "translation": "disconnected" },
|
||||
"disconnected.hint": { "translation": "backend isolate is not running" }
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"command.preset.default": { "translation": "Keymap: Default" },
|
||||
"command.preset.vim": { "translation": "Keymap: Vim" },
|
||||
"command.preset.vscode": { "translation": "Keymap: VS Code" },
|
||||
"command.preset.jetbrains": { "translation": "Keymap: JetBrains" },
|
||||
"settings.keymap.title": { "translation": "Keymap" },
|
||||
"settings.keymap.section.preset": { "translation": "Preset" },
|
||||
"settings.keymap.field.preset.label": { "translation": "Active preset" },
|
||||
"settings.keymap.field.preset.help": { "translation": "Keyboard layout for the whole app." },
|
||||
"settings.keymap.field.preset.option.default": { "translation": "Default" },
|
||||
"settings.keymap.field.preset.option.vim": { "translation": "Vim" },
|
||||
"settings.keymap.field.preset.option.vscode": { "translation": "VS Code" },
|
||||
"settings.keymap.field.preset.option.jetbrains": { "translation": "JetBrains" }
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"empty": { "translation": "Select a .md file to preview it here." },
|
||||
"chrome.title": { "translation": "viewer" },
|
||||
"subtitle.lines": { "translation": "{count} lines" }
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"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." },
|
||||
"command.file.openFolder": { "translation": "File: Open Folder…" },
|
||||
"command.file.newWindow": { "translation": "File: New Window" },
|
||||
"command.file.closeWorkspace": { "translation": "File: Close Project" },
|
||||
"command.help.about": { "translation": "Help: About clide" }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"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" },
|
||||
"command.dock.toggle": { "translation": "Toggle output dock" }
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "pql" },
|
||||
"tab.links.title": { "translation": "Links" },
|
||||
"filter.markdown.hint": { "translation": "Filter markdown…" },
|
||||
"loading": { "translation": "Loading…" },
|
||||
"empty.markdown": { "translation": "No markdown files found." },
|
||||
"search.vault.hint": { "translation": "Search vault…" },
|
||||
"search.query.hint": { "translation": "PQL query…" },
|
||||
"backlinks.empty": { "translation": "Open a file to see its links." },
|
||||
"backlinks.loading": { "translation": "Loading…" },
|
||||
"backlinks.semantics": { "translation": "backlinks for {path}" },
|
||||
"group.backlinks": { "translation": "Backlinks" },
|
||||
"group.outlinks": { "translation": "Outlinks" },
|
||||
"group.label": { "translation": "{label} ({count})" },
|
||||
"group.none": { "translation": "None" }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Problems" },
|
||||
"semantics.panel": { "translation": "problems panel" },
|
||||
"filter.hint": { "translation": "Filter problems…" },
|
||||
"count": { "translation": "Problems ({count})" },
|
||||
"refresh.label": { "translation": "Refresh" },
|
||||
"refresh.semantics": { "translation": "refresh problems" },
|
||||
"scanning": { "translation": "Scanning…" },
|
||||
"empty": { "translation": "No problems found." }
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"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,17 +0,0 @@
|
||||
{
|
||||
"command.open": { "translation": "Settings…" },
|
||||
"modal.title": { "translation": "Settings" },
|
||||
"modal.close": { "translation": "Close" },
|
||||
"modal.close.hint": { "translation": "Close settings without changing anything" },
|
||||
"rail.header": { "translation": "Categories" },
|
||||
"panel.empty": { "translation": "No settings categories are registered yet." },
|
||||
"search.hint": { "translation": "Search settings…" },
|
||||
"search.empty": { "translation": "No settings match your search." },
|
||||
"scope.project": { "translation": "This project" },
|
||||
"scope.always": { "translation": "All clide" },
|
||||
"scope.default": { "translation": "Default" },
|
||||
"scope.reset": { "translation": "Reset to default" },
|
||||
"scope.tip.project": { "translation": "Stored in this project (.clide)" },
|
||||
"scope.tip.always": { "translation": "Stored for all clide (~/.clide)" },
|
||||
"scope.tip.default": { "translation": "Unset — using the default" }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"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." },
|
||||
"a11y.label": { "translation": "terminal — {subtitle}" }
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"command.pick": { "translation": "Theme…" },
|
||||
"modal.title": { "translation": "Select theme" },
|
||||
"modal.cancel": { "translation": "Cancel" },
|
||||
"modal.cancel.hint": { "translation": "Close the theme picker without changing the current theme" },
|
||||
"row.select.hint": { "translation": "Activate this theme" },
|
||||
"section.appearance": { "translation": "Appearance" },
|
||||
"toggle.highContrast": { "translation": "High contrast" },
|
||||
"settings.appearance.title": { "translation": "Appearance" },
|
||||
"settings.appearance.section.theme": { "translation": "Theme" },
|
||||
"settings.appearance.section.typography": { "translation": "Typography" },
|
||||
"settings.appearance.field.theme.label": { "translation": "Theme" },
|
||||
"settings.appearance.field.theme.help": { "translation": "Color theme; high contrast switches to the accessible variant." },
|
||||
"settings.appearance.field.uiFont.label": { "translation": "UI font" },
|
||||
"settings.appearance.field.uiFont.help": { "translation": "Typeface for the app interface; applies live." },
|
||||
"settings.appearance.field.uiFont.option.josefinSans": { "translation": "Josefin Sans" },
|
||||
"settings.appearance.field.uiFont.option.inter": { "translation": "Inter" },
|
||||
"settings.appearance.field.monoFont.label": { "translation": "Monospace font" },
|
||||
"settings.appearance.field.monoFont.help": { "translation": "Terminal, diffs, code, and IDs; applies live." },
|
||||
"settings.appearance.field.monoFont.option.jetBrainsMono": { "translation": "JetBrains Mono" },
|
||||
"settings.appearance.field.monoFont.option.firaMono": { "translation": "Fira Mono" }
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
"tab.title": { "translation": "Tickets" },
|
||||
"tab.detail.title": { "translation": "Ticket" },
|
||||
"type.initiative": { "translation": "Initiative" },
|
||||
"type.epic": { "translation": "Epic" },
|
||||
"type.story": { "translation": "Story" },
|
||||
"type.task": { "translation": "Task" },
|
||||
"type.bug": { "translation": "Bug" },
|
||||
"loading": { "translation": "Loading tickets..." },
|
||||
"error.load": { "translation": "failed to load tickets" },
|
||||
"empty": { "translation": "No tickets.\nRun `pql ticket new` to create one." },
|
||||
"filter.hint": { "translation": "Filter tickets…" },
|
||||
"refresh.tooltip": { "translation": "Refresh tickets" },
|
||||
"section.in_progress": { "translation": "IN PROGRESS" },
|
||||
"section.review": { "translation": "REVIEW" },
|
||||
"section.ready": { "translation": "READY" },
|
||||
"section.backlog": { "translation": "BACKLOG" },
|
||||
"section.done": { "translation": "DONE" },
|
||||
"section.cancelled": { "translation": "CANCELLED" },
|
||||
"chip.label": { "translation": "{type} type filter" },
|
||||
"chip.tooltip": { "translation": "Click to toggle · double-click to isolate" },
|
||||
"badge.wip": { "translation": "WIP" },
|
||||
"badge.review": { "translation": "REVIEW" },
|
||||
"badge.cancelled": { "translation": "CANCELLED" },
|
||||
"pickUp.tooltip": { "translation": "Pick up — hand this ticket to the Claude pane" },
|
||||
"detail.loading": { "translation": "Loading…" },
|
||||
"detail.empty": { "translation": "Select a ticket to view details." },
|
||||
"detail.assigned": { "translation": "assigned: {name}" },
|
||||
"detail.section.parents": { "translation": "PARENT TREE" },
|
||||
"detail.section.decisions": { "translation": "REFERENCED DECISIONS" },
|
||||
"status.backlog": { "translation": "BACKLOG" },
|
||||
"status.ready": { "translation": "READY" },
|
||||
"status.in_progress": { "translation": "WIP" },
|
||||
"status.review": { "translation": "REVIEW" },
|
||||
"status.done": { "translation": "DONE" }
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"command.view.zoomIn": { "translation": "View: Zoom In" },
|
||||
"command.view.zoomOut": { "translation": "View: Zoom Out" },
|
||||
"command.view.zoomReset": { "translation": "View: Reset Zoom" }
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"mode.normal": { "translation": "NORMAL" },
|
||||
"mode.insert": { "translation": "INSERT" },
|
||||
"mode.visual": { "translation": "VISUAL" },
|
||||
"command.vim.mode.normal": { "translation": "Vim: Normal mode" },
|
||||
"command.vim.mode.insert": { "translation": "Vim: Insert mode" },
|
||||
"command.vim.mode.visual": { "translation": "Vim: Visual mode" }
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
{
|
||||
"title": { "translation": "clide" },
|
||||
"subtitle": { "translation": "IDE for Claude Code CLI" },
|
||||
"open-project": { "translation": "Open project" },
|
||||
"open-project.hint": { "translation": "Pick a git repository to open as the workspace" },
|
||||
"tab.title": { "translation": "Welcome" },
|
||||
"section.tips": { "translation": "TIPS" },
|
||||
"section.start": { "translation": "START" },
|
||||
"section.recent": { "translation": "RECENT" },
|
||||
"tips.quickOpen": { "translation": "Quick open" },
|
||||
"tips.commandPalette": { "translation": "Command palette" },
|
||||
"tips.toggleSidebar": { "translation": "Toggle sidebar" },
|
||||
"tips.toggleContext": { "translation": "Toggle context" },
|
||||
"tips.findInFiles": { "translation": "Find in files" },
|
||||
"tips.focusMode": { "translation": "Focus mode" },
|
||||
"action.openFolder": { "translation": "Open folder…" },
|
||||
"recent.empty": { "translation": "No recent projects." },
|
||||
"sticky.label": { "translation": "always open this project on launch" },
|
||||
"sticky.tooltip": { "translation": "Always open this project on launch" },
|
||||
"sticky.tooltip.active": { "translation": "Always open this project on launch (uncheck to restore picker)" },
|
||||
"status.checking": { "translation": "checking…" },
|
||||
"status.ok": { "translation": "application ok" },
|
||||
"status.notFound": { "translation": "{tool} not found" },
|
||||
"status.theme": { "translation": "theme: " },
|
||||
"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" },
|
||||
"button.cancel": { "translation": "Cancel" },
|
||||
"button.open": { "translation": "Open" },
|
||||
"button.opening": { "translation": "Opening…" },
|
||||
"button.ok": { "translation": "OK" },
|
||||
"dialog.notRepo.title": { "translation": "No git repo found" },
|
||||
"dialog.notRepo.body": { "translation": "A clide project root requires a git repository." },
|
||||
"command.workspace.open-project": { "translation": "Workspace: Open project…" }
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"collapser.expand": { "translation": "Expand" },
|
||||
"collapser.collapse": { "translation": "Collapse" },
|
||||
"collapser.expanded": { "translation": "expanded" },
|
||||
"collapser.collapsed": { "translation": "collapsed" },
|
||||
"toast.dismiss": { "translation": "Dismiss notification" },
|
||||
"lightbox.close": { "translation": "close" },
|
||||
"lightbox.hint": { "translation": "scroll to zoom · double-click to reset · Esc to close" },
|
||||
"tab.new": { "translation": "New tab" },
|
||||
"exline.notCommand": { "translation": "Not an editor command" },
|
||||
"spine.expandSuffix": { "translation": "click to expand" },
|
||||
"pane.close": { "translation": "Close pane" },
|
||||
"pane.header": { "translation": "pane header: {title}" },
|
||||
"reader.back": { "translation": "Back" },
|
||||
"reader.forward": { "translation": "Forward" },
|
||||
"reader.jumpToPin": { "translation": "Jump to pin" },
|
||||
"reader.edit": { "translation": "Edit in editor" },
|
||||
"reader.pin": { "translation": "Pin" },
|
||||
"reader.unpin": { "translation": "Unpin" },
|
||||
"link.openInEditor": { "translation": "Open in editor" },
|
||||
"resize.axis.width": { "translation": "width" },
|
||||
"resize.axis.height": { "translation": "height" },
|
||||
"resize.sidebar": { "translation": "Sidebar {axis}" },
|
||||
"resize.contextPanel": { "translation": "Context panel {axis}" },
|
||||
"resize.slot": { "translation": "{slot} {axis}" },
|
||||
"resize.pixels": { "translation": "{n} pixels" }
|
||||
}
|
||||
@@ -8,13 +8,18 @@ import 'package:flutter/services.dart';
|
||||
|
||||
/// Loads catalog JSON for a given `(namespace, locale)` pair.
|
||||
///
|
||||
/// The file format (mirrors fframe verbatim):
|
||||
/// `{namespace}_{lang}_{country}.json` — or `{namespace}_{lang}.json`
|
||||
/// Layout: the locale is a **directory**, the namespace is the file:
|
||||
/// `<root>/{lang}_{country}/{namespace}.json` (or `<root>/{lang}/...`)
|
||||
/// Content: `{ "key": { "translation": "...", ...extras }, ... }`.
|
||||
/// So a new language is a new folder named `{lang}_{country}` like `en_us`
|
||||
/// (e.g. `assets/i18n/nl_nl/`, and a sibling `assets/i18n/nl_be/` later) — drop
|
||||
/// the same namespace files in, no renames. The fallback chain resolves
|
||||
/// narrow→broad, e.g. `nl_be → nl → en_us`.
|
||||
///
|
||||
/// Two reader shapes:
|
||||
/// * Asset bundle (built-in catalogs shipped under `lib/kernel/src/i18n/catalog/`).
|
||||
/// * Filesystem (third-party extensions under `~/.clide/extensions/<id>/`).
|
||||
/// * Asset bundle (built-in catalogs shipped under `assets/i18n/`).
|
||||
/// * Filesystem (third-party extensions under `~/.clide/extensions/<id>/`,
|
||||
/// same `<locale>/<namespace>.json` layout).
|
||||
///
|
||||
/// Missing files return an empty map — not an error. The fallback chain
|
||||
/// walker handles "nothing for this locale" by trying the next one.
|
||||
@@ -28,12 +33,12 @@ class AssetCatalogLoader implements CatalogLoader {
|
||||
final AssetBundle bundle;
|
||||
final String rootDir;
|
||||
|
||||
static const String _defaultRoot = 'lib/kernel/src/i18n/catalog';
|
||||
static const String _defaultRoot = 'assets/i18n';
|
||||
|
||||
@override
|
||||
Future<Map<String, Object?>> load(String namespace, Locale locale) async {
|
||||
final suffix = FallbackChain.filenameSuffix(locale);
|
||||
final path = '$rootDir/${namespace}_$suffix.json';
|
||||
final locDir = FallbackChain.filenameSuffix(locale);
|
||||
final path = '$rootDir/$locDir/$namespace.json';
|
||||
try {
|
||||
final text = await bundle.loadString(path);
|
||||
if (text.trim().isEmpty) return const {};
|
||||
@@ -56,8 +61,8 @@ class FileCatalogLoader implements CatalogLoader {
|
||||
|
||||
@override
|
||||
Future<Map<String, Object?>> load(String namespace, Locale locale) async {
|
||||
final suffix = FallbackChain.filenameSuffix(locale);
|
||||
final f = File('${rootDir.path}/${namespace}_$suffix.json');
|
||||
final locDir = FallbackChain.filenameSuffix(locale);
|
||||
final f = File('${rootDir.path}/$locDir/$namespace.json');
|
||||
if (!await f.exists()) return const {};
|
||||
try {
|
||||
final text = await f.readAsString();
|
||||
|
||||
Reference in New Issue
Block a user