updating js translations array
This commit is contained in:
parent
103be02310
commit
2e31b63e91
|
|
@ -158,8 +158,10 @@ function homegrade_blocks_plugin_enqueue_assets()
|
||||||
// SHOW THEMATIQUE
|
// SHOW THEMATIQUE
|
||||||
wp_register_script('showthematiquejs', plugin_dir_url(__FILE__) . '/acf-blocks/home/show-thematiques/show-thematiques.js', array('swiperjs'), $theme->get('Version'));
|
wp_register_script('showthematiquejs', plugin_dir_url(__FILE__) . '/acf-blocks/home/show-thematiques/show-thematiques.js', array('swiperjs'), $theme->get('Version'));
|
||||||
$translation_array = array(
|
$translation_array = array(
|
||||||
'previousSlide' => __('Carte précédente', 'homegrade-theme__texte-fonctionnel'),
|
'previousSlide' => __('Thématique précédente', 'homegrade-theme__texte-fonctionnel'),
|
||||||
'nextSlide' => __('Carte suivante', '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'),
|
'slideLabel' => __('Carte Thématique', 'homegrade-theme__texte-fonctionnel'),
|
||||||
);
|
);
|
||||||
wp_localize_script('showthematiquejs', 'textTranslations', $translation_array);
|
wp_localize_script('showthematiquejs', 'textTranslations', $translation_array);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user