The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(web-chat): reply-language directive for de, ja, ko, pl and tr
M3gA-Mindb89fea70cd68
diff --git a/crates/openhuman-core/src/web_chat/session.rs b/crates/openhuman-core/src/web_chat/session.rsindex be242edb8c..17d7103518 100644--- a/crates/openhuman-core/src/web_chat/session.rs+++ b/crates/openhuman-core/src/web_chat/session.rs@@ -179,13 +179,18 @@ pub(crate) fn locale_reply_directive(locale: &str) -> Option<String> {let language = match locale.trim() {"ar" => "Arabic","bn" => "Bengali",+ "de" => "German","es" => "Spanish","fr" => "French","hi" => "Hindi","id" => "Indonesian","it" => "Italian",+ "ja" => "Japanese",+ "ko" => "Korean",+ "pl" => "Polish","pt" => "Portuguese","ru" => "Russian",+ "tr" => "Turkish","zh-CN" | "zh" => "Simplified Chinese",_ => return None,};diff --git a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rsindex 18cc1720ac..d7d95555f5 100644--- a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs@@ -99,6 +99,20 @@ fn locale_reply_directive_renders_known_locales() {assert!(zh.contains("Simplified Chinese"));}+/// Every non-English locale the app offers (`app/src/lib/i18n/types.ts`) gets+/// a directive; de, ja, ko, pl and tr used to fall through to none.+#[test]+fn locale_reply_directive_covers_every_app_locale() {+ for locale in [+ "zh-CN", "hi", "es", "ar", "fr", "bn", "pt", "de", "ru", "id", "it", "ja", "ko", "pl", "tr",+ ] {+ assert!(+ locale_reply_directive(locale).is_some(),+ "no reply directive for app locale {locale}"+ );+ }+}+// ── PTT field additions (Task 1 of global-ptt plan) ─────────────────────────#[test]