Skip to content

I18n.format method

I18n › format

Unofficial

Formats a value.

Signature:

format(value: unknown, format?: string | undefined, lng?: string | undefined, options?: Record<string, unknown> | undefined): string

Parameters:

Parameter Type Description
value unknown The value to format.
format? string | undefined The format string.
lng? string | undefined Language code.
options? Record<string, unknown> | undefined Additional options.

Returns: stringThe formatted string.