Zum Inhalt springen Zur Seitenleiste springen
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 -
- - - - - - -

Supporter-Zeitzone: Asia/Karachi (GMT+05:00)

Schlagwörter: ,

Dieses Thema enthält 0 Antwort, hat 1 voice.

Zuletzt aktualisiert von szymonZ-2 Vor 4 Monaten, 2 Wochen.

Assistiert von: Waqas Bin Hasan.

Autor Beiträge
Juli 11, 2025 um 9:24 a.m. #17226904

szymonZ-2

Background of the issue:
I am trying to translate a page with WPML. The issue can be seen on this page: versteckter Link. 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?

Das Thema '[Geschlossen] Gear page javascript code not working after translating page using WPML.' ist für neue Antworten geschlossen.