Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDaDeng committed May 18, 2020
1 parent 98b8a07 commit e0a54f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/googlerecaptchav3/template.blade.php
Expand Up @@ -13,7 +13,7 @@
<script {!! $nonce !!}>
if (!document.getElementById('gReCaptchaScript')) {
let reCaptchaScript = document.createElement('script');
reCaptchaScript.setAttribute('src', '{{$apiJsUrl}}?render={{$publicKey}}');
reCaptchaScript.setAttribute('src', '{{$apiJsUrl}}?render={{$publicKey}}&hl={{$language}}');
reCaptchaScript.async = true;
reCaptchaScript.defer = true;
document.head.appendChild(reCaptchaScript);
Expand Down
1 change: 1 addition & 0 deletions src/GoogleReCaptchaV3.php
Expand Up @@ -68,6 +68,7 @@ public function prepareBackgroundViewData()
return [
'publicKey' => $this->getConfig()->getSiteKey(),
'display' => $this->getConfig()->getBackgroundBadgeDisplay(),
'language' => $this->getConfig()->getLanguage(),
'apiJsUrl' => $this->getConfig()->getApiJsUrl(),
];
}
Expand Down

0 comments on commit e0a54f2

Please sign in to comment.