Vai al contenuto Vai alla barra laterale
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Fuso orario del supporto: Asia/Karachi (GMT+05:00)

Etichettato: ,

Questo ticket contiene 0 risposta, ha 1 voce.

Ultimo aggiornamento da szymonZ-2 8 mese, 1 settimana fa.

Assistito da: Waqas Bin Hasan.

Autore Post
Luglio 11, 2025 alle 9:24 #17226904

szymonZ-2

Background of the issue:
I am trying to translate a page with WPML. The issue can be seen on this page: link nascosto. I expected to see the original JavaScript code: headings.forEach(heading => { // ... });

Symptoms:
After translation by WPML, the JavaScript code appears as: headings.forEach(heading => { // ... }); The => operator is replaced with =>, causing the code to break.

Questions:
Why is the JavaScript code being altered during translation?
How can I prevent WPML from replacing symbols in my JavaScript code?

L'argomento '[Chiuso] Gear page javascript code not working after translating page using WPML.' è chiuso a nuove risposte.