vue-recaptcha-v3: change language

To change the recaptcha language when its included via vue-recaptcha-v3, it needs to be set via loaderOptions.renderParameters.hl = ‘de’. Here is a simple example for usage in a component:

<script>
  import Vue from "vue";
  import { VueReCaptcha } from 'vue-recaptcha-v3';
	
  export default {
    data() {
      return {}
    },
    created() {
      Vue.use(VueReCaptcha, { 
        siteKey: 'xxxx', 
        loaderOptions: { renderParameters: { 'hl': 'de'}} 
      });
	}
  }
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.