From c7669d9d6d8aaf81d8dc62bc9e4e87b030e35499 Mon Sep 17 00:00:00 2001 From: watchakorn-18k Date: Mon, 26 Oct 2026 09:40:43 +0700 Subject: [PATCH] M10: cover Thai in the no-plural-forms test Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_015wxxFg3gana4zaUKnyirTC --- crates/ui-egui/src/i18n_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/i18n_tests.rs b/crates/ui-egui/src/i18n_tests.rs index fa7da946..0d8b66db 100644 --- a/crates/ui-egui/src/i18n_tests.rs +++ b/crates/ui-egui/src/i18n_tests.rs @@ -441,7 +441,7 @@ fn japanese_korean_and_chinese_have_no_plural_forms() { assert_eq!(code("system", Some("ja-JP")), "ja"); assert_eq!(code("system", Some("ko_KR.UTF-8")), "ko"); assert_eq!(code("system", Some("ja,en-US")), "ja"); - for code in ["ja", "ko", "zh-Hans"] { + for code in ["ja", "ko", "th", "zh-Hans"] { let lang = LANGS.iter().position(|l| l.code == code).unwrap(); assert!(!plural_one(lang, 0) && !plural_one(lang, 1) && !plural_one(lang, 2), "{code}"); let ones: Vec<_> = LANGS[lang].ui.iter().filter(|(_, t)| matches!(t, Text::Plural { one: Some(_), .. })).map(|(k, _)| k).collect();