Community language packs: format, loading and validation
Language packs are standalone, Apache-2.0 JSON modules that follow a versioned schema. They can be loaded lazily by dynamic import or URL. A validator reports missing, extra and badly formed keys, plural categories and placeholders, so community contributions can be checked in CI.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid in en, with a list of example community packs (sw, uk, vi, pt-BR, ar) available to load lazily.
Expected behavior
Loading a pack fetches it once and switches the grid to it. The validation panel lists coverage percentage, missing keys, plural category gaps and placeholder mismatches. Malformed JSON produces an error and the previous locale is kept.
Planned API surface
loadLanguagePack(tag|url)languagePackLoadedvalidateLanguagePack(pack)pack schemaVersionpack metadata (authors, license, coverage)Acceptance criteria
- The pack schema is published as JSON Schema and versioned. (pending)
- The validator checks key coverage, placeholder parity and required plural categories for each locale. (pending)
- A pack whose schemaVersion is incompatible is rejected with a clear message. (pending)
- Loaded packs are cached for the session. (pending)