Skip to content

I18n.format method

I18n › format

Unofficial

Formats a value.

Signature:

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

Parameters:

ParameterTypeDescription
valueunknownThe value to format.
format?stringThe format string.
lng?stringLanguage code.
options?Record<string, unknown>Additional options.

Returns: string — The formatted string.