mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:31:42 +00:00
feat: mantener el idioma de le usuarie en todos los links que envíe devise
This commit is contained in:
parent
da721ddaaf
commit
6887e5319a
6 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@
|
||||||
%p= site.description
|
%p= site.description
|
||||||
|
|
||||||
%p= link_to t('devise.mailer.invitation_instructions.accept'),
|
%p= link_to t('devise.mailer.invitation_instructions.accept'),
|
||||||
accept_invitation_url(@resource, invitation_token: @token)
|
accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
|
||||||
|
|
||||||
- if @resource.invitation_due_at
|
- if @resource.invitation_due_at
|
||||||
%p= t('devise.mailer.invitation_instructions.accept_until',
|
%p= t('devise.mailer.invitation_instructions.accept_until',
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
\
|
\
|
||||||
= site.description
|
= site.description
|
||||||
\
|
\
|
||||||
= accept_invitation_url(@resource, invitation_token: @token)
|
= accept_invitation_url(@resource, invitation_token: @token, change_locale_to: @resource.lang)
|
||||||
\
|
\
|
||||||
- if @resource.invitation_due_at
|
- if @resource.invitation_due_at
|
||||||
= t('devise.mailer.invitation_instructions.accept_until',
|
= t('devise.mailer.invitation_instructions.accept_until',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
%p= t('.greeting', recipient: @resource.email)
|
%p= t('.greeting', recipient: @resource.email)
|
||||||
%p= t('.instruction')
|
%p= t('.instruction')
|
||||||
%p= link_to t('.action'), edit_password_url(@resource, reset_password_token: @token)
|
%p= link_to t('.action'), edit_password_url(@resource, reset_password_token: @token, change_locale_to: @resource.lang)
|
||||||
%p= t('.instruction_2')
|
%p= t('.instruction_2')
|
||||||
%p= t('.instruction_3')
|
%p= t('.instruction_3')
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
\
|
\
|
||||||
= t('.instruction')
|
= t('.instruction')
|
||||||
\
|
\
|
||||||
= edit_password_url(@resource, reset_password_token: @token)
|
= edit_password_url(@resource, reset_password_token: @token, change_locale_to: @resource.lang)
|
||||||
\
|
\
|
||||||
= t('.instruction_2')
|
= t('.instruction_2')
|
||||||
\
|
\
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%p= t('.greeting', recipient: @resource.email)
|
%p= t('.greeting', recipient: @resource.email)
|
||||||
%p= t('.message')
|
%p= t('.message')
|
||||||
%p= t('.instruction')
|
%p= t('.instruction')
|
||||||
%p= link_to t('.action'), unlock_url(@resource, unlock_token: @token)
|
%p= link_to t('.action'), unlock_url(@resource, unlock_token: @token, change_locale_to: @resource.lang)
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
\
|
\
|
||||||
= t('.instruction')
|
= t('.instruction')
|
||||||
\
|
\
|
||||||
= unlock_url(@resource, unlock_token: @token)
|
= unlock_url(@resource, unlock_token: @token, change_locale_to: @resource.lang)
|
||||||
|
|
Loading…
Reference in a new issue