summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/i18n
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-01-20 17:56:53 -0600
committerAdam <[email protected]>2026-01-20 17:58:06 -0600
commit233d003b4926ec615ff15c1ddd54a1719a62ef13 (patch)
tree7c96d92f8b7bbf2b0fa9d5976d338fe10ab611dc /packages/app/src/i18n
parent6037e88ddf3fd08191dfb5e136796e15e8bc163c (diff)
downloadopencode-233d003b4926ec615ff15c1ddd54a1719a62ef13.tar.gz
opencode-233d003b4926ec615ff15c1ddd54a1719a62ef13.zip
wip(app): i18n
Diffstat (limited to 'packages/app/src/i18n')
-rw-r--r--packages/app/src/i18n/en.ts103
-rw-r--r--packages/app/src/i18n/zh.ts103
2 files changed, 206 insertions, 0 deletions
diff --git a/packages/app/src/i18n/en.ts b/packages/app/src/i18n/en.ts
index 9487dc0ef..5db336330 100644
--- a/packages/app/src/i18n/en.ts
+++ b/packages/app/src/i18n/en.ts
@@ -26,6 +26,8 @@ export const dict = {
"command.session.next": "Next session",
"command.session.archive": "Archive session",
+ "command.palette": "Command palette",
+
"command.theme.cycle": "Cycle theme",
"command.theme.set": "Use theme: {{theme}}",
"command.theme.scheme.cycle": "Cycle color scheme",
@@ -395,6 +397,7 @@ export const dict = {
"common.dismiss": "Dismiss",
"common.requestFailed": "Request failed",
"common.moreOptions": "More options",
+ "common.learnMore": "Learn more",
"common.rename": "Rename",
"common.reset": "Reset",
"common.delete": "Delete",
@@ -412,6 +415,106 @@ export const dict = {
"sidebar.project.recentSessions": "Recent sessions",
"sidebar.project.viewAllSessions": "View all sessions",
+ "settings.section.desktop": "Desktop",
+ "settings.tab.general": "General",
+ "settings.tab.shortcuts": "Shortcuts",
+
+ "settings.general.section.appearance": "Appearance",
+ "settings.general.section.notifications": "System notifications",
+ "settings.general.section.sounds": "Sound effects",
+
+ "settings.general.row.language.title": "Language",
+ "settings.general.row.language.description": "Change the display language for OpenCode",
+ "settings.general.row.appearance.title": "Appearance",
+ "settings.general.row.appearance.description": "Customise how OpenCode looks on your device",
+ "settings.general.row.theme.title": "Theme",
+ "settings.general.row.theme.description": "Customise how OpenCode is themed.",
+ "settings.general.row.font.title": "Font",
+ "settings.general.row.font.description": "Customise the mono font used in code blocks",
+
+ "settings.general.notifications.agent.title": "Agent",
+ "settings.general.notifications.agent.description": "Show system notification when the agent is complete or needs attention",
+ "settings.general.notifications.permissions.title": "Permissions",
+ "settings.general.notifications.permissions.description": "Show system notification when a permission is required",
+ "settings.general.notifications.errors.title": "Errors",
+ "settings.general.notifications.errors.description": "Show system notification when an error occurs",
+
+ "settings.general.sounds.agent.title": "Agent",
+ "settings.general.sounds.agent.description": "Play sound when the agent is complete or needs attention",
+ "settings.general.sounds.permissions.title": "Permissions",
+ "settings.general.sounds.permissions.description": "Play sound when a permission is required",
+ "settings.general.sounds.errors.title": "Errors",
+ "settings.general.sounds.errors.description": "Play sound when an error occurs",
+
+ "settings.shortcuts.title": "Keyboard shortcuts",
+ "settings.shortcuts.reset.button": "Reset to defaults",
+ "settings.shortcuts.reset.toast.title": "Shortcuts reset",
+ "settings.shortcuts.reset.toast.description": "Keyboard shortcuts have been reset to defaults.",
+ "settings.shortcuts.conflict.title": "Shortcut already in use",
+ "settings.shortcuts.conflict.description": "{{keybind}} is already assigned to {{titles}}.",
+ "settings.shortcuts.unassigned": "Unassigned",
+ "settings.shortcuts.pressKeys": "Press keys",
+
+ "settings.shortcuts.group.general": "General",
+ "settings.shortcuts.group.session": "Session",
+ "settings.shortcuts.group.navigation": "Navigation",
+ "settings.shortcuts.group.modelAndAgent": "Model and agent",
+ "settings.shortcuts.group.terminal": "Terminal",
+ "settings.shortcuts.group.prompt": "Prompt",
+
+ "settings.providers.title": "Providers",
+ "settings.providers.description": "Provider settings will be configurable here.",
+ "settings.models.title": "Models",
+ "settings.models.description": "Model settings will be configurable here.",
+ "settings.agents.title": "Agents",
+ "settings.agents.description": "Agent settings will be configurable here.",
+ "settings.commands.title": "Commands",
+ "settings.commands.description": "Command settings will be configurable here.",
+ "settings.mcp.title": "MCP",
+ "settings.mcp.description": "MCP settings will be configurable here.",
+
+ "settings.permissions.title": "Permissions",
+ "settings.permissions.description": "Control what tools the server can use by default.",
+ "settings.permissions.section.tools": "Tools",
+ "settings.permissions.toast.updateFailed.title": "Failed to update permissions",
+
+ "settings.permissions.action.allow": "Allow",
+ "settings.permissions.action.ask": "Ask",
+ "settings.permissions.action.deny": "Deny",
+
+ "settings.permissions.tool.read.title": "Read",
+ "settings.permissions.tool.read.description": "Reading a file (matches the file path)",
+ "settings.permissions.tool.edit.title": "Edit",
+ "settings.permissions.tool.edit.description": "Modify files, including edits, writes, patches, and multi-edits",
+ "settings.permissions.tool.glob.title": "Glob",
+ "settings.permissions.tool.glob.description": "Match files using glob patterns",
+ "settings.permissions.tool.grep.title": "Grep",
+ "settings.permissions.tool.grep.description": "Search file contents using regular expressions",
+ "settings.permissions.tool.list.title": "List",
+ "settings.permissions.tool.list.description": "List files within a directory",
+ "settings.permissions.tool.bash.title": "Bash",
+ "settings.permissions.tool.bash.description": "Run shell commands",
+ "settings.permissions.tool.task.title": "Task",
+ "settings.permissions.tool.task.description": "Launch sub-agents",
+ "settings.permissions.tool.skill.title": "Skill",
+ "settings.permissions.tool.skill.description": "Load a skill by name",
+ "settings.permissions.tool.lsp.title": "LSP",
+ "settings.permissions.tool.lsp.description": "Run language server queries",
+ "settings.permissions.tool.todoread.title": "Todo Read",
+ "settings.permissions.tool.todoread.description": "Read the todo list",
+ "settings.permissions.tool.todowrite.title": "Todo Write",
+ "settings.permissions.tool.todowrite.description": "Update the todo list",
+ "settings.permissions.tool.webfetch.title": "Web Fetch",
+ "settings.permissions.tool.webfetch.description": "Fetch content from a URL",
+ "settings.permissions.tool.websearch.title": "Web Search",
+ "settings.permissions.tool.websearch.description": "Search the web",
+ "settings.permissions.tool.codesearch.title": "Code Search",
+ "settings.permissions.tool.codesearch.description": "Search code on the web",
+ "settings.permissions.tool.external_directory.title": "External Directory",
+ "settings.permissions.tool.external_directory.description": "Access files outside the project directory",
+ "settings.permissions.tool.doom_loop.title": "Doom Loop",
+ "settings.permissions.tool.doom_loop.description": "Detect repeated tool calls with identical input",
+
"workspace.new": "New workspace",
"workspace.type.local": "local",
"workspace.type.sandbox": "sandbox",
diff --git a/packages/app/src/i18n/zh.ts b/packages/app/src/i18n/zh.ts
index e066dbcd9..bd809bdb9 100644
--- a/packages/app/src/i18n/zh.ts
+++ b/packages/app/src/i18n/zh.ts
@@ -30,6 +30,8 @@ export const dict = {
"command.session.next": "下一个会话",
"command.session.archive": "归档会话",
+ "command.palette": "命令面板",
+
"command.theme.cycle": "切换主题",
"command.theme.set": "使用主题: {{theme}}",
"command.theme.scheme.cycle": "切换配色方案",
@@ -391,6 +393,7 @@ export const dict = {
"common.dismiss": "忽略",
"common.requestFailed": "请求失败",
"common.moreOptions": "更多选项",
+ "common.learnMore": "了解更多",
"common.rename": "重命名",
"common.reset": "重置",
"common.delete": "删除",
@@ -408,6 +411,106 @@ export const dict = {
"sidebar.project.recentSessions": "最近会话",
"sidebar.project.viewAllSessions": "查看全部会话",
+ "settings.section.desktop": "桌面",
+ "settings.tab.general": "通用",
+ "settings.tab.shortcuts": "快捷键",
+
+ "settings.general.section.appearance": "外观",
+ "settings.general.section.notifications": "系统通知",
+ "settings.general.section.sounds": "音效",
+
+ "settings.general.row.language.title": "语言",
+ "settings.general.row.language.description": "更改 OpenCode 的显示语言",
+ "settings.general.row.appearance.title": "外观",
+ "settings.general.row.appearance.description": "自定义 OpenCode 在你的设备上的外观",
+ "settings.general.row.theme.title": "主题",
+ "settings.general.row.theme.description": "自定义 OpenCode 的主题。",
+ "settings.general.row.font.title": "字体",
+ "settings.general.row.font.description": "自定义代码块使用的等宽字体",
+
+ "settings.general.notifications.agent.title": "智能体",
+ "settings.general.notifications.agent.description": "当智能体完成或需要注意时显示系统通知",
+ "settings.general.notifications.permissions.title": "权限",
+ "settings.general.notifications.permissions.description": "当需要权限时显示系统通知",
+ "settings.general.notifications.errors.title": "错误",
+ "settings.general.notifications.errors.description": "发生错误时显示系统通知",
+
+ "settings.general.sounds.agent.title": "智能体",
+ "settings.general.sounds.agent.description": "当智能体完成或需要注意时播放声音",
+ "settings.general.sounds.permissions.title": "权限",
+ "settings.general.sounds.permissions.description": "当需要权限时播放声音",
+ "settings.general.sounds.errors.title": "错误",
+ "settings.general.sounds.errors.description": "发生错误时播放声音",
+
+ "settings.shortcuts.title": "键盘快捷键",
+ "settings.shortcuts.reset.button": "重置为默认值",
+ "settings.shortcuts.reset.toast.title": "快捷键已重置",
+ "settings.shortcuts.reset.toast.description": "键盘快捷键已重置为默认设置。",
+ "settings.shortcuts.conflict.title": "快捷键已被占用",
+ "settings.shortcuts.conflict.description": "{{keybind}} 已分配给 {{titles}}。",
+ "settings.shortcuts.unassigned": "未设置",
+ "settings.shortcuts.pressKeys": "按下按键",
+
+ "settings.shortcuts.group.general": "通用",
+ "settings.shortcuts.group.session": "会话",
+ "settings.shortcuts.group.navigation": "导航",
+ "settings.shortcuts.group.modelAndAgent": "模型与智能体",
+ "settings.shortcuts.group.terminal": "终端",
+ "settings.shortcuts.group.prompt": "提示",
+
+ "settings.providers.title": "提供商",
+ "settings.providers.description": "提供商设置将在此处可配置。",
+ "settings.models.title": "模型",
+ "settings.models.description": "模型设置将在此处可配置。",
+ "settings.agents.title": "智能体",
+ "settings.agents.description": "智能体设置将在此处可配置。",
+ "settings.commands.title": "命令",
+ "settings.commands.description": "命令设置将在此处可配置。",
+ "settings.mcp.title": "MCP",
+ "settings.mcp.description": "MCP 设置将在此处可配置。",
+
+ "settings.permissions.title": "权限",
+ "settings.permissions.description": "控制服务器默认可以使用哪些工具。",
+ "settings.permissions.section.tools": "工具",
+ "settings.permissions.toast.updateFailed.title": "更新权限失败",
+
+ "settings.permissions.action.allow": "允许",
+ "settings.permissions.action.ask": "询问",
+ "settings.permissions.action.deny": "拒绝",
+
+ "settings.permissions.tool.read.title": "读取",
+ "settings.permissions.tool.read.description": "读取文件(匹配文件路径)",
+ "settings.permissions.tool.edit.title": "编辑",
+ "settings.permissions.tool.edit.description": "修改文件,包括编辑、写入、补丁和多重编辑",
+ "settings.permissions.tool.glob.title": "Glob",
+ "settings.permissions.tool.glob.description": "使用 glob 模式匹配文件",
+ "settings.permissions.tool.grep.title": "Grep",
+ "settings.permissions.tool.grep.description": "使用正则表达式搜索文件内容",
+ "settings.permissions.tool.list.title": "列表",
+ "settings.permissions.tool.list.description": "列出目录中的文件",
+ "settings.permissions.tool.bash.title": "Bash",
+ "settings.permissions.tool.bash.description": "运行 shell 命令",
+ "settings.permissions.tool.task.title": "Task",
+ "settings.permissions.tool.task.description": "启动子智能体",
+ "settings.permissions.tool.skill.title": "Skill",
+ "settings.permissions.tool.skill.description": "按名称加载技能",
+ "settings.permissions.tool.lsp.title": "LSP",
+ "settings.permissions.tool.lsp.description": "运行语言服务器查询",
+ "settings.permissions.tool.todoread.title": "读取待办",
+ "settings.permissions.tool.todoread.description": "读取待办列表",
+ "settings.permissions.tool.todowrite.title": "更新待办",
+ "settings.permissions.tool.todowrite.description": "更新待办列表",
+ "settings.permissions.tool.webfetch.title": "Web Fetch",
+ "settings.permissions.tool.webfetch.description": "从 URL 获取内容",
+ "settings.permissions.tool.websearch.title": "Web Search",
+ "settings.permissions.tool.websearch.description": "搜索网页",
+ "settings.permissions.tool.codesearch.title": "Code Search",
+ "settings.permissions.tool.codesearch.description": "在网上搜索代码",
+ "settings.permissions.tool.external_directory.title": "外部目录",
+ "settings.permissions.tool.external_directory.description": "访问项目目录之外的文件",
+ "settings.permissions.tool.doom_loop.title": "Doom Loop",
+ "settings.permissions.tool.doom_loop.description": "检测具有相同输入的重复工具调用",
+
"workspace.new": "新建工作区",
"workspace.type.local": "本地",
"workspace.type.sandbox": "沙盒",