That’s probably basic PHP. As all that’s needed would be some kind of map/array and then switch use the id
according to what get_locale()
returns.
<?php
// Provide a map if locales and shortcode IDs.
$custom_footer = [
'ar' => '319',
'en_US' => '3181',
// ... and so on
];
// Get the current language.
$current_language = get_locale();
// Get the right shortcode ID.
$shortcode_id = $custom_footer[$current_language];
?>
<?php echo "Just for debugging, the current language is: " . $current_language; ?>
<?php echo do_shortcode("[INSERT_ELEMENTOR id='" . $shortcode_id . "']"); ?>