What if instead of doing this, if just one transformer is applied:
const format = strif.template('{name} has {messageCount} messages', {
props: {
name: {
transformers: ['capitalize']
}
}
});
We could do something like:
const format = strif.template('{name | capitalize} has {messageCount} messages');
What if instead of doing this, if just one transformer is applied:
We could do something like: