updating js translations array

This commit is contained in:
Antoine M 2024-04-02 16:41:11 +02:00
parent 103be02310
commit 2e31b63e91

View File

@ -158,8 +158,10 @@ function homegrade_blocks_plugin_enqueue_assets()
// SHOW THEMATIQUE
wp_register_script('showthematiquejs', plugin_dir_url(__FILE__) . '/acf-blocks/home/show-thematiques/show-thematiques.js', array('swiperjs'), $theme->get('Version'));
$translation_array = array(
'previousSlide' => __('Carte précédente', 'homegrade-theme__texte-fonctionnel'),
'nextSlide' => __('Carte suivante', 'homegrade-theme__texte-fonctionnel'),
'previousSlide' => __('Thématique précédente', 'homegrade-theme__texte-fonctionnel'),
'nextSlide' => __('Thématique suivante', 'homegrade-theme__texte-fonctionnel'),
'showThematiques' => __('Afficher les thématiques', 'homegrade-theme__texte-fonctionnel'),
'to' => __('à', 'homegrade-theme__texte-fonctionnel'),
'slideLabel' => __('Carte Thématique', 'homegrade-theme__texte-fonctionnel'),
);
wp_localize_script('showthematiquejs', 'textTranslations', $translation_array);