Skip to content

Ngx meta.standard.locale

Home > @davidlj95/ngx-meta > Standard > locale

Standard.locale property

Sets the lang attribute to the <html> element.

Can be set with GlobalMetadata.locale.

Value must be a valid language tag complying with BCP 47 For instance: "es" or "es-ES".

Signature:

readonly locale?: GlobalMetadata['locale'];

Remarks

Doesn't seem to provide any benefit in terms of SEO.

Provider:

provideStandardLocale()

See also: