דלג לתוכן דלג לסרגל צד
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, יש ל 1קוֹל.

עודכן לאחרונה על ידי szymonZ-2 לפני חודש 5, שבוע 2.

בסיוע: Waqas Bin Hasan.

מחבר פוסטים
יולי 11, 2025 ב-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: קישור נסתר. 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.' סגור לתגובות חדשות.