mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
feat(i18n): add Turkish (tr) locale
- 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
This commit is contained in:
parent
fab3ad9777
commit
985133852a
2 changed files with 27 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ Language resolution order:
|
|||
3. ``display.language`` from config.yaml
|
||||
4. ``"en"`` (baseline)
|
||||
|
||||
Supported languages: en, zh, ja, de, es, fr, uk. Unknown values fall back to en.
|
||||
Supported languages: en, zh, ja, de, es, fr, tr, uk. Unknown values fall back to en.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
|
@ -39,7 +39,7 @@ from typing import Any
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
SUPPORTED_LANGUAGES: tuple[str, ...] = ("en", "zh", "ja", "de", "es", "fr", "uk")
|
||||
SUPPORTED_LANGUAGES: tuple[str, ...] = ("en", "zh", "ja", "de", "es", "fr", "tr", "uk")
|
||||
DEFAULT_LANGUAGE = "en"
|
||||
|
||||
# Accept a few natural aliases so users who type "chinese" / "zh-CN" / "jp"
|
||||
|
|
@ -52,6 +52,7 @@ _LANGUAGE_ALIASES: dict[str, str] = {
|
|||
"spanish": "es", "español": "es", "espanol": "es", "es-es": "es", "es-mx": "es",
|
||||
"french": "fr", "français": "fr", "france": "fr", "fr-fr": "fr", "fr-be": "fr", "fr-ca": "fr", "fr-ch": "fr",
|
||||
"ukrainian": "uk", "ukrainisch": "uk", "українська": "uk", "uk-ua": "uk", "ua": "uk",
|
||||
"turkish": "tr", "türkçe": "tr", "tr-tr": "tr",
|
||||
}
|
||||
|
||||
_catalog_cache: dict[str, dict[str, str]] = {}
|
||||
|
|
|
|||
24
locales/tr.yaml
Normal file
24
locales/tr.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Hermes statik mesaj katalogu -- Turkce
|
||||
# See locales/en.yaml for the source of truth; keep keys in sync.
|
||||
|
||||
approval:
|
||||
dangerous_header: "⚠️ TEHLİKELİ KOMUT: {description}"
|
||||
choose_long: " [b]ir kez | [o]turum | [h]er zaman | [r]eddet"
|
||||
choose_short: " [b]ir kez | [o]turum | [r]eddet"
|
||||
prompt_long: " Seçim [b/o/h/R]: "
|
||||
prompt_short: " Seçim [b/o/R]: "
|
||||
timeout: " ⏱ Zaman aşımı — komut reddedildi"
|
||||
allowed_once: " ✓ Bir kez izin verildi"
|
||||
allowed_session: " ✓ Bu oturum için izin verildi"
|
||||
allowed_always: " ✓ Kalıcı izin listesine eklendi"
|
||||
denied: " ✗ Reddedildi"
|
||||
cancelled: " ✗ İptal edildi"
|
||||
blocklist_message: "Bu komut koşulsuz engelleme listesinde ve onaylanamaz."
|
||||
|
||||
gateway:
|
||||
approval_expired: "⚠️ Onay süresi doldu (ajan artık beklemiyor). Ajanın tekrar denemesini isteyin."
|
||||
draining: "⏳ Yeniden başlatmadan önce {count} aktif ajan bekleniyor..."
|
||||
goal_cleared: "✓ Hedef temizlendi."
|
||||
no_active_goal: "Aktif hedef yok."
|
||||
config_read_failed: "⚠️ config.yaml okunamadı: {error}"
|
||||
config_save_failed: "⚠️ Yapılandırma kaydedilemedi: {error}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue