Pular para o conteúdo Pular para a barra lateral
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 horário do suporte: Asia/Karachi (GMT+05:00)

Este tópico contém 0, tem 1 voz.

Última atualização: szymonZ-2 5 meses, 1 semana atrás.

Assistido por: Waqas Bin Hasan.

Autor Posts
julho 11, 2025 às 9:24 am #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 oculto. 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?

O tópico '[Fechado] Gear page javascript code not working after translating page using WPML.' está fechado para novas respostas.