تخطي إلى المحتوى تخطي إلى الشريط الجانبي
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صوت.

آخر تحديث بواسطة szymonZ-2 قبل 3 أسابيع، 6 أيام.

يساعده: 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.“ مغلق للردود الجديدة.