test(i18n): add comprehensive tests and documentation for i18n system

- Add 45 tests covering translation files, translate(), Accept-Language
  parsing, language detection, l10n formatters, and API endpoints
- Create InternationalizationGuide.md documentation
- Fix linting issues (E741, PLW2901)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-09 23:35:32 +00:00
parent ff76855f29
commit c286e1b394
4 changed files with 650 additions and 4 deletions
+2 -2
View File
@@ -225,8 +225,8 @@ def _parse_accept_language(header: str) -> str | None:
return None
entries: list[tuple[float, str]] = []
for part in header.split(","):
part = part.strip()
for raw_part in header.split(","):
part = raw_part.strip()
if not part:
continue
if ";q=" in part: