Skip to content

Commit 9ee535f

Browse files
cedric07cursoragent
andcommitted
fix(i18n): load Swiper strings from app-min.js Jed file
Production webpack emits app-min.js while wp_set_script_translations hashes the enqueued path; point PO/POT and JSON translations at dist/app-min.js. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dcf20ed commit 9ee535f

5 files changed

Lines changed: 23 additions & 23 deletions

‎languages/beapi-blocks-theme-fr_FR-a442c66c97675e8bda3e3b62b3a8c8ec.json‎

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"translation-revision-date":"2026-04-10 16:29+0200","generator":"WP-CLI\/2.12.0","source":"dist\/app-min.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"fr_FR","plural-forms":"nplurals=2; plural=(n > 1);"},"Previous slide":["Diapositive pr\u00e9c\u00e9dente"],"Next slide":["Diapositive suivante"],"This is the first slide":["C'est la premi\u00e8re diapositive"],"This is the last slide":["C'est la derni\u00e8re diapositive"],"Go to slide {{index}}":["Aller \u00e0 la diapositive {{index}}"],"{{index}} of {{slidesLength}}":["{{index}} sur {{slidesLength}}"]}}}
-290 Bytes
Binary file not shown.

‎languages/beapi-blocks-theme-fr_FR.po‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
# Copyright (C) 2025 BeAPI
2-
# This file is distributed under the same license as the BeAPI Blocks Theme theme.
31
msgid ""
42
msgstr ""
53
"Project-Id-Version: BeAPI Blocks Theme 1.0\n"
6-
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/beapi-blocks-"
7-
"theme\n"
8-
"POT-Creation-Date: 2026-04-10T14:28:33+00:00\n"
9-
"PO-Revision-Date: 2026-04-10 16:29+0200\n"
4+
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/beapi-blocks-theme\n"
105
"Last-Translator: \n"
116
"Language-Team: \n"
12-
"Language: fr_FR\n"
137
"MIME-Version: 1.0\n"
148
"Content-Type: text/plain; charset=UTF-8\n"
159
"Content-Transfer-Encoding: 8bit\n"
10+
"POT-Creation-Date: 2026-04-10T14:28:33+00:00\n"
11+
"PO-Revision-Date: 2026-04-10 16:29+0200\n"
12+
"Language: fr_FR\n"
1613
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
1714
"X-Generator: Poedit 3.8\n"
1815
"X-Domain: beapi-blocks-theme\n"
1916

2017
#. Theme Name of the theme
2118
#. Description of the theme
22-
#: style.css patterns/footer.php:75
19+
#: style.css
20+
#: patterns/footer.php:75
2321
msgid "BeAPI Blocks Theme"
2422
msgstr ""
2523

@@ -34,7 +32,8 @@ msgid "BeAPI"
3432
msgstr ""
3533

3634
#. Author URI of the theme
37-
#: style.css patterns/footer.php:83
35+
#: style.css
36+
#: patterns/footer.php:83
3837
msgid "https://beapi.fr"
3938
msgstr ""
4039

@@ -173,7 +172,8 @@ msgstr "Voici plutôt quelques liens utiles :"
173172
msgid "Back to home"
174173
msgstr "Retour à l’accueil"
175174

176-
#: patterns/hidden-404.php:41 patterns/hidden-404.php:45
175+
#: patterns/hidden-404.php:41
176+
#: patterns/hidden-404.php:45
177177
msgid "Link"
178178
msgstr "Lien"
179179

@@ -383,27 +383,27 @@ msgstr ""
383383
#~ msgstr "Ajouter à mon calendrier"
384384

385385
#: components/parts/common/swiper-controls.php:14
386-
#: dist/app.js
386+
#: dist/app-min.js
387387
msgid "Previous slide"
388388
msgstr "Diapositive précédente"
389389

390390
#: components/parts/common/swiper-controls.php:15
391-
#: dist/app.js
391+
#: dist/app-min.js
392392
msgid "Next slide"
393393
msgstr "Diapositive suivante"
394394

395-
#: dist/app.js
395+
#: dist/app-min.js
396396
msgid "This is the first slide"
397397
msgstr "C'est la première diapositive"
398398

399-
#: dist/app.js
399+
#: dist/app-min.js
400400
msgid "This is the last slide"
401401
msgstr "C'est la dernière diapositive"
402402

403-
#: dist/app.js
403+
#: dist/app-min.js
404404
msgid "Go to slide {{index}}"
405405
msgstr "Aller à la diapositive {{index}}"
406406

407-
#: dist/app.js
407+
#: dist/app-min.js
408408
msgid "{{index}} of {{slidesLength}}"
409409
msgstr "{{index}} sur {{slidesLength}}"

‎languages/beapi-blocks-theme.pot‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,27 +338,27 @@ msgid "Footer"
338338
msgstr ""
339339

340340
#: components/parts/common/swiper-controls.php:14
341-
#: dist/app.js
341+
#: dist/app-min.js
342342
msgid "Previous slide"
343343
msgstr ""
344344

345345
#: components/parts/common/swiper-controls.php:15
346-
#: dist/app.js
346+
#: dist/app-min.js
347347
msgid "Next slide"
348348
msgstr ""
349349

350-
#: dist/app.js
350+
#: dist/app-min.js
351351
msgid "This is the first slide"
352352
msgstr ""
353353

354-
#: dist/app.js
354+
#: dist/app-min.js
355355
msgid "This is the last slide"
356356
msgstr ""
357357

358-
#: dist/app.js
358+
#: dist/app-min.js
359359
msgid "Go to slide {{index}}"
360360
msgstr ""
361361

362-
#: dist/app.js
362+
#: dist/app-min.js
363363
msgid "{{index}} of {{slidesLength}}"
364364
msgstr ""

0 commit comments

Comments
 (0)