doxa-maps/library/i18n/locales/de/controls.json
doxa-maps-88655c70 b4a0387495 Translate the chrome that was English in all eleven locales
Measured under ?lang=ru on both composites: every Latin-script string left on the
page was ours. The map above was fully translated; underneath it the grid, the
map's own side menu and filter panel, and the whole research dashboard were
English in Arabic, Chinese, Hindi, Russian and everything else.

Three surfaces, three reasons, none of them a missing translation:

  the grid          read labels from a host-supplied `t` object that nothing ever
                    filled, with an English literal at each call site as fallback
  side menu +
  filter panel      plain string literals
  dashboard         labels declared as literals in dashboard.config.js — facet
                    rail, chart titles, KPI strip, table headers, segmented
                    control, search placeholder

New catalogues for all 11 locales (grid, controls, dashboard), REUSING the
catalogue's existing wording wherever the word already existed — Регион, Блок
родства, Население, Вовлечён, Графики — so two panels never name one thing two
ways, and nothing is coined that the project already has a word for.

Read through a new plugin-free tStatic() rather than useI18n, because these
components are also mounted by entries that install no i18n plugin. An unguarded
useI18n() throws and a thrown setup() removes the subtree with no build error —
the defect that had just blanked people-groups-grid everywhere (6603dc17).

★ THE CONFIG LABELS ARE GETTERS, AND A SPREAD WOULD HAVE LOOKED IDENTICAL.
dashboard.config.js is imported once at load; the locale is only known later. My
first version spread a getter object, and a spread COPIES THE RESOLVED VALUE, not
the accessor — every label would have frozen at whichever locale loaded first,
and it would have looked perfect in English. `get label() {…}` resolves on each
read.

MEASURED after, served built tree, identity checked first: Big Picture ru/ar and
Simple Research ru/zh have ZERO Latin-script chrome strings. What remains is
Mapbox's licence attribution (never translate), country and people-group names
(data), and 'UUPGs' — which every locale file deliberately keeps as the acronym.

Three gates went red on the way, two of them mine and worth recording:
  check:locale-reachable  slices this i18n module between two markers and EVALS
                          the slice; I had put tStatic between them, so the gate
                          hit an `export`. Moved to the end of the file.
  check:library-index     my import+helper above a component's docblock became
                          that component's DERIVED description. Moved below it.
  check:kpi-unit          its parser assumed single-brace entries, so getters made
                          it find ZERO pct KPIs — and it failed rather than
                          printing a green PASS about nothing, which is the gate
                          working. Parse now understands getters AND checks the
                          translated labels, so a '%' reintroduced in any of the
                          11 catalogues fails by name. Both controls fired.
2026-09-25 06:10:27 +00:00

32 lines
1 KiB
JSON

{
"research_controls": "Forschungssteuerung",
"clustering": "Clustering",
"filters": "Filter",
"pin_dim": "Pin-Transparenz",
"export_poster": "Poster exportieren…",
"reload_data": "Daten neu laden",
"off": "Aus",
"native": "Nativ",
"mst": "MST",
"network": "Netzwerk",
"off_desc": "Jeden Pin einzeln anzeigen",
"native_desc": "Mapbox-Kreiscluster (am schnellsten)",
"mst_desc": "Affinitätsnetze über minimalen Spannbaum",
"network_desc": "Verbindungslinien zum nächsten Nachbarn",
"search_languages": "Sprachen suchen…",
"search_religions": "Religionen suchen…",
"reset_all": "Alles zurücksetzen",
"no_languages": "Noch keine Sprachen geladen",
"no_religions": "Noch keine Religionen geladen",
"unadopted": "Nicht adoptiert",
"min": "min",
"max": "max",
"adopted": "Adoptiert",
"adoption": "Adoption",
"engaged": "Engagiert",
"engagement": "Engagement",
"unengaged": "Braucht Engagement",
"language": "Sprache",
"religion": "Religion",
"population": "Bevölkerung"
}