Messages.resolveLocale() method

Resolve lc to the key of an available locale or null, allowing for partial matches.

Signature:

resolveLocale(locale: string | null): string | null;

Parameters

Parameter Type Description
locale string | null  

Returns:

string | null

Remarks

For example, with an en locale defined, it will be selected by messages.defaultLocale = 'en-US' and vice versa.