제리 허만의 Helly Dolly 노래에서 인용: Hello, Dolly

Block Translation

Gutenberg block types are parsed as a tree during translation. For each block type MFK needs to know which attributes and inner HTML to translate. Core WordPress blocks are pre-configured. For custom blocks paste a WPML-style <gutenberg-blocks> XML config below.

Custom block rules (WPML-compatible XML)

Registered block types (34)

Block Translatable attributes Inner HTML
core/paragraph content yes
core/heading content yes
core/list yes
core/list-item content yes
core/quote citation yes
core/pullquote value, citation no
core/preformatted content no
core/verse content no
core/code no
core/html content yes
core/table caption yes
core/button text yes
core/buttons yes
core/image alt, caption, title yes
core/cover alt yes
core/gallery caption yes
core/video caption yes
core/audio caption yes
core/media-text mediaAlt yes
core/file fileName, downloadButtonText yes
core/embed caption no
core/search label, placeholder, buttonText no
core/navigation-link label, description no
core/navigation-submenu label yes
core/site-tagline no
core/post-excerpt moreText yes
core/read-more content yes
core/latest-posts no
core/calendar no
core/tag-cloud no
core/archives displayAsDropdown no
core/separator no
core/spacer no
core/shortcode no

Example XML

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="my-plugin/testimonial" translate="1">
      <xpath>//blockquote</xpath>
      <attrs>
        <attr>author</attr>
        <attr>quote</attr>
      </attrs>
    </gutenberg-block>
    <gutenberg-block type="my-plugin/hero" translate="1">
      <attrs>
        <attr>heading</attr>
        <attr>subheading</attr>
        <attr>buttonText</attr>
      </attrs>
      <inner-content>0</inner-content>
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>