Skip to content

feat(i18n): add Turkish (tr) locale#20474

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-709c268b
May 6, 2026
Merged

feat(i18n): add Turkish (tr) locale#20474
teknium1 merged 2 commits into
mainfrom
hermes/hermes-709c268b

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 6, 2026

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 catalog
  • agent/i18n.py: add tr to SUPPORTED_LANGUAGES + aliases (turkish, türkçe, tr-tr)
  • hermes_cli/config.py: update supported-language comment
  • tests/agent/test_i18n.py: cover tr alias + translation round-trip
  • website/docs/user-guide/configuration.md: document tr

Salvage notes

The original PR predated the French and Ukrainian locales landing, so it regressed both fr and uk out of SUPPORTED_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 passed
  • E2E: all 8 locale catalogs load cleanly; t('approval.denied', lang='tr')✗ Reddedildi; fr/uk still render correctly; case-insensitive aliases (Turkish, TÜRKÇE, tr-TR) all normalize to tr

- 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
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder comp/cli CLI entry point, hermes_cli/, setup wizard labels May 6, 2026
@teknium1 teknium1 merged commit 39f451f into main May 6, 2026
10 of 12 checks passed
@teknium1 teknium1 deleted the hermes/hermes-709c268b branch May 6, 2026 00:29
@RyanRana RyanRana mentioned this pull request May 6, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants