# How to set response base on my language

**URL:** <https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525>\
**Category:** Get Help\
**Tags:** localization, auth0\
**Created:** [July 23, 2022, 4:47pm UTC](https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525 "2022-07-23T16:47:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![minh.nguyen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/minh.nguyen1/32/36731_2.png) [@minh.nguyen1](https://community.auth0.com/u/minh.nguyen1)\
**Post date:** [July 23, 2022, 4:47pm UTC](https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525/1 "2022-07-23T16:47:49Z")

</div>

Hello, I need the code to know how to set the response to be localized. And please don’t point to this link [Universal Login Internationalization](https://auth0.com/docs/customize/internationalization-and-localization/universal-login-internationalization). I watch this link for 10 times. I need the CODE how to config it. Please help me!!. Here is my code:

```auto
....
            if (config && "internalOptions" in config) {
                var leeway = config.internalOptions.leeway;
                if (leeway) {
                    var convertedLeeway = parseInt(leeway);

                    if (!isNaN(convertedLeeway)) {
                        config.internalOptions.leeway = convertedLeeway;
                    }
                }
            }

            var params = Object.assign({
                overrides: {
                    __tenant: config.auth0Tenant,
                    __token_issuer: config.authorizationServer.issuer,
                },
                domain: config.auth0Domain,
                clientID: config.clientID,
                redirectUri: config.callbackURL,
                responseType: 'code',
            }, config.internalOptions);

            var webAuth = new auth0.WebAuth(params);
          
            var databaseConnection = 'Username-Password-Authentication';
            var captcha = webAuth.renderCaptcha(
                document.querySelector('.captcha-container')
            );
....

```

---

<div class="post-metadata">

**Author:** ![Ferneside](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ferneside/32/33806_2.png) [@Ferneside](https://community.auth0.com/u/Ferneside)\
**Post date:** [July 25, 2022, 6:16am UTC](https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525/2 "2022-07-25T06:16:20Z")

</div>

Well, the problem consisted from parts:

1. inappropriate tool for requesting, that showed me mangled results;
2. Google has its own rules how to form response. For English language only link to english interface is inserted into page. For languages which are very different, the interface is returned in requested language at once[.](https://www.monkey.vin/)

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [November 25, 2024, 10:46pm UTC](https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525/3 "2024-11-25T22:46:50Z")

</div>

Hello @minh.nguyen1!

Which responses did you need to be localized? If you are looking for email templates, responses can be customized through [Liquid Syntax](https://auth0.com/docs/customize/email/email-templates/use-liquid-syntax-in-email-templates). Using [tags](https://auth0.com/docs/customize/email/email-templates/use-liquid-syntax-in-email-templates) should allow you to customize and set language settings there.

I hope this helps!

Best,  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 9, 2024, 10:47pm UTC](https://community.auth0.com/t/how-to-set-response-base-on-my-language/87525/4 "2024-12-09T22:47:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
