trilium/scripts/translation
Elian Doran 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) <noreply@anthropic.com>
2026-08-20 13:26:02 +03:00
..
check-translation-coverage.ts feat(website): offer every language Weblate reports as translated 2026-08-20 11:01:19 +03:00
create-po-file.sh chore(regroup): clean up translation scripts 2025-12-06 09:43:54 +02:00
import-translations-from-weblate-csv.ts chore(scripts): add proper typechecking 2025-12-08 14:13:18 +02:00
manage-readme.ts feat(scripts): check translation coverage 2026-01-04 23:38:50 +02:00
utils.spec.ts fix(scripts): read every page of the Weblate language stats 2026-08-20 13:26:02 +03:00
utils.ts fix(scripts): read every page of the Weblate language stats 2026-08-20 13:26:02 +03:00