From a556966beda2302e5ad14ef97f4e7aa6126c527c Mon Sep 17 00:00:00 2001
From: aaronskiba <71047780+aaronskiba@users.noreply.github.com>
Date: Tue, 16 Jan 2024 09:22:00 -0700
Subject: [PATCH] Match recaptcha language to app's language
---
app/views/contact_us/contacts/_new_left.html.erb | 2 +-
app/views/devise/passwords/edit.html.erb | 2 +-
app/views/shared/_create_account_form.html.erb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/views/contact_us/contacts/_new_left.html.erb b/app/views/contact_us/contacts/_new_left.html.erb
index 3e67a5ce7b..809606dc3e 100644
--- a/app/views/contact_us/contacts/_new_left.html.erb
+++ b/app/views/contact_us/contacts/_new_left.html.erb
@@ -37,7 +37,7 @@
<% if !user_signed_in? && Rails.configuration.x.recaptcha.enabled then %>
<%= label_tag(nil, _('Security check')) %>
- <%= recaptcha_tags %>
+ <%= recaptcha_tags(hl: @current_locale) %>
<% end %>
<%= f.button(_('Submit'), class: "btn btn-default", type: "submit") %>
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb
index b658a735bd..6e380782cc 100644
--- a/app/views/devise/passwords/edit.html.erb
+++ b/app/views/devise/passwords/edit.html.erb
@@ -28,7 +28,7 @@
<% if Rails.configuration.x.recaptcha.enabled %>
<%= label_tag(nil, _('Security check')) %>
- <%= recaptcha_tags %>
+ <%= recaptcha_tags(hl: @current_locale) %>
<% end %>
diff --git a/app/views/shared/_create_account_form.html.erb b/app/views/shared/_create_account_form.html.erb
index 531d458251..065c21e6e2 100644
--- a/app/views/shared/_create_account_form.html.erb
+++ b/app/views/shared/_create_account_form.html.erb
@@ -44,7 +44,7 @@
<% if Rails.configuration.x.recaptcha.enabled %>
<%= label_tag(nil, _('Security check')) %>
- <%= recaptcha_tags %>
+ <%= recaptcha_tags(hl: @current_locale) %>
<% end %>
<%= f.button(_('Create account'), class: "btn btn-default", type: "submit") %>