From c3602ac318f6756ef14f49c8b695f2a723769974 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Fri, 30 Nov 2018 17:27:06 +0500 Subject: [PATCH] Add translations --- app/views/passports/show.html.erb | 4 ++-- config/locales/views/en.yml | 4 ++++ config/locales/views/ru.yml | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 config/locales/views/en.yml create mode 100644 config/locales/views/ru.yml diff --git a/app/views/passports/show.html.erb b/app/views/passports/show.html.erb index 200a25f..71862c5 100644 --- a/app/views/passports/show.html.erb +++ b/app/views/passports/show.html.erb @@ -115,10 +115,10 @@ <% if user_signed_in? %> <% if @passport.passport_confirmations.where(user: current_user).exists? %> <% else %> - <%= link_to 'Confirm', + <%= link_to translate('.confirm'), passport_passport_confirmations_path(@passport), method: :post, role: :button, diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml new file mode 100644 index 0000000..7fc86f5 --- /dev/null +++ b/config/locales/views/en.yml @@ -0,0 +1,4 @@ +en: + passports: + show: + confirm: Confirm diff --git a/config/locales/views/ru.yml b/config/locales/views/ru.yml new file mode 100644 index 0000000..5b51a13 --- /dev/null +++ b/config/locales/views/ru.yml @@ -0,0 +1,4 @@ +ru: + passports: + show: + confirm: Подтвердить