Country posters: the map's loading and error lines speak the reader's language

countries-map typed in 'Research map loading…' and 'The map could not be
loaded.' (universal-props re-measure, main dee9f9c9). Both now reuse existing
keys through the component's own t(): messages.loadingNamed and
messages.couldNotLoadNamed, with the name tabs.map. That is 11/11 locales with
no new keys, so no library change. Headless: build OK, no-free-identifiers and
profiles-mount pass.
This commit is contained in:
Doxa Maps 2026-09-26 16:49:31 +00:00
parent 56c2da26c5
commit 28c1ed2e7b

View file

@ -2175,8 +2175,8 @@ onBeforeUnmount(() => {
</div>
<div class="rm-map-area">
<div v-if="!appReady && !mapError" class="rm-loading">Research map loading…</div>
<div v-if="mapError" class="rm-error">The map could not be loaded. {{ mapError }}</div>
<div v-if="!appReady && !mapError" class="rm-loading">{{ t('messages.loadingNamed', { name: t('tabs.map') }) }}</div>
<div v-if="mapError" class="rm-error">{{ t('messages.couldNotLoadNamed', { name: t('tabs.map') }) }} {{ mapError }}</div>
<div ref="mapContainer" class="rm-map-canvas" />
<div class="map-scroll-edge map-scroll-edge--left" />
<div class="map-scroll-edge map-scroll-edge--right" />