fixing translation bug

This commit is contained in:
Antoine M 2023-10-25 14:43:09 +02:00
parent 49c00949f4
commit 9851d1f488

View File

@ -68,7 +68,7 @@ function tailpress_enqueue_scripts()
'yes' => __('Oui', 'homegrade-theme__texte-fonctionnel'), 'yes' => __('Oui', 'homegrade-theme__texte-fonctionnel'),
'no' => __('Non', 'homegrade-theme__texte-fonctionnel'), 'no' => __('Non', 'homegrade-theme__texte-fonctionnel'),
'template_directory_uri' => get_template_directory_uri(), 'template_directory_uri' => get_template_directory_uri(),
'current_thematique' => get_the_terms(get_the_ID(), 'thematiques')[0], 'current_thematique' => get_the_terms(get_the_ID(), 'thematiques')[0] ?? null,
); );
wp_localize_script('main-app-js', 'mainAppJsDynamicDatas', $main_app_js_dynamic_datas); wp_localize_script('main-app-js', 'mainAppJsDynamicDatas', $main_app_js_dynamic_datas);