I18n.format method
I18n › format
Unofficial
Formats a value.Signature:
format(value: unknown, format?: string, lng?: string, options?: Record<string, unknown>): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| value | unknown | The value to format. |
| format? | string | The format string. |
| lng? | string | Language code. |
| options? | Record<string, unknown> | Additional options. |
Returns: string — The formatted string.