doclang
If locale is not null
, it sets the document locale to its value. If it's null
, the localized name of the current document locale is returned.
Return
the localized name of the current document locale if locale is null
Parameters
locale
(optional) case-insensitive, either a locale tag (e.g. en
, en-US
, it
, fr-CA
) or an English name of a locale (e.g. English
, English (United States)
, Italian
, French (Canada)
) to assign to the document
Throws
if the locale tag is not invalid or not found