matthutchinson / acts_as_textcaptcha

Text-based logic question captcha's for Rails 🚫🤖

Home Page:https://acts-as-textcaptcha.hiddenloop.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error messages are not translatable

aramollis opened this issue · comments

it seems the error messages are not translatable:

def add_textcaptcha_error(too_slow: false)
if too_slow
errors.add(:textcaptcha_answer, :expired, message: "was not submitted quickly enough, try another question instead")
else
errors.add(:textcaptcha_answer, :incorrect, message: "is incorrect, try another question instead")
end
end