How can i translate html text that in javascript using WPML

The issues are: i want to translate words that are in javascript .i am using WPML plugin in wordpress. text within HTML tags are not showing in WPML strings let html = `

How to add translatable string in function parameter?

I have a javascript function in a wordpress script, I need it to be compatible with WPML chain translation ubp_show_error(“

Inutile de l’ajouter plusieurs fois

“); How can …