Six user-facing strings in SemanticTreeLegend were hardcoded English, in the
one surface that generates a document translated into all eleven locales. A
reader in Arabic opened the export menu and met "Poster" and "Packet" beside a
packet whose every page is Arabic — two honest surfaces disagreeing.
legend.export.poster menu item
legend.export.packet menu item
legend.exportButton the trigger's visible label
legend.exportSelection the trigger's title AND aria-label
legend.noDataAtThisLevel the empty state
aria.expandLegend reused for the collapsed-legend reopen button,
which had a title and NO aria-label at all, so a
screen reader announced an unlabelled button
WHY A GATE NEVER CAUGHT THESE. Both menu items only exist after a click opens
the menu, so a check that renders a leaf and scans visible text cannot see
them. The trigger's accessible name is worse: it is never visible text at all.
KEY NAMES CARRY THE FALLBACK, so they are not free. This component has no
i18n on a bare host (useI18n() is guarded) and falls back to
humanizeKey(lastSegment). I first named the keys after their ROLE — .label,
.selection, .empty — and measured the result: the export button rendered
"Label". The last segment must BE the English word, which is why
legend.columns.name -> "Name" has always read correctly. Verified all six:
Poster / Packet / Export / Export Selection / No Data At This Level / Expand
legend. Never blank, never a raw key.
TRANSLATED, NOT COINED. check-i18n-never-translated warns against inventing
terminology because a wrong term looks authoritative to a reader who cannot
check it. That warning was written about "UUPGs", a term of art. These are
ordinary print-shop words with undisputed equivalents, and the test is whether
a bilingual reader would dispute the word: not for "poster", yes for an
unreached-people-group acronym. Leaving them English was the defect.
es/pt legitimately share "Exportar"; the gate fails only on all-eleven.
Verified: check:i18n-parity PASS (11 locales complete, 0 debt),
check:i18n-never-translated PASS (my six keys added nothing to the allowlist),
BUNDLE=my-upg-100-list vite build 318 modules clean, and a static sweep of the
template now finds zero hardcoded English in text nodes or in title/aria-label.
76 lines
2.5 KiB
JSON
76 lines
2.5 KiB
JSON
{
|
|
"title": {
|
|
"adoption": "Progreso de adopción",
|
|
"affinityBlocs": "Bloques de afinidad",
|
|
"doxaRegions": "Regiones Doxa",
|
|
"engagement": "Progreso de implicación",
|
|
"gospelResources": "Recursos del Evangelio",
|
|
"languageFamilies": "Familias lingüísticas",
|
|
"prayer": "Progreso de oración",
|
|
"upg100List": "Mi lista UPG 100"
|
|
},
|
|
"header": {
|
|
"collapsed": "Leyenda",
|
|
"peopleGroupFallback": "Grupo de personas",
|
|
"default": "Leyenda"
|
|
},
|
|
"prayer": {
|
|
"needsPrayer": "Necesita oración",
|
|
"hasPrayer": "Tiene oración",
|
|
"fullPrayerCoverage": "Cobertura de oración completa"
|
|
},
|
|
"progress": {
|
|
"title": "Progreso",
|
|
"covered": "{covered} de {total} grupos de personas cubiertos en oración · {pct}%",
|
|
"short": "{covered} de {total} · {pct}%",
|
|
"segment": "{label} · {count} · {pct}%"
|
|
},
|
|
"engagement": {
|
|
"needsEngagement": "Necesita implicación",
|
|
"hasEngagement": "Tiene implicación"
|
|
},
|
|
"adoption": {
|
|
"needsAdoption": "Necesita adopción",
|
|
"hasAdoption": "Tiene adopción"
|
|
},
|
|
"columns": {
|
|
"upgs": "UUPGs",
|
|
"population": "Población",
|
|
"name": "Nombre"
|
|
},
|
|
"footer": {
|
|
"total": "Total"
|
|
},
|
|
"sortByUpgs": "Ordenar por UUPG",
|
|
"sortByPop": "Ordenar por población",
|
|
"colLabel": {
|
|
"religion": "Religiones UUPG",
|
|
"prayer": "Estado de oración",
|
|
"engagement": "Estado de compromiso",
|
|
"adoption": "Estado de adopción",
|
|
"status": "Estado"
|
|
},
|
|
"titleBar": {
|
|
"legend": "Leyenda",
|
|
"peopleGroups": "Pueblos",
|
|
"wagfRegions": "Regiones WAGF",
|
|
"languages": "Idiomas"
|
|
},
|
|
"tabInfo": {
|
|
"upg100Region": "Región — ordena las listas UPG-100 por área mundial (África, India, Oriente Medio, Sordos, …). Los totales son los UUPG y la población sumados de todas las listas que contiene.",
|
|
"upg100Zone": "Listas UPG-100 — cada una es una lista de oración de los grupos étnicos no alcanzados de un área, y es lo que el mapa pinta y colorea. Cada lista se imprime como su propio paquete.",
|
|
"upg100Group": "Grupo étnico — los grupos no alcanzados dentro de una lista, primero los de mayor necesidad de oración. Cada punto del mapa es uno de ellos."
|
|
},
|
|
"a11y": {
|
|
"expandRow": "Expandir {label}",
|
|
"collapseRow": "Contraer {label}",
|
|
"clearSelection": "Borrar la selección"
|
|
},
|
|
"export": {
|
|
"poster": "Cartel",
|
|
"packet": "Cuadernillo"
|
|
},
|
|
"noDataAtThisLevel": "No hay datos en este nivel",
|
|
"exportButton": "Exportar",
|
|
"exportSelection": "Exportar la selección"
|
|
}
|