wip(app): i18n

This commit is contained in:
Adam
2026-01-20 10:10:43 -06:00
parent 7a359ff67c
commit 7e8e4d9938
5 changed files with 195 additions and 94 deletions

View File

@@ -289,6 +289,38 @@ export const dict = {
"toast.update.action.installRestart": "Install and restart",
"toast.update.action.notYet": "Not yet",
"error.page.title": "Something went wrong",
"error.page.description": "An error occurred while loading the application.",
"error.page.details.label": "Error Details",
"error.page.action.restart": "Restart",
"error.page.action.checking": "Checking...",
"error.page.action.checkUpdates": "Check for updates",
"error.page.action.updateTo": "Update to {{version}}",
"error.page.report.prefix": "Please report this error to the OpenCode team",
"error.page.report.discord": "on Discord",
"error.page.version": "Version: {{version}}",
"error.chain.unknown": "Unknown error",
"error.chain.causedBy": "Caused by:",
"error.chain.apiError": "API error",
"error.chain.status": "Status: {{status}}",
"error.chain.retryable": "Retryable: {{retryable}}",
"error.chain.responseBody": "Response body:\n{{body}}",
"error.chain.didYouMean": "Did you mean: {{suggestions}}",
"error.chain.modelNotFound": "Model not found: {{provider}}/{{model}}",
"error.chain.checkConfig": "Check your config (opencode.json) provider/model names",
"error.chain.mcpFailed":
"MCP server \"{{name}}\" failed. Note, OpenCode does not support MCP authentication yet.",
"error.chain.providerAuthFailed": "Provider authentication failed ({{provider}}): {{message}}",
"error.chain.providerInitFailed": "Failed to initialize provider \"{{provider}}\". Check credentials and configuration.",
"error.chain.configJsonInvalid": "Config file at {{path}} is not valid JSON(C)",
"error.chain.configJsonInvalidWithMessage": "Config file at {{path}} is not valid JSON(C): {{message}}",
"error.chain.configDirectoryTypo":
"Directory \"{{dir}}\" in {{path}} is not valid. Rename the directory to \"{{suggestion}}\" or remove it. This is a common typo.",
"error.chain.configFrontmatterError": "Failed to parse frontmatter in {{path}}:\n{{message}}",
"error.chain.configInvalid": "Config file at {{path}} is invalid",
"error.chain.configInvalidWithMessage": "Config file at {{path}} is invalid: {{message}}",
"notification.permission.title": "Permission required",
"notification.permission.description": "{{sessionTitle}} in {{projectName}} needs permission",
"notification.question.title": "Question",
@@ -312,6 +344,20 @@ export const dict = {
"session.context.addToContext": "Add {{selection}} to context",
"session.header.search.placeholder": "Search {{project}}",
"session.share.popover.title": "Publish on web",
"session.share.popover.description.shared": "This session is public on the web. It is accessible to anyone with the link.",
"session.share.popover.description.unshared": "Share session publicly on the web. It will be accessible to anyone with the link.",
"session.share.action.share": "Share",
"session.share.action.publish": "Publish",
"session.share.action.publishing": "Publishing...",
"session.share.action.unpublish": "Unpublish",
"session.share.action.unpublishing": "Unpublishing...",
"session.share.action.view": "View",
"session.share.copy.copied": "Copied",
"session.share.copy.copyLink": "Copy link",
"prompt.loading": "Loading prompt...",
"terminal.loading": "Loading terminal...",

View File

@@ -288,6 +288,36 @@ export const dict = {
"toast.update.action.installRestart": "安装并重启",
"toast.update.action.notYet": "稍后",
"error.page.title": "出了点问题",
"error.page.description": "加载应用程序时发生错误。",
"error.page.details.label": "错误详情",
"error.page.action.restart": "重启",
"error.page.action.checking": "检查中...",
"error.page.action.checkUpdates": "检查更新",
"error.page.action.updateTo": "更新到 {{version}}",
"error.page.report.prefix": "请将此错误报告给 OpenCode 团队",
"error.page.report.discord": "在 Discord 上",
"error.page.version": "版本: {{version}}",
"error.chain.unknown": "未知错误",
"error.chain.causedBy": "原因:",
"error.chain.apiError": "API 错误",
"error.chain.status": "状态: {{status}}",
"error.chain.retryable": "可重试: {{retryable}}",
"error.chain.responseBody": "响应内容:\n{{body}}",
"error.chain.didYouMean": "你是不是想输入: {{suggestions}}",
"error.chain.modelNotFound": "未找到模型: {{provider}}/{{model}}",
"error.chain.checkConfig": "请检查你的配置 (opencode.json) 中的 provider/model 名称",
"error.chain.mcpFailed": "MCP 服务器 \"{{name}}\" 启动失败。注意: OpenCode 暂不支持 MCP 认证。",
"error.chain.providerAuthFailed": "提供商认证失败 ({{provider}}): {{message}}",
"error.chain.providerInitFailed": "无法初始化提供商 \"{{provider}}\"。请检查凭据和配置。",
"error.chain.configJsonInvalid": "配置文件 {{path}} 不是有效的 JSON(C)",
"error.chain.configJsonInvalidWithMessage": "配置文件 {{path}} 不是有效的 JSON(C): {{message}}",
"error.chain.configDirectoryTypo": "{{path}} 中的目录 \"{{dir}}\" 无效。请将目录重命名为 \"{{suggestion}}\" 或移除它。这是一个常见拼写错误。",
"error.chain.configFrontmatterError": "无法解析 {{path}} 中的 frontmatter:\n{{message}}",
"error.chain.configInvalid": "配置文件 {{path}} 无效",
"error.chain.configInvalidWithMessage": "配置文件 {{path}} 无效: {{message}}",
"notification.permission.title": "需要权限",
"notification.permission.description": "{{sessionTitle}}{{projectName}})需要权限",
"notification.question.title": "问题",
@@ -311,6 +341,20 @@ export const dict = {
"session.context.addToContext": "将 {{selection}} 添加到上下文",
"session.header.search.placeholder": "搜索 {{project}}",
"session.share.popover.title": "发布到网页",
"session.share.popover.description.shared": "此会话已在网页上公开。任何拥有链接的人都可以访问。",
"session.share.popover.description.unshared": "在网页上公开分享此会话。任何拥有链接的人都可以访问。",
"session.share.action.share": "分享",
"session.share.action.publish": "发布",
"session.share.action.publishing": "正在发布...",
"session.share.action.unpublish": "取消发布",
"session.share.action.unpublishing": "正在取消发布...",
"session.share.action.view": "查看",
"session.share.copy.copied": "已复制",
"session.share.copy.copyLink": "复制链接",
"prompt.loading": "正在加载提示...",
"terminal.loading": "正在加载终端...",