Files
Trilium/scripts
Elian DoranandClaude Opus 5 768bc3946e fix(scripts): read every page of the Weblate language stats
`getLanguageStats()` returned the first response page, so anything past it was
invisible to both callers. The coverage gate would pass by never seeing the
languages it was meant to catch, and the README language bar would quietly drop
them.

Weblate serves 50 translations per page and each component is at 40, so the
current lists are complete and nothing was missed. That is ten languages of
headroom, and a language appears whenever someone starts translating one.

Follow `next` until it runs out, and report the count actually read. A non-OK
response now names the URL rather than surfacing as a JSON parse error on the
error body.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-08-20 13:26:02 +03:00
..
2026-04-22 14:43:10 +03:00