Skip to content

中文翻译不完善:缺少 101 个翻译键及 3 处错误翻译(涵盖经典主题和新设计) #31660

Closed as not planned

Description

问题描述

在对 OpenCode 的中文(简体 zh.ts / zh-CN.json 和繁体 zht.ts / zh-TW.json)翻译文件进行全面检查后,发现以下不完善的地方:


1. packages/app(新设计 / New Design)

简体中文 zh.ts 缺少 93 个翻译键,繁体中文 zht.ts 缺少 103 个翻译键

1.1 WSL 相关(55 个键完全缺失)

  • wsl.server.add / wsl.server.addShort / wsl.server.label / wsl.server.menu.label / wsl.server.retryStart / wsl.server.updating
  • 所有 wsl.onboarding.* 键(约 49 个),包括:
    • wsl.onboarding.step.distro / wsl.onboarding.step.opencode
    • wsl.onboarding.checkingRuntime / wsl.onboarding.restartRequired
    • wsl.onboarding.ready / wsl.onboarding.required
    • wsl.onboarding.installingDistro / wsl.onboarding.checkingDistro
    • wsl.onboarding.opencodeReady / wsl.onboarding.installOpencode
    • 等等

1.2 设置页面(20 个键缺失)

  • settings.general.section.advanced
  • settings.general.row.shell.title / .description / .autoDefault / .terminalOnly
  • settings.general.row.showFileTree.title / .description
  • settings.general.row.showNavigation.title / .description
  • settings.general.row.showSearch.title / .description
  • settings.general.row.showTerminal.title / .description
  • settings.general.row.showStatus.title / .description
  • settings.general.row.showCustomAgents.title / .description
  • settings.general.row.newLayoutDesigns.title / .description
  • settings.general.row.pinchZoom.title / .description
  • settings.updates.action.downloading / .installing

1.3 其他缺失键

  • command.project.previous / command.project.next / command.project.index
  • common.clear
  • session.child.promptDisabled / session.child.backToParent
  • session.review.noUncommittedChanges / session.review.noBranchChanges
  • session.new.project.new / session.new.project.search / session.new.project.add
  • home.sessions.empty.description
  • sidebar.empty.title / sidebar.empty.description
  • error.page.description.localServerStartup / error.page.action.exportLogs
  • language.uk

1.4 错误翻译

  • common.continue 被翻译为 "提交",应为 "继续"
  • settings.general.row.terminalFont.title 保留英文 "Terminal Font",应翻译为 "终端字体"
  • settings.general.row.terminalFont.description 保留英文 "Customise the font used in the terminal",应翻译为 "自定义终端使用的字体"

2. packages/console(经典主题 / Classic Theme)

简体中文 zh.ts 和繁体中文 zht.ts 各缺少 2 个键:

  • nav.go
  • common.contactUs

3. packages/ui

简体中文 zh.ts 和繁体中文 zht.ts 各缺少 6 个键:

  • ui.sessionReview.title.git
  • ui.sessionReview.title.branch
  • ui.sessionTurn.diffs.changed
  • ui.sessionTurn.diffs.showAll
  • ui.sessionTurn.diffs.showLess
  • ui.sessionTurn.diffs.more

建议

  1. 补全所有缺失的中文翻译键
  2. 修正 common.continue 的错误翻译
  3. 翻译 terminalFont 相关的英文残留
  4. 同时更新简体和繁体中文文件

我愿意提交 PR 来修复这些问题。

Activity

  1. github-actions commented on Aug 10, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions