feat(i18n): add Turkish (tr) locale#20474
Merged
Merged
Conversation
- Add locales/tr.yaml with Turkish translations for all approval.* and gateway.* keys - Register 'tr' in SUPPORTED_LANGUAGES - Add Turkish aliases: turkish, türkçe, tr-tr
- hermes_cli/config.py: add tr to supported languages comment - locales/en.yaml: add tr to locale file list comment - tests/agent/test_i18n.py: add Turkish alias tests + explicit lang test - website/docs/user-guide/configuration.md: add tr to supported values
3 tasks
4 tasks
1 task
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Salvages #20306 (@etherman-os) onto current main.
Summary
Adds Turkish (
tr) as the 8th supported UI locale alongside en/zh/ja/de/es/fr/uk. Catalog parity verified (18 keys each).Changes
locales/tr.yaml: new catalogagent/i18n.py: addtrtoSUPPORTED_LANGUAGES+ aliases (turkish,türkçe,tr-tr)hermes_cli/config.py: update supported-language commenttests/agent/test_i18n.py: cover tr alias + translation round-tripwebsite/docs/user-guide/configuration.md: documenttrSalvage notes
The original PR predated the French and Ukrainian locales landing, so it regressed both
frandukout ofSUPPORTED_LANGUAGES/ docs / config comments / test assertions. Resolved conflicts by keeping all three (fr,tr,uk). Skipped 5 small fix-up commits from the author that had been iterating on alias capitalization — the final lowercase form is what my conflict resolution kept (matches the existing file convention).Credit: @etherman-os (original authorship preserved on both feature commits).
Validation
tests/agent/test_i18n.py: 27/27 passedt('approval.denied', lang='tr')→✗ Reddedildi; fr/uk still render correctly; case-insensitive aliases (Turkish,TÜRKÇE,tr-TR) all normalize totr