XF 2.3 Issue with hCaptcha Language in Overlay Window

Hello,

On the /login page, when I click the "I forgot password" link, an overlay window opens with the password reset form, email input, and a captcha. The captcha in this overlay is displayed in English.

However, if I right-click the "I forgot password" link and choose "Open in new window," the captcha appears in the correct language according to the site's default locale. Current site locale: fr-fr

captcha_hcaptcha template:
XML:
<script src="https://hcaptcha.com/1/api.js?hl=fr" async defer></script>
<div data-xf-init="h-captcha" data-sitekey="{$siteKey}" data-invisible="{$invisible}"></div>

captcha template:
XML:
<xf:if is="$withRow">
  <xf:captcharow label="{{ $phrase ? $phrase : phrase('verification') }}" rowtype="{$rowType}" force="true" context="{$context}" />
<xf:else />
  <xf:captcha force="true" context="{$context}" />
</xf:if>

Problem:
  • Overlay window: hCaptcha is always in English.
  • New window/tab: hCaptcha appears in the site's default language (fr-fr).

It looks like the language parameter in the hCaptcha script (hl=fr) is properly set in the template, but for some reason, the overlay is not picking up the correct language setting.
How can I make the hCaptcha in the overlay window also display in the correct locale? Is there an additional setting or workaround for overlays in XenForo to ensure the locale is applied to the captcha?
 
Back
Top Bottom