diff --git a/plugin-designs/gospel-internet/src/components/GiCombos.vue b/plugin-designs/gospel-internet/src/components/GiCombos.vue index fa6acb739..3895bf40d 100644 --- a/plugin-designs/gospel-internet/src/components/GiCombos.vue +++ b/plugin-designs/gospel-internet/src/components/GiCombos.vue @@ -48,8 +48,12 @@ function labelFor(key, value) { return [].concat(value).map((v) => labelOne(key, v)).join(', ') } provide('selectionBus', bus) -provide('dashboardConfig', { - facets: { +// ★ THE FACET LABELS ARE A COMPUTED, NOT A LITERAL. Evaluated once inside provide() they froze in +// the boot language: T() runs at setup, the object is handed to the consumer, and a live switch to +// Arabic left every facet name in English. check:frozen-labels cannot see this — the call sites ARE +// keyed and the keys DO resolve; what is wrong is WHEN they were read. A computed re-evaluates when +// the locale ref changes, so the same keys now follow the reader. +const facets = computed(() => ({ access_level: { label: T('gospelInternet.facet.access', 'Access in their own language') }, access_detail: { label: T('gospelInternet.col.access', 'In own language') }, band: { label: T('gospelInternet.facet.band', 'Country internet use') }, @@ -60,7 +64,10 @@ provide('dashboardConfig', { religion: { label: T('gospelInternet.facet.religion', 'Religion') }, way_in: { label: T('gospelInternet.facet.wayIn', 'Way in when nothing is in their language') }, messaging: { label: T('gospelInternet.facet.messaging', 'Top messaging app (country)') }, - }, +})) +provide('dashboardConfig', { + // A getter, so a consumer reading .facets re-reads the computed rather than a snapshot of it. + get facets() { return facets.value }, facetRail: FACET_RAIL, legend: { labelFor }, }) diff --git a/public/dx-maps/doxa-maps-spa/manifest.json b/public/dx-maps/doxa-maps-spa/manifest.json index 6ec152350..612aa0d54 100644 --- a/public/dx-maps/doxa-maps-spa/manifest.json +++ b/public/dx-maps/doxa-maps-spa/manifest.json @@ -644,7 +644,7 @@ "bundle": "gospel-internet", "scriptUrl": "./gospel-internet/gospel-internet.js", "output": "dx-maps/gospel-internet/gospel-internet.js", - "integrity": "sha384-G7PIOaa+ZXklHbabRFPnvEy2o3WWDb3Ci3/0Apy8OOgK8yTKaMDtLeLa+hx7Io9l", + "integrity": "sha384-3bFlV2dK6lV7cy3B6QPcjS6QtIE1lW1R56IliClxCfaIK1Em73yPkQuETVpfys89", "elements": [ "gospel-internet-board" ], @@ -665,7 +665,7 @@ "scriptUrl": "./gospel-internet/gospel-internet.js", "embed": { "iframe": "", - "script": "\n\n\n\n\n" + "script": "\n\n\n\n\n" }, "instances": [ { diff --git a/public/dx-maps/gospel-internet/board/board/index.html b/public/dx-maps/gospel-internet/board/board/index.html index d106de70e..fba761eae 100644 --- a/public/dx-maps/gospel-internet/board/board/index.html +++ b/public/dx-maps/gospel-internet/board/board/index.html @@ -65,7 +65,7 @@ - + - + - + - + - + - + - + \n\n\n" + "script": "\n\n\n\n\n" }, "instances": [ {