diff options
| author | Adam <[email protected]> | 2026-01-20 10:43:43 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-01-20 17:58:06 -0600 |
| commit | 0f2e8ea2b49fcab8c539449b51c40eea8215c2d3 (patch) | |
| tree | abdad87b9bb3e608d74c6ab478bf76a50b0f6cce /packages/app/src/i18n | |
| parent | be493e8be045f25f38e619b79730f437839752a8 (diff) | |
| download | opencode-0f2e8ea2b49fcab8c539449b51c40eea8215c2d3.tar.gz opencode-0f2e8ea2b49fcab8c539449b51c40eea8215c2d3.zip | |
wip(app): i18n
Diffstat (limited to 'packages/app/src/i18n')
| -rw-r--r-- | packages/app/src/i18n/en.ts | 14 | ||||
| -rw-r--r-- | packages/app/src/i18n/zh.ts | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/packages/app/src/i18n/en.ts b/packages/app/src/i18n/en.ts index 97ab9e0bf..34fec6177 100644 --- a/packages/app/src/i18n/en.ts +++ b/packages/app/src/i18n/en.ts @@ -139,6 +139,7 @@ export const dict = { "common.save": "Save", "common.saving": "Saving...", "common.default": "Default", + "common.attachment": "attachment", "prompt.placeholder.shell": "Enter shell command...", "prompt.placeholder.normal": "Ask anything... \"{{example}}\"", @@ -278,6 +279,8 @@ export const dict = { "toast.model.none.title": "No model selected", "toast.model.none.description": "Connect a provider to summarize this session", + "toast.file.loadFailed.title": "Failed to load file", + "toast.session.share.copyFailed.title": "Failed to copy URL to clipboard", "toast.session.share.success.title": "Session shared", "toast.session.share.success.description": "Share URL copied to clipboard!", @@ -289,6 +292,8 @@ export const dict = { "toast.session.unshare.failed.title": "Failed to unshare session", "toast.session.unshare.failed.description": "An error occurred while unsharing the session", + "toast.session.listFailed.title": "Failed to load sessions for {{project}}", + "toast.update.title": "Update available", "toast.update.description": "A new version of OpenCode ({{version}}) is now available to install.", "toast.update.action.installRestart": "Install and restart", @@ -305,6 +310,8 @@ export const dict = { "error.page.report.discord": "on Discord", "error.page.version": "Version: {{version}}", + "error.globalSync.connectFailed": "Could not connect to server. Is there a server running at `{{url}}`?", + "error.chain.unknown": "Unknown error", "error.chain.causedBy": "Caused by:", "error.chain.apiError": "API error", @@ -332,6 +339,10 @@ export const dict = { "notification.question.description": "{{sessionTitle}} in {{projectName}} has a question", "notification.action.goToSession": "Go to session", + "notification.session.responseReady.title": "Response ready", + "notification.session.error.title": "Session error", + "notification.session.error.fallbackDescription": "An error occurred", + "home.recentProjects": "Recent projects", "home.empty.title": "No recent projects", "home.empty.description": "Get started by opening a local project", @@ -368,6 +379,9 @@ export const dict = { "session.share.copy.copied": "Copied", "session.share.copy.copyLink": "Copy link", + "lsp.tooltip.none": "No LSP servers", + "lsp.label.connected": "{{count}} LSP", + "prompt.loading": "Loading prompt...", "terminal.loading": "Loading terminal...", diff --git a/packages/app/src/i18n/zh.ts b/packages/app/src/i18n/zh.ts index 014fa5353..7ae62350d 100644 --- a/packages/app/src/i18n/zh.ts +++ b/packages/app/src/i18n/zh.ts @@ -138,6 +138,7 @@ export const dict = { "common.save": "保存", "common.saving": "保存中...", "common.default": "默认", + "common.attachment": "附件", "prompt.placeholder.shell": "输入 shell 命令...", "prompt.placeholder.normal": "随便问点什么... \"{{example}}\"", @@ -277,6 +278,8 @@ export const dict = { "toast.model.none.title": "未选择模型", "toast.model.none.description": "请先连接提供商以总结此会话", + "toast.file.loadFailed.title": "加载文件失败", + "toast.session.share.copyFailed.title": "无法复制链接到剪贴板", "toast.session.share.success.title": "会话已分享", "toast.session.share.success.description": "分享链接已复制到剪贴板", @@ -288,6 +291,8 @@ export const dict = { "toast.session.unshare.failed.title": "取消分享失败", "toast.session.unshare.failed.description": "取消分享会话时发生错误", + "toast.session.listFailed.title": "无法加载 {{project}} 的会话", + "toast.update.title": "有可用更新", "toast.update.description": "OpenCode 有新版本 ({{version}}) 可安装。", "toast.update.action.installRestart": "安装并重启", @@ -304,6 +309,8 @@ export const dict = { "error.page.report.discord": "在 Discord 上", "error.page.version": "版本: {{version}}", + "error.globalSync.connectFailed": "无法连接到服务器。是否有服务器正在 `{{url}}` 运行?", + "error.chain.unknown": "未知错误", "error.chain.causedBy": "原因:", "error.chain.apiError": "API 错误", @@ -329,6 +336,10 @@ export const dict = { "notification.question.description": "{{sessionTitle}}({{projectName}})有一个问题", "notification.action.goToSession": "前往会话", + "notification.session.responseReady.title": "回复已就绪", + "notification.session.error.title": "会话错误", + "notification.session.error.fallbackDescription": "发生错误", + "home.recentProjects": "最近项目", "home.empty.title": "没有最近项目", "home.empty.description": "通过打开本地项目开始使用", @@ -365,6 +376,9 @@ export const dict = { "session.share.copy.copied": "已复制", "session.share.copy.copyLink": "复制链接", + "lsp.tooltip.none": "没有 LSP 服务器", + "lsp.label.connected": "{{count}} LSP", + "prompt.loading": "正在加载提示...", "terminal.loading": "正在加载终端...", |
