I have currently the problem that I don't understand where the locale that is set in the header of the rendered blog comes from. The header for each post (and all other pages) looks like:
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
...
I tried to find the way to influence the second line <html lang="en-US">
but could not find it. I tried the following:
- Searched in the settings of WordPress site, if the admin can change the default locale, but could not find it.
- Used different browsers, and changed in all browsers the language to German.
My code to read the locale is:
$loc = get_locale();
The documentation for that function reads:
Return Values
(string)
The locale of the blog or from the 'locale' hook.
So where can I set the locate in the administration of my Wordpress site, or is there an option to use the locale of the browser?