Skip to content

Commit beedf40

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 0849dc5 commit beedf40

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
@@ -253,10 +253,12 @@ msgctxt "Space size name"
253253
msgid "lg (64px)"
254254
msgstr ""
255255

256+
#: components/parts/common/swiper-controls.php:14
256257
#: dist/app.js
257258
msgid "Previous slide"
258259
msgstr ""
259260

261+
#: components/parts/common/swiper-controls.php:15
260262
#: dist/app.js
261263
msgid "Next slide"
262264
msgstr ""

‎languages/fr_FR.mo‎

434 Bytes
Binary file not shown.

‎languages/fr_FR.po‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,12 @@ msgstr ""
297297
#~ msgid "Toggle menu"
298298
#~ msgstr "Ouvrir/Fermer le menu"
299299

300+
#: components/parts/common/swiper-controls.php:14
300301
#: dist/app.js
301302
msgid "Previous slide"
302303
msgstr "Diapositive précédente"
303304

305+
#: components/parts/common/swiper-controls.php:15
304306
#: dist/app.js
305307
msgid "Next slide"
306308
msgstr "Diapositive suivante"

0 commit comments

Comments
 (0)