Skip to content

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

Closed
etherman-os wants to merge 7 commits into
NousResearch:mainfrom
etherman-os:feat/turkish-locale-v2
Closed

feat(i18n): add Turkish (tr) locale#20306
etherman-os wants to merge 7 commits into
NousResearch:mainfrom
etherman-os:feat/turkish-locale-v2

Conversation

@etherman-os

@etherman-os etherman-os commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Turkish locale file locales/tr.yaml with translations for all static user-facing messages
  • Add "tr" to SUPPORTED_LANGUAGES in agent/i18n.py
  • Add Turkish language aliases (turkish, türkçe, tr-tr) to _LANGUAGE_ALIASES

Changes

  • locales/tr.yaml — new file with Turkish translations for approval.* and gateway.* keys
  • agent/i18n.py — register tr as a supported language + aliases

Translation notes

  • All {placeholder} tokens preserved exactly as in English ({description}, {count}, {error})
  • Shortcut keys adapted to Turkish: [b]ir kez, [o]turum, [h]er zaman, [r]eddet
  • prompt_long/short uses R (uppercase) as default key for "reddet" (deny)

Review checklist

  • All translations natural and clear for Turkish speakers
  • Shortcut key choices make sense
  • Placeholder tokens match English exactly

- 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
@alt-glitch alt-glitch added type/feature New feature or request comp/agent Core agent loop, run_agent.py, prompt builder P3 Low — cosmetic, nice to have labels May 5, 2026
- 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
@etherman-os etherman-os marked this pull request as ready for review May 5, 2026 16:43
@teknium1

teknium1 commented May 6, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #20474. Your Turkish locale commits were cherry-picked onto current main with your authorship preserved in git log.

Salvage notes:

  • Resolved conflicts against the French and Ukrainian locale PRs that landed in the meantime — all three (fr, tr, uk) coexist now.
  • Skipped a few of your small alias-capitalization fix-up commits; the lowercase form matches the existing file convention.
  • Your email was already in AUTHOR_MAP.

Thanks for the contribution!

@teknium1 teknium1 closed this May 6, 2026
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 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