mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:09:24 +08:00
* fix(i18n): accept Korean as a backend interface language The web picker offers Korean (added in #2359), but the backend UiLanguage contract, its normalizers and the settings spec never learned "ko". Choosing Korean and applying settings therefore fails with HTTP 422 on PUT /api/settings/ui, and the saved language falls back to English on the next load. Register "ko" in the same seams Japanese used in #2213: UiLanguage and _normalize_language() in interface_settings.py, the launch-settings normalizer, and _LANGUAGE_CHOICES in settings_spec.py, then regenerate the frontend API contracts. Add Korean to the existing router and launch-settings tests, and add a registry test that fails whenever a web APP_LANGUAGES code is missing from the backend contract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style: apply ruff format Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>