test: Add tests for user language detection and normalization

This commit is contained in:
Paul Gauthier (aider) 2025-05-10 11:46:17 -07:00
parent 64f218a06e
commit 1127b8b559
2 changed files with 108 additions and 1 deletions

View file

@ -1103,7 +1103,7 @@ class Coder:
if lang:
return self.normalize_language(lang)
except Exception:
pass # pragma: no cover
pass
# Environment variables
for env_var in ("LANG", "LANGUAGE", "LC_ALL", "LC_MESSAGES"):