Messages.(constructor)
Constructs a new instance of the Messages
class
Signature:
constructor(msgData: {
[key: string]: MessageData;
}, defaultLocale?: string);
Parameters
Parameter | Type | Description |
---|---|---|
msgData | { [key: string]: MessageData; } | A map of locale codes to their function objects |
defaultLocale | string | (Optional) If not defined, default and initial locale is the first key of msgData |