Private AccessPrivate Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Changes the site’s locale to the given one.
Loads the translations, changes the global
$wp_locale object and updates all post type labels.
(string) (Required) The locale to change to.