跳到内容 跳到侧边栏
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 voice 。

最后由 szymonZ-2 2 months, 1 weeks前 更新。

协助者:: Waqas Bin Hasan.

作者 帖子
11 7 月, 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.'已关闭,不接受新回复。