F
format
Formats a localized string, interpolating ICU MessageFormat placeholders.
function format(key: string, vars?: FormatVars): stringParameters
| Name | Type | Description |
|---|---|---|
| key | string | The message key to resolve and format. |
| vars? | FormatVars | The variables to interpolate into the message. |
Returns
stringThe formatted string.