Try this:
function is_localized($tag) {
global $wp_scripts;
$data = $wp_scripts->get_data( $tag, 'data' );
return ! empty( $data );
}
Try this:
function is_localized($tag) {
global $wp_scripts;
$data = $wp_scripts->get_data( $tag, 'data' );
return ! empty( $data );
}