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.
This commit is contained in:
CRTkafa 2026-09-30 15:48:11 +07:00
parent 8460719404
commit ff950511a3
64 changed files with 426 additions and 26 deletions

View file

@ -0,0 +1,23 @@
{
"$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 }
}
}
}