diff --git a/app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb b/app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb index 5b1029e..a31f507 100644 --- a/app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb +++ b/app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb @@ -1,3 +1,3 @@ -

Access completely denied as you have reached your attempts limit = <%= @limit %>.

-

Please contact your system administrator.

+

<%= I18n.t("devise.two_factor_authentication.max_login_attempts_reached") %> = <%= @limit %>.

+

<%= I18n.t("devise.two_factor_authentication.contact_administrator")%>

diff --git a/config/locales/en.yml b/config/locales/en.yml index ab459a0..b20a5be 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,3 +2,5 @@ en: devise: two_factor_authentication: attempt_failed: "Attempt failed." + max_login_attempts_reached: "Access completely denied as you have reached your attempts limit" + contact_administrator: "Please contact your system administrator." diff --git a/config/locales/ru.yml b/config/locales/ru.yml new file mode 100644 index 0000000..04fa32a --- /dev/null +++ b/config/locales/ru.yml @@ -0,0 +1,6 @@ +ru: + devise: + two_factor_authentication: + attempt_failed: "Неверный код." + max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации" + contact_administrator: "Пожалуйста, свяжитесь с системным администратором."