How do I translate string inside jQuery script with WPML?

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 );