A GlobalContext describing the users' language (ISO 639-1) and country (ISO 3166-1 alpha-2).

graph LR AbstractContext["AbstractContext<span class='properties'>id: string<br /></span>"] --> AbstractGlobalContext; AbstractGlobalContext --> LocaleContext["LocaleContext<span class='properties'>language_code?: string<br />country_code?: string<br /></span>"]; class LocaleContext diagramActive click AbstractGlobalContext "/docs/taxonomy/global-contexts" "See details" _self

Diagram: LocaleContext inheritance


language_code [optional]stringCase sensitive ISO 639-1 language code. E.g. en, nl, fr, de, it, etc.
country_code [optional]stringCase sensitive ISO 3166-1 alpha-2 country code. E.g. US, NL, FR, DE, IT, etc.

Inherited Properties

idstringA unique string identifier to be combined with the Context Type (_type) for Context instance uniqueness.
setting of properties

The tracker can automatically set the id when using the official Plugin. On manual creation, id must be provided.