ภาพรวมของปัญหา
เมื่อใช้ Premium Blocks for Gutenberg ร่วมกับ WPML คำอธิบายและคำบรรยายของบล็อก Video Box จะยังคงเป็นภาษาเริ่มต้นในหน้าที่แปลแล้ว
วิธีแก้ปัญหาชั่วคราว
ไปที่ WPMLการตั้งค่าการกำหนดค่า XML ที่กำหนดเอง เพิ่ม XML ต่อไปนี้และบันทึก:
XML
<wpml-config> <gutenberg-blocks> <gutenberg-block type="premium/video-box" translate="1"> <xpath>//*[contains(@class,'premium-video-box__desc_text')]</xpath> <xpath>//*[contains(@class,'premium-video-box__caption_text')]</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config>
จากนั้นแปลหน้านี้อีกครั้ง