SiteLanguage final class
Minn\I18n\SiteLanguage · public/minn/src/Minn/I18n/SiteLanguage.php · 43 lines
The site's language as pages declare it: the locale in force (a switched one first, then what pre_determine_locale or the WPLANG option give, through the locale filter) and the html element's dir and lang attributes, which a plugin may change through language_attributes.
Uses 2
Used by 1
Public
| static | locale(): string# | The locale in force (get_locale). |
| static | tag(): string# | The language tag pages carry: the locale with a hyphen, plain "en" read as en_US. |
| static | attributes(string $doctype = 'html'): string# | The html element's dir and lang attributes (lang for html, xml:lang for xhtml or a non-HTML html_type). |
Nothing matches.