Reference · Tools · tools.rs

resolve_placeholders Function

Stamp text as it is set: {date} / {Datum} become the day the tool runs ("23.10.2026", "23 October 2026"), so a saved workflow stamps today's date, not the day it was saved. The apps show previews with this too.

func resolvePlaceholders(text: String, lang: String) -> String

Parameters

NameTypeSwift / C#
textStringtext
langStringlang

Returns

String

Errors

Does not throw.

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.