feat(app): add Turkish (tr) locale for app and ui packages#15278
feat(app): add Turkish (tr) locale for app and ui packages#15278adamdotdevin merged 3 commits intoanomalyco:devfrom
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
There was a problem hiding this comment.
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/appandpackages/ui - Register
trin 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.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Replace ASCII-only Turkish characters with proper diacritics (ğ, ş, ç, ı, ö, ü, İ, Ş, Ç) throughout app and ui translation files.
…#15278) Co-authored-by: Ugur <ugur@example.com>
…#15278) Co-authored-by: Ugur <ugur@example.com>
Issue for this PR
Closes # N/A — Turkish locale was missing from
packages/appandpackages/uiwhile already present inpackages/consoleandpackages/web.Type of change
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) andpackages/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 keyspackages/ui/src/i18n/tr.ts— Full Turkish translation of all 118 UI component keyspackages/app/src/context/language.tsx— Registerstrin the Locale type, LOCALES array, LABEL_KEY map, DICT merged dictionary, localeMatchers, and PARITY_CHECKpackages/app/src/i18n/en.ts— Adds"language.tr": "Türkçe"to the base English dictionarypackages/app/src/i18n/parity.test.ts— Includestrin the parity test suiteHow did you verify your code works?
bun test src/i18n/parity.test.ts→ 1 pass, 0 fail, 64 expect() callsScreenshots / recordings
N/A — i18n string additions only, no UI layout changes.
Checklist