-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
It'd be somewhat helpful to be able to automatically apply transformers based on the typeof for a value. For example:
const fmt = format.create({
string: str => "'" + str + "'",
number: num => num.toLocaleString(),
});
fmt("Welcome back, {}! You have {} unread messages.", "Alice", 1000); // Welcome back, 'Alice'! You have 1,000 unread messages.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels