diff --git a/plugin-designs/pplr-data-maps/src/utils/pplrMap.js b/plugin-designs/pplr-data-maps/src/utils/pplrMap.js index 937803a6e..476f36794 100644 --- a/plugin-designs/pplr-data-maps/src/utils/pplrMap.js +++ b/plugin-designs/pplr-data-maps/src/utils/pplrMap.js @@ -441,8 +441,11 @@ export class FullscreenToggleControl { this._btn = document.createElement('button') this._btn.type = 'button' this._btn.className = 'mapboxgl-ctrl-fullscreen' - this._btn.setAttribute('aria-label', 'Toggle fullscreen') - this._btn.title = 'Toggle fullscreen' + // The shared, translated name (buttons.toggleFullscreen), in the page's language when the map is + // built. rega saw the English "Toggle fullscreen" in ar and zh on every PPLR map view. + const label = tStatic('buttons.toggleFullscreen') || 'Toggle fullscreen' + this._btn.setAttribute('aria-label', label) + this._btn.title = label this._btn.innerHTML = '' this._btn.addEventListener('click', () => this._toggle()) this._sync = () => {