Tag Info

New answers tagged

1

To translate something in your js you can use wp_localize_script() really handy : $translation_array = array( 'some_string' => __( 'Some string to translate' ), 'a_value' => '10' ); wp_localize_script( 'some_handle', 'object_name', $translation_array );



Top 50 recent answers are included