@kanunilabs/datagrid-react / fillText
Function: fillText()
fillText(
template,values):string
Substitute {name} placeholders in a dictionary string.
Deliberately not a template engine: the placeholders are a fixed contract
checked by locales.test.ts, so anything cleverer would be a feature nobody
asked for on a hot path.
Lives here rather than in a renderer because BOTH renderers need it and neither can import the other — the React copy was locked inside a .tsx module, which is how the vanilla renderer ended up with a second one.
Parameters
template
string
values
Record<string, string | number>
Returns
string