WP_Locale_Switcher::init()
Initializes the locale switcher.
Description
Hooks into the ‘locale’ filter to change the locale on the fly.
Source
File: wp-includes/class-wp-locale-switcher.php
public function init() {
add_filter( 'locale', array( $this, 'filter_locale' ) );
}