Prayer Progress: the legend's status column speaks the page's language

The column header ("Prayer Status", "Engagement Status", …) was hard-coded
English, so an Arabic, Chinese, Russian or Hindi embed showed it in English
above translated rows. It now reads legend.colLabel.*, which all 11 catalogs
already translate.

Measured on a served built tree with the host page on another origin: in ar, zh,
ru and hi the only text still identical to English is the Mapbox attribution
and "UUPGs", which every catalog keeps in Latin script.
This commit is contained in:
doxa-maps-88655c70 2026-09-25 04:30:41 +00:00
parent ffab323623
commit f46c76f97e
8 changed files with 52 additions and 53 deletions

View file

@ -370,12 +370,11 @@ const legendTitle = computed(() => 'Legend')
// wiring for desktop, mobile and embeds. STL also retitles itself "Progress".
const legendProgress = flatLegend.progress
provide('legendProgress', legendProgress)
// From the catalog (legend.colLabel.*), which every locale already translates. This was
// hard-coded English, the one column header left in English in the ar/zh/ru/hi embeds.
const legendColumnLabel = computed(() => {
const t = activeLegendType.value
if (t === 'prayer') return 'Prayer Status'
if (t === 'engagement') return 'Engagement Status'
if (t === 'adoption') return 'Adoption Status'
return 'Status'
const type = activeLegendType.value
return t('legend.colLabel.' + (['prayer', 'engagement', 'adoption'].includes(type) ? type : 'status'))
})
const _stlOpen = computed(() => uiStore.legendState !== 'collapsed')
function _onStlOpenChange(open) {

File diff suppressed because one or more lines are too long

View file

@ -29,7 +29,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-map> custom element. -->
<script src="../../doxa-simple-map.js" integrity="sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2" crossorigin="anonymous"></script>
<script src="../../doxa-simple-map.js" integrity="sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

View file

@ -29,7 +29,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-map> custom element. -->
<script src="../../doxa-simple-map.js" integrity="sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2" crossorigin="anonymous"></script>
<script src="../../doxa-simple-map.js" integrity="sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

View file

@ -29,7 +29,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-map> custom element. -->
<script src="../doxa-simple-map.js" integrity="sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2" crossorigin="anonymous"></script>
<script src="../doxa-simple-map.js" integrity="sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

View file

@ -29,7 +29,7 @@
<script>window.MAP_APP_API_URL = "https://pray.doxa.life";</script>
<!-- Bundle IIFE — registers the <doxa-map> custom element. -->
<script src="../../doxa-simple-map.js" integrity="sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2" crossorigin="anonymous"></script>
<script src="../../doxa-simple-map.js" integrity="sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH" crossorigin="anonymous"></script>
<script>
// Mapbox token resolution — the A3 ladder, in precedence order:

File diff suppressed because one or more lines are too long

View file

@ -396,7 +396,7 @@
"bundle": "doxa-simple-map",
"scriptUrl": "./doxa-simple-map/doxa-simple-map.js",
"output": "doxa-maps/doxa-simple-map/doxa-simple-map.js",
"integrity": "sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2",
"integrity": "sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH",
"elements": [
"doxa-map",
"doxa-simple-map"
@ -413,7 +413,7 @@
"scriptUrl": "./doxa-simple-map/doxa-simple-map.js",
"embed": {
"iframe": "<iframe src=\"./doxa-simple-map/doxa-simple-map/index.html?utm_source=YOUR_SOURCE\" width=\"100%\" height=\"600\" style=\"border:none;border-radius:12px;\" allowfullscreen></iframe>",
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-simple-map/doxa-simple-map.js\" integrity=\"sha384-G/NuJx27ipfilwAaJ9N9jsGgKtVlSMwkS9E/dv/NE5drDd56Z5KYewcu0hp3H2N2\" crossorigin=\"anonymous\"></script>\n<doxa-map profile-config='{\"profile\":\"doxa-simple-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-map>"
"script": "<script>window.MAP_APP_API_URL=\"https://pray.doxa.life\";</script>\n<script src=\"./doxa-simple-map/doxa-simple-map.js\" integrity=\"sha384-4iN8CR2hkCfpPnUe4ZyM8vPmOdd4G7VAq1eyT+v+x+q5F7C87kOveUKwz8MFMmpH\" crossorigin=\"anonymous\"></script>\n<doxa-map profile-config='{\"profile\":\"doxa-simple-map\",\"tk\":\"YOUR_MAPBOX_TOKEN\",\"utmSource\":\"YOUR_SOURCE\",\"assetsBase\":\"YOUR_TREE_URL/assets\"}'></doxa-map>"
},
"instances": [
{