1
0
Fork 0

Add translations

This commit is contained in:
Alex Kotov 2018-11-30 17:27:06 +05:00
parent a7d59b4d71
commit c3602ac318
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
3 changed files with 10 additions and 2 deletions

View file

@ -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,

View file

@ -0,0 +1,4 @@
en:
passports:
show:
confirm: Confirm

View file

@ -0,0 +1,4 @@
ru:
passports:
show:
confirm: Подтвердить