text.js: Add support for $params in messages.