MessageNumber.(constructor)
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Constructs a new instance of the MessageNumber
class
Signature:
constructor(locale: LocaleContextArg, number: number | bigint | Readonly<MessageNumber>, { meta, options, source }?: {
meta?: Readonly<Meta>;
options?: Readonly<Intl.NumberFormatOptions & Intl.PluralRulesOptions>;
source?: string;
});
Parameters
Parameter | Type | Description |
---|---|---|
locale | LocaleContextArg | |
number | number | bigint | Readonly<MessageNumber> | |
{ meta, options, source } | { meta?: Readonly<Meta>; options?: Readonly<Intl.NumberFormatOptions & Intl.PluralRulesOptions>; source?: string; } | (Optional) |