Function: interpolate()
interpolate(
text,values?):string
Defined in: src/lib/i18n/index.ts:107
Put values into a string's {name} placeholders. Placeholders without a value are left as they are.
Parameters
text
string
values?
Record<string, string | number> = {}
Returns
string
Example
interpolate("Delete \"{name}\"?", { name: "Sketch" }); // 'Delete "Sketch"?'