fix(provider): split CN/global endpoints for Chinese provider variants (#542)

* fix(providers): add CN/global endpoint variants for Chinese vendors

* fix(onboard): deduplicate provider key-url match arms

* chore(i18n): normalize non-English literals to English
This commit is contained in:
Chummy 2026-02-17 22:51:51 +08:00 committed by GitHub
parent 93d9d0de06
commit 85de9b5625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 373 additions and 45 deletions

View file

@ -1085,7 +1085,7 @@ mod tests {
"sender": { "sender_id": { "open_id": "ou_user" } },
"message": {
"message_type": "text",
"content": "{\"text\":\"你好世界 🌍\"}",
"content": "{\"text\":\"Hello world 🌍\"}",
"chat_id": "oc_chat",
"create_time": "1000"
}
@ -1094,7 +1094,7 @@ mod tests {
let msgs = ch.parse_event_payload(&payload);
assert_eq!(msgs.len(), 1);
assert_eq!(msgs[0].content, "你好世界 🌍");
assert_eq!(msgs[0].content, "Hello world 🌍");
}
#[test]