Skip to content

Commit 3675a52

Browse files
committed
fix(Slider): update accessibility labels for swiper controls
- Replaced static French labels for previous and next slide buttons with translatable strings using WordPress i18n functions. - Updated language files to include the new translations for accessibility.
1 parent f9e321f commit 3675a52

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎components/parts/common/swiper-controls.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="swiper__controls">
1313
<div class="swiper__buttons">
14-
<div class="swiper-button-prev swiper__button" role="button" aria-label="Diapositive précédente"></div>
15-
<div class="swiper-button-next swiper__button" role="button" aria-label="Diapositive suivante"></div>
14+
<div class="swiper-button-prev swiper__button" role="button" aria-label="<?php esc_attr_e( 'Previous slide', 'beapi-frontend-framework' ); ?>"></div>
15+
<div class="swiper-button-next swiper__button" role="button" aria-label="<?php esc_attr_e( 'Next slide', 'beapi-frontend-framework' ); ?>"></div>
1616
</div>
1717
</div>

‎languages/beapi-frontend-framework.pot‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,12 @@ msgctxt "Space size name"
259259
msgid "lg (64px)"
260260
msgstr ""
261261

262+
#: components/parts/common/swiper-controls.php:14
262263
#: dist/app.js
263264
msgid "Previous slide"
264265
msgstr ""
265266

267+
#: components/parts/common/swiper-controls.php:15
266268
#: dist/app.js
267269
msgid "Next slide"
268270
msgstr ""

‎languages/fr_FR.mo‎

442 Bytes
Binary file not shown.

‎languages/fr_FR.po‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,12 @@ msgstr ""
317317
#~ msgid "Toggle menu"
318318
#~ msgstr "Ouvrir/Fermer le menu"
319319

320+
#: components/parts/common/swiper-controls.php:14
320321
#: dist/app.js
321322
msgid "Previous slide"
322323
msgstr "Diapositive précédente"
323324

325+
#: components/parts/common/swiper-controls.php:15
324326
#: dist/app.js
325327
msgid "Next slide"
326328
msgstr "Diapositive suivante"

0 commit comments

Comments
 (0)