Skip to content

Commit

Permalink
Match recaptcha language to app's language
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Feb 1, 2024
1 parent ba149a0 commit df53e44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/contact_us/contacts/_new_left.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<% if !user_signed_in? && Rails.configuration.x.recaptcha.enabled then %>
<div class="form-group">
<%= label_tag(nil, _('Security check')) %>
<%= recaptcha_tags %>
<%= recaptcha_tags(hl: @current_locale) %>
</div>
<% end %>
<%= f.button(_('Submit'), class: "btn btn-default", type: "submit") %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/passwords/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<% if Rails.configuration.x.recaptcha.enabled %>
<div class="form-group">
<%= label_tag(nil, _('Security check')) %>
<%= recaptcha_tags %>
<%= recaptcha_tags(hl: @current_locale) %>
</div>
<% end %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_create_account_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<% if Rails.configuration.x.recaptcha.enabled %>
<div class="form-group">
<%= label_tag(nil, _('Security check')) %>
<%= recaptcha_tags %>
<%= recaptcha_tags(hl: @current_locale) %>
</div>
<% end %>
<%= f.button(_('Create account'), class: "btn btn-default", type: "submit") %>
Expand Down

0 comments on commit df53e44

Please sign in to comment.