Aperçu de l’anomalie
Lorsque vous utilisez Premium Blocks for Gutenberg avec WPML, les mots animés du bloc Fancy Text restent dans la langue par défaut sur les pages traduites. Le préfixe et le suffixe sont traduits.
Solution de contournement
Accédez à WPMLParamètresConfiguration XML personnalisée, ajoutez le code XML suivant et enregistrez :
XML
<wpml-config> <gutenberg-blocks> <gutenberg-block type="premium/fancy-text" translate="1"> <xpath>//span</xpath> <xpath>//li</xpath> <xpath>//*[@data-strings]/@data-strings</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config>
Ensuite, traduisez à nouveau la page.