CommandCodeAI / CommandCodeAI/desktop

Add Turkish (Türkçe) UI localization

未关闭
#43 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@aliarain 已经在做这个了。

开始于 2026年9月7日。

主要语言
Shell
星标
80
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

Add Turkish (Türkçe) UI localization

Feature request — please consider adding an official Turkish language option to the Command Code desktop app.

What I did

The desktop app (v0.1.19) currently ships an English-only UI; the locales/*.pak files only cover Chromium's built-in dialogs, and there is no language setting in the app. To help out, I localized the bundled renderer UI strings to Turkish and verified them:

  • Translated the main UI strings across the workspace, settings, browser/design, source, terminal-find, auth and onboarding screens (~712 unique strings).
  • Replaced only exact string literals in the renderer bundles (quoted strings), leaving code logic untouched.
  • Verified every modified bundle still parses cleanly and that aria-label/selector references stay consistent.

The full English → Turkish mapping is attached as commandcode-tr.json.

Notes for integration

  • Strings that are intentionally left in English: brand/proper names (Command Code, Claude, Anthropic, GitHub Copilot, OpenAI, Playwright, etc.), file names (README.md, Cargo.toml, ...), theme/font names (Pierre Dark, Geist, ...), and internal enum/mode values (e.g. permission mode values such as ask, plan).
  • A few strings are embedded inside template literals or used as keys/selectors (e.g. the composer aria-label), so they need the same treatment on both sides when wiring into an i18n system.
  • Translation pairs are provided as a plain en -> tr map so they can be dropped into whatever i18n mechanism the app uses.

How I applied it (for reference)

Packaged-app localization via careful string replacement in resources/app/out/renderer/assets/*.js, using a tokenizer that only rewrites complete quoted string tokens (handles single/double quotes, template literals and ${...} expressions, and skips regex literals).

I'd be glad to refine the translations, split them by screen, or adapt them to your i18n format if you tell me what the app's localization pipeline looks like.

Attached: commandcode-tr.json (712 English → Turkish pairs)

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。