How to translate a string with tags in between.
Suppose there is a string like
$a = 5; There are <?php echo $a; ?> <span>people</span> in this country.
wp_localize_script( 'store-locator', 'storelocatorjstext', array( 'nostores' => __( 'There are 5 people in this country.', 'textdomain' ) ) );
What is the correct way of internationalizing such cases?
<?php _e('There are 5 <span>people</span> in this country.', 'textdomain'); ?>