File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
resources/views/googlerecaptchav3 Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 13
13
<script {!! $nonce ! !} >
14
14
if (! document .getElementById (' gReCaptchaScript' )) {
15
15
let reCaptchaScript = document .createElement (' script' );
16
- reCaptchaScript .setAttribute (' src' , ' {{ $apiJsUrl } } ?render={{ $publicKey } }' );
16
+ reCaptchaScript .setAttribute (' src' , ' {{ $apiJsUrl } } ?render={{ $publicKey } }&hl= {{ $language } } ' );
17
17
reCaptchaScript .async = true ;
18
18
reCaptchaScript .defer = true ;
19
19
document .head .appendChild (reCaptchaScript);
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ public function prepareBackgroundViewData()
68
68
return [
69
69
'publicKey ' => $ this ->getConfig ()->getSiteKey (),
70
70
'display ' => $ this ->getConfig ()->getBackgroundBadgeDisplay (),
71
+ 'language ' => $ this ->getConfig ()->getLanguage (),
71
72
'apiJsUrl ' => $ this ->getConfig ()->getApiJsUrl (),
72
73
];
73
74
}
You can’t perform that action at this time.
0 commit comments