-
Notifications
You must be signed in to change notification settings - Fork 197
Translate Web Stories using WPML #13446
Copy link
Copy link
Open
Labels
Group: IntegrationIntegration with other platforms and pluginsIntegration with other platforms and pluginsGroup: WordPressChanges related to WordPress or Gutenberg integrationChanges related to WordPress or Gutenberg integrationP3Nice to haveNice to have
Description
Activity
Metadata
Metadata
Assignees
Labels
Group: IntegrationIntegration with other platforms and pluginsIntegration with other platforms and pluginsGroup: WordPressChanges related to WordPress or Gutenberg integrationChanges related to WordPress or Gutenberg integrationP3Nice to haveNice to have
Feature Description
Hi there, this is Diego from the WPML Compatibility team.
We did some testing with the plugin and found that we can add translation support with WPML if the post_content value were wrapped in a gutenberg block.
For instance, instead of having just the HTML content inside post_content:
We could have something like:
With this, we could use our language configuration file to find the strings using XPATH and then register and translate these strings: https://wpml.org/documentation/support/language-configuration-files/#gutenberg-blocks
Here is a quick example for the XML file:
This worked correctly as we can see here:
Would it be possible to implement this?