format
Replaces the format string placeholders with the provided values based on the index.
Parameters
format
string
The format string.
values
any[]
The values that should be replaced in the format string.
locale?
string
The optional locale id
. If not specified, the id
of the "en"
locale is used.
Returns
string
- The format string with replaced formatted values.