WordPress at a glance
function is not described

restore_current_locale() WP 4.7.0

Restores the translations according to the original locale.

  • Global. WP_Locale_Switcher. $wp_locale_switcher

No Hooks.

Return

String/false. Locale on success, false on error.

Usage

restore_current_locale();

Code of restore current locale: wp-includes/l10n.php VER 5.1.1

<?php
function restore_current_locale() {
	/* @var WP_Locale_Switcher $wp_locale_switcher */
	global $wp_locale_switcher;

	return $wp_locale_switcher->restore_current_locale();
}