Overview of the Issue
When using Addon Elements for Elementor with WPML, you might experience the following issue: a saved template shown in the Content Switcher, Modal Popup, Dropbar or Data Table widget stays in the default language on translated pages.
Workaround
Add the following code to the functions.php file of your child theme:
PHP
add_filter( 'elementor/documents/get/post_id', function ( $id ) {
if ( 'elementor_library' === get_post_type( $id ) ) {
$id = apply_filters( 'wpml_object_id', $id, 'elementor_library', true );
}
return $id;
} );With it, the Content Switcher, Modal Popup, Dropbar and Data Table widgets show the translated template on translated pages.