waybetter/packages/waybetter/languages.schema.json
CRT ff950511a3 i18n: supported and community language tiers
Automatic language choices resolve only to supported languages; community
translations are listed apart in Settings and offered as a one-click switch.
waybetter i18n check reads `supported` and generates `tier` into languages.json.
2026-09-30 15:48:11 +07:00

23 lines
1.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://waybetter.fyi/schema/languages.schema.json",
"title": "wayBetter generated language list (locales/languages.json)",
"description": "Generated by `waybetter i18n check --write`; do not edit. English first, then the other catalogs by English name.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["code", "name", "englishName", "dir", "status", "tier", "reviewers", "coverage"],
"properties": {
"code": { "type": "string" },
"name": { "type": "string" },
"englishName": { "type": "string" },
"dir": { "enum": ["ltr", "rtl"] },
"status": { "description": "The catalog's own review status: source, machine or reviewed.", "enum": ["source", "machine", "reviewed"] },
"tier": { "description": "supported: listed in `supported` of waybetter.i18n.json; automatic language choices resolve to it. community: machine-drafted and not yet reviewed by a native speaker; only used when picked explicitly. Promote a community language by having a native speaker review it (status reviewed + reviewers) and adding it to `supported`.", "enum": ["supported", "community"] },
"reviewers": { "type": "array", "items": { "type": "string" } },
"fallback": { "type": "string" },
"coverage": { "type": "number", "minimum": 0, "maximum": 1 }
}
}
}