Messages.locale property

Current locale

Signature:

get locale(): string | null;

set locale(locale: string | null);

Remarks

One of Messages.availableLocales or null. Partial matches of language tags are supported, so e.g. with an en locale defined, it will be selected by messages.locale = 'en-US' and vice versa.