Skip to content

feat(app): add Turkish (tr) locale for app and ui packages#15278

Merged
adamdotdevin merged 3 commits intoanomalyco:devfrom
vaur94:i18n/add-turkish-locale
Feb 27, 2026
Merged

feat(app): add Turkish (tr) locale for app and ui packages#15278
adamdotdevin merged 3 commits intoanomalyco:devfrom
vaur94:i18n/add-turkish-locale

Conversation

@vaur94
Copy link
Contributor

@vaur94 vaur94 commented Feb 26, 2026

Issue for this PR

Closes # N/A — Turkish locale was missing from packages/app and packages/ui while already present in packages/console and packages/web.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds Turkish (Türkçe) locale to the app and shared UI packages. Turkish was already supported in packages/console (tr.ts) and packages/web (tr.json) but was missing from the two packages that power the desktop app and web interface.

Changes:

  • packages/app/src/i18n/tr.ts — Full Turkish translation of all 825+ app keys
  • packages/ui/src/i18n/tr.ts — Full Turkish translation of all 118 UI component keys
  • packages/app/src/context/language.tsx — Registers tr in the Locale type, LOCALES array, LABEL_KEY map, DICT merged dictionary, localeMatchers, and PARITY_CHECK
  • packages/app/src/i18n/en.ts — Adds "language.tr": "Türkçe" to the base English dictionary
  • packages/app/src/i18n/parity.test.ts — Includes tr in the parity test suite

How did you verify your code works?

  • Parity test passes: bun test src/i18n/parity.test.ts → 1 pass, 0 fail, 64 expect() calls
  • TypeScript type check passes with no errors in tr.ts or language.tsx
  • Vite build succeeds

Screenshots / recordings

N/A — i18n string additions only, no UI layout changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI review requested due to automatic review settings February 26, 2026 20:18
@vaur94 vaur94 requested a review from adamdotdevin as a code owner February 26, 2026 20:18
@github-actions github-actions bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Feb 26, 2026
@github-actions
Copy link
Contributor

Hey! Your PR title i18n: add Turkish (tr) locale for app and ui packages doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Turkish (tr) locale support to the main app and shared UI package, wiring it into the app’s language context and parity tests so Turkish can be selected/detected like the other supported locales.

Changes:

  • Add new Turkish translation dictionaries for packages/app and packages/ui
  • Register tr in the app language context (types, locale list, labels, merged dictionaries, matchers, parity check)
  • Extend base English dictionary and parity test coverage to include Turkish

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/ui/src/i18n/tr.ts Adds Turkish UI-component translation dictionary
packages/app/src/i18n/tr.ts Adds Turkish app translation dictionary
packages/app/src/context/language.tsx Registers tr locale and merges app+ui dictionaries
packages/app/src/i18n/en.ts Adds "language.tr" label to the base dictionary
packages/app/src/i18n/parity.test.ts Includes tr locale in parity checks
Comments suppressed due to low confidence (6)

packages/ui/src/i18n/tr.ts:6

  • Turkish translation here drops required diacritics (e.g. "degisiklikleri"). The UI uses full Unicode in other locales, and this PR already includes "Türkçe", so it should be safe to use proper Turkish spelling ("değişiklikleri").
  "ui.sessionReview.title": "Oturum degisiklikleri",

packages/ui/src/i18n/tr.ts:40

  • Spelling issue in Turkish string: "planlanyor" is a typo. This should be corrected (and ideally use Turkish diacritics consistently).
  "ui.sessionTurn.status.planning": "Sonraki adimlar planlanyor",

packages/ui/src/i18n/tr.ts:122

  • Typo in placeholder text: "Cevabnizi" is missing a character. Please fix the spelling (and consider using proper Turkish casing/diacritics).
  "ui.question.custom.placeholder": "Cevabnizi yazin...",

packages/app/src/i18n/tr.ts:53

  • Typo in Turkish translation: "bagalama" should be "baglama" (extra 'a'). This impacts the UI label shown for adding a selection to context.
  "command.context.addSelection": "Secimi bagalama ekle",
  "command.context.addSelection.description": "Mevcut dosyadan secili satirlari ekle",

packages/app/src/i18n/tr.ts:518

  • Same typo as earlier: "bagalama" should be "baglama" (extra 'a'). Please keep these labels consistent across the dictionary.
  "session.context.addToContext": "{{selection}} bagalama ekle",
  "session.todo.title": "Gorevler",

packages/app/src/i18n/tr.ts:816

  • Typo in Turkish translation: "eslesyor" is missing a letter (should be "eslesiyor").
  "workspace.reset.success.description": "Calisma alani artik varsayilan dalla eslesyor.",
  "workspace.error.stillPreparing": "Calisma alani hala hazirlaniyor",

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vaur94 vaur94 changed the title i18n: add Turkish (tr) locale for app and ui packages feat(app): add Turkish (tr) locale for app and ui packages Feb 26, 2026
@github-actions github-actions bot removed needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Feb 26, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Ugur added 2 commits February 26, 2026 23:40
Replace ASCII-only Turkish characters with proper diacritics (ğ, ş, ç,
ı, ö, ü, İ, Ş, Ç) throughout app and ui translation files.
@adamdotdevin adamdotdevin merged commit a325c9a into anomalyco:dev Feb 27, 2026
9 checks passed
praxstack pushed a commit to praxstack/opencode that referenced this pull request Feb 28, 2026
jonathanmiddleton pushed a commit to jonathanmiddleton/opencode that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants