# Can only change button and error messages language on forms

**URL:** <https://community.hubspot.com/t/can-only-change-button-and-error-messages-language-on-forms/69694>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [November 21, 2022, 7:02pm UTC](https://community.hubspot.com/t/can-only-change-button-and-error-messages-language-on-forms/69694 "2022-11-21T19:02:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazevedo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lazevedo/32/39641_2.png) [@lazevedo](https://community.hubspot.com/u/lazevedo)\
**Post date:** [November 21, 2022, 7:02pm UTC](https://community.hubspot.com/t/can-only-change-button-and-error-messages-language-on-forms/69694/1 "2022-11-21T19:02:41Z")

</div>

When embedding the form I’d like to define the locale programmatically through Javascript and the “locale” option. The issue is that the fields of the form still load on the form Language defined under the “options” tab on Hubspot and only the Error Messages and Submit button change.

I would like to change the form fields “locale” dynamically but I can’t, only the error messages and submit button.

I even tried the “translations” attribute but also didn’t work.

hbspt.forms.create({

region: “na1”,

portalId: “”,

formId: “”,

target: ‘#contact-form-holder’,

locale: ‘fi’,

translations:{

fi:{}

}

});

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 22, 2022, 9:30pm UTC](https://community.hubspot.com/t/can-only-change-button-and-error-messages-language-on-forms/69694/2 "2022-11-22T21:30:17Z")

</div>

Hi, @lazevedo 👋 Thanks for reaching out. I have a few questions to help give the community more context:

- Is this a form you’ve created in-app?
- If so, do you have the “[Set as raw HTML](https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site#:~:text=form%20with%20CSS%3A-,In%20your%20HubSpot%20account%2C%20navigate%20to%20Marketing%20%3E%20Lead%20Capture%20%3E,raw%20HTML%20form%20switch%20on.)” option enabled?
- Like you, I do not see anything specifically called out for this option in the documentation — [Customize internationalization](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options#:~:text=Chinese%20(Hong%20Kong)-,Customize%20internationalization,-You%20can%20add) or [Create forms in multiple languages](https://knowledge.hubspot.com/forms/create-forms-in-multiple-languages)

Thanks for the additional information, it is helpful for the community.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![lazevedo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lazevedo/32/39641_2.png) [@lazevedo](https://community.hubspot.com/u/lazevedo)\
**Post date:** [November 23, 2022, 9:00am UTC](https://community.hubspot.com/t/can-only-change-button-and-error-messages-language-on-forms/69694/3 "2022-11-23T09:00:27Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) , the form was created in Hubspot and embedded in our external website (code below). When I’m embedding I put the “lang” option equal to “fi” for Finish language, and as you can see from the pictures the only thing that changes are the button and error messages, the field labels stay the same, isn’t there any way of automatically translating them ? Do I need to use the “translations” option and provide a translation for each field ?

I’m not using Set as Raw HTML option, but I also tried with that and was same result.

hbspt.forms.create({

region: “na1”,

portalId: “7964828”,

formId: “3208194c-4bf1-45f1-823d-015c7979846b”,

target: ‘#contact-form-holder’,

locale:‘fi’

});

 ![field-still-in-english-submit-button-in-finish-and-errors.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/3/3bd7a61834015d4a59a9e161618772bdebfdb3be.png)
