Add translations
This commit is contained in:
parent
a7d59b4d71
commit
c3602ac318
3 changed files with 10 additions and 2 deletions
|
@ -115,10 +115,10 @@
|
|||
<% if user_signed_in? %>
|
||||
<% if @passport.passport_confirmations.where(user: current_user).exists? %>
|
||||
<button class="btn btn-primary" disabled>
|
||||
Confirm
|
||||
<%= translate '.confirm' %>
|
||||
</button>
|
||||
<% else %>
|
||||
<%= link_to 'Confirm',
|
||||
<%= link_to translate('.confirm'),
|
||||
passport_passport_confirmations_path(@passport),
|
||||
method: :post,
|
||||
role: :button,
|
||||
|
|
4
config/locales/views/en.yml
Normal file
4
config/locales/views/en.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
passports:
|
||||
show:
|
||||
confirm: Confirm
|
4
config/locales/views/ru.yml
Normal file
4
config/locales/views/ru.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
ru:
|
||||
passports:
|
||||
show:
|
||||
confirm: Подтвердить
|
Reference in a new issue