Skip to content

Commit e0a54f2

Browse files
committed
updated
1 parent 98b8a07 commit e0a54f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

resources/views/googlerecaptchav3/template.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script {!! $nonce !!}>
1414
if (!document.getElementById('gReCaptchaScript')) {
1515
let reCaptchaScript = document.createElement('script');
16-
reCaptchaScript.setAttribute('src', '{{$apiJsUrl}}?render={{$publicKey}}');
16+
reCaptchaScript.setAttribute('src', '{{$apiJsUrl}}?render={{$publicKey}}&hl={{$language}}');
1717
reCaptchaScript.async = true;
1818
reCaptchaScript.defer = true;
1919
document.head.appendChild(reCaptchaScript);

src/GoogleReCaptchaV3.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function prepareBackgroundViewData()
6868
return [
6969
'publicKey' => $this->getConfig()->getSiteKey(),
7070
'display' => $this->getConfig()->getBackgroundBadgeDisplay(),
71+
'language' => $this->getConfig()->getLanguage(),
7172
'apiJsUrl' => $this->getConfig()->getApiJsUrl(),
7273
];
7374
}

0 commit comments

Comments
 (0)