I18n.format method
I18n › format
Unofficial
Formats a value.Signature:
format(value: unknown, format?: string | undefined, lng?: string | undefined, options?: Record<string, unknown> | undefined): stringParameters:
| 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: string — The formatted string.