Background of the issue:
I'm using the Enfold theme for a hotel website. The pages have a JavaScript code for the reservation system. I used to put this code in a text element and translate it in string translation to change the language variable (i.e. it-IT for Italian, en-GB for English, etc.).
Symptoms:
I can't find those strings for translation anymore, even though this method used to work earlier. I also tried the Enfold code element but had no luck.
Questions:
Why can't I find the strings for translation anymore?
Is there an alternative method to translate the JavaScript code in the Enfold theme?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Please make sure you are following our documentation as well as WordPress’s guidelines on how to localize scripts.