Перейти к содержимому Перейти к боковой панели
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 -
- - - - - - -

Часовой пояс службы поддержки: Asia/Karachi (GMT+05:00)

Помечено: ,

Эта тема содержит 0 ответ, имеет 1 voices.

Последнее обновление: szymonZ-2 2 месяца, 1 неделя назад.

При содействии: Waqas Bin Hasan.

Автор Сообщения
11 июля, 2025 в 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: скрытая ссылка. 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?

Тема '[Закрытые] Gear page javascript code not working after translating page using WPML.' закрыта для новых ответов.