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:

ParameterTypeDescription
valueunknownThe value to format.
format?string | undefinedThe format string.
lng?string | undefinedLanguage code.
options?Record<string, unknown> | undefinedAdditional options.

Returns: stringThe formatted string.