LocaleContext
A GlobalContext describing the users' language (ISO 639-1) and country (ISO 3166-1 alpha-2).
graph LR
AbstractContext["AbstractContext<br><span class='properties'>id: string<br />_type: string</span>"] --> AbstractGlobalContext;
AbstractGlobalContext --> LocaleContext["LocaleContext<br><span class='properties'>language_code?: string<br>country_code?: string</span>"];
class LocaleContext diagramActive;
click AbstractGlobalContext "/docs/taxonomy/global-contexts" "See details" _self
Diagram: LocaleContext inheritance
Properties
type | description | |
---|---|---|
id | string | Unique string to be combined with the Context Type (_type ) for Context instance uniqueness. |
_type | string | String literal used during serialization. Should always match the Context interface name. |
language_code | string | [optional] Case sensitive ISO 639-1 language code. E.g. en, nl, fr, de, it, etc. |
country_code | string | [optional] Case sensitive ISO 3166-1 alpha-2 country code. E.g. US, NL, FR, DE, IT, etc. |
setting of properties
The tracker can automatically set the id
when using the official Plugin. On manual creation, id
must be provided.