wpml language switcher shortcode

function language_switcher_fun( $atts ){
	ob_start();
	do_action('icl_language_selector');
	return ob_get_clean();
}
add_shortcode( 'language_switcher_shortcode', 'language_switcher_fun' );

You can use it like this [language_switcher_shortcode]