# How to translate auth0\_prompt\_partials

**URL:** <https://community.auth0.com/t/how-to-translate-auth0-prompt-partials/135910>\
**Category:** Get Help\
**Tags:** extensibility\
**Created:** [June 7, 2024, 1:46pm UTC](https://community.auth0.com/t/how-to-translate-auth0-prompt-partials/135910 "2024-06-07T13:46:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc4](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@marc4](https://community.auth0.com/u/marc4)\
**Post date:** [June 7, 2024, 1:46pm UTC](https://community.auth0.com/t/how-to-translate-auth0-prompt-partials/135910/1 "2024-06-07T13:46:24Z")

</div>

I’m currently adding some custom text to my universal login widget, using `form_content_end` in a `prompt_partials`. The prompt that I am adding informs users that by logging in, they agree to the terms and conditions.

I need to localize this content into 5 language, and my current method feels more clunky that I would expect.

I’m setting the `form_content_end` to this liquid template:

```html
<div>{{ prompt.screen.texts.varTermsAndConditions }}</div>

```

and I’m then creating a `auth0_prompt_custom_text` named `var-terms-and-conditions`, which I’m overriding for each language, with the actual localised content. Here is my `var-terms-conditions` for `en`, for example:

```html
By logging in you confirm that you accept the...

```

It would be much more convenient if I could specify the `language` directly when making my `auth0_prompt_partials`, so that I can avoid the indirection through the liquid. The only reason I need it is because I can’t specify a language on the partial.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 12, 2025, 10:19pm UTC](https://community.auth0.com/t/how-to-translate-auth0-prompt-partials/135910/3 "2025-03-12T22:19:02Z")

</div>

Hi @marc4,

Welcome to the Auth0 Community and sorry for the late reply.

You can actually specify the language directly when creating your `auth0_prompt_partials` by using the `locale` variable. For this option to work you’ll have to enable the locales in your tenant from Settings \> General, then you can implement this by following the example described in our documentation about [Dynamic Variables to Internationalize Custom Form Elements](https://auth0.com/docs/use-dynamic-variables-to-internationalize-custom-form-elements#enable-fr-and-es-locales).

Additionally you can also have a look at our documentation about **ui\_locales** from [Universal Login Internationalization](https://auth0.com/docs/customize/internationalization-and-localization/universal-login-internationalization#language-selection).

I hope this helps your case, but others as well.  
Thanks,  
Remus

---

<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:** [March 26, 2025, 10:19pm UTC](https://community.auth0.com/t/how-to-translate-auth0-prompt-partials/135910/4 "2025-03-26T22:19:34Z")

</div>

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