Change language and theme for turnstile

I am trying ti implement the Cloudflare turnstile Captcha on my webpage using jQuery. I need to modify the theme and language of the captcha. I added the properties language and theme as described on the documentation page however they dont seem to work like below:

 var render = turnstile.render('#example-container', {
        language: 'fr',
        theme: 'light',
        sitekey: 'ABCD',
        callback: function(token) {
            console.log(`Challenge Success ${token}`);

However these settings are not being applied. Am I doing something wrong