Hello, yaci,
We hope this message finds you well. We are pleased to inform you that we have translated the mobile panel. To facilitate this update, we have added the following code to the functions.php file of your child theme.
add_action('init', function(){
add_filter( "theme_mod_mobile_panel_package_et-mobile", function($current_mod){
if (defined( 'ICL_LANGUAGE_CODE' )){
// Use case to modify sections for different languages
switch (ICL_LANGUAGE_CODE) {
case 'ar':
$current_mod = array(
array(
"element" => "custom",
"icon" => "et_icon-shop",
"icon_custom" => "",
"text" => "المتجر ",
"is_active" => false,
"link" => "20",
"custom_link" => ""
),
array(
"element" => "custom",
"icon" => "et_icon-dev-menu",
"icon_custom" => "",
"link" => "3978",
"custom_link" => "",
"text" => "الفئات ",
"is_active" => false
),
array(
"element" => "search",
"icon" => "et_icon-zoom",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "البحث ",
"is_active" => false
),
array(
"element" => "custom",
"icon" => "et_icon-conversation",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "تواصل معنا",
"is_active" => false
)
);
break;
case 'en':
$current_mod = array(
array(
"element" => "custom",
"icon" => "et_icon-shop",
"icon_custom" => "",
"text" => "Shop",
"is_active" => false,
"link" => "20",
"custom_link" => ""
),
array(
"element" => "custom",
"icon" => "et_icon-dev-menu",
"icon_custom" => "",
"link" => "3978",
"custom_link" => "",
"text" => "Categories",
"is_active" => false
),
array(
"element" => "search",
"icon" => "et_icon-zoom",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "Search",
"is_active" => false
),
array(
"element" => "custom",
"icon" => "et_icon-conversation",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "Contact",
"is_active" => false
)
);
break;
case 'fr':
$current_mod = array(
array(
"element" => "custom",
"icon" => "et_icon-shop",
"icon_custom" => "",
"text" => "Boutique",
"is_active" => false,
"link" => "20",
"custom_link" => ""
),
array(
"element" => "custom",
"icon" => "et_icon-dev-menu",
"icon_custom" => "",
"link" => "3978",
"custom_link" => "",
"text" => "Catégories",
"is_active" => false
),
array(
"element" => "search",
"icon" => "et_icon-zoom",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "Recherche",
"is_active" => false
),
array(
"element" => "custom",
"icon" => "et_icon-conversation",
"icon_custom" => "",
"link" => "36",
"custom_link" => "",
"text" => "Contact",
"is_active" => false
)
);
break;
default:
break;
}
}
return $current_mod;
} );
});
Should you have any questions or require further assistance, please do not hesitate to contact us.
Best Regards,
The 8Theme Team















