Patch Changes
-
#71
8272a4dThanks @JounQin! - fix: send the genericzhas the Chinesesource_langDeepL does not accept the target-only script variants (
zh-Hans/zh-Hant) as
a Chinese source hint: it behaves exactly as ifsource_langwere omitted.
SOURCE_LANG_MAPis derived fromTARGET_LANG_MAPand only overrodeENand
PT, soZH,ZH-HANSandZH-HANTall resolved to those target forms.On ambiguous mixed-script Chinese, auto-detection then reads the Latin terms as
English, and with an English target the oneshot endpoint returns the input
unchanged with HTTP 200 — a silent no-op that callers cannot tell apart from a
successful translation.Mapping the three keys to the generic
zhfixes it for both Simplified and
Traditional.TARGET_LANG_MAPis untouched.