if ( $languages ) :
?>
<tr class="form-field user-language-wrap">
<th scope="row">
<label for="locale">
<?php /* translators: The user language selection field label. */ ?>
<?php
_e( 'Language'
); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span>
</label>
</th>
<td>
<?php
wp_dropdown_languages( array
( 'name' => 'locale',
'id' => 'locale',
'selected' => 'site-default',
'languages' =>
$languages,
'show_available_translations' => false,
'show_option_site_default' => true,
) );
?>
</td>
</tr>