Files
DeepTutor/tests
Rudy Celekli fd7ef5e4c5 fix(web_source): recognize unlisted regional locales in URL language prefix
extract_url_language_and_stem tested the normalized language string with
'first_norm in SUPPORTED_LANGUAGE_PAIRS', but that constant is a set of
frozensets, so the clause was always False. A regional variant not listed
in _CANONICAL_LANGUAGES (e.g. /fr-be/, /en_US/) was therefore not treated
as a language and bilingual pairings were missed. Test the normalized
language against a flattened set of supported languages instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 00:36:55 -05:00
..
2026-10-30 02:28:18 +01:00