Hi,
You can use WPML plugin and paste this code at functions.php of child theme:-
function sf_language_flags($items,$args) {
if (function_exists('icl_get_languages') && $args->theme_location != '') {
$languages = icl_get_languages('skip_missing=0');
if(1 < count($languages)){
foreach($languages as $l){
$items = $items.'<li class="menu-item menu-lang-icon lang-'.$l['language_code'].'"><a href="'.$l['url'].'" class="dropdown-toggle" data-toggle="dropdown"><img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" /></a></li>';
}
}
}
return $items;
}
Thanks
Mohammad