I18n.translate can translate error.messages as follows:
I18n.translate('error.messages.taken')
-> has already been taken
But there are error messages containing arguments such as:
I18n.translate('error.messages.greater_than_or_equal_to')
-> must be greater than or equal to %{count}"
Is it possible to pass the argument count to I18n.translate?
source
share