telegraf / telegraf-i18n

Internationalization middleware for Telegraf
MIT License
84 stars 31 forks source link

Add parameters handler #27

Closed sfarzoso closed 5 years ago

sfarzoso commented 5 years ago

Suppose I have the following json string:

"invalidProjectName": "Name of the project must be less than %s characters and must not be greather than %s characters!"

I want replace the %s from the caller, eg:

ctx.reply(ctx.i18n.t('invalidProjectName', 2, 12));

so I don't need to update the json string with the variables values.