Hi,
I am trying to integrate hubspot form using
js.hsforms.net/forms/embed/v2.js script and
hbspt.forms.create method. I add property locale with value ‘lt’ and I provide translations object with the same key.
Translations work correctly, but when I type anything into the form, hubspot makes a request to url forms-na1.hubspot.com/submissions-validation/v1/validate
I get a response with code 400 and message: “Invalid input JSON on line 1, column 11: Cannot deserialize value of type `com.hubspot.linguine.core.Locale` from String \“LT\”: not one of the values accepted for Enum class: [DE, FI, VI_VN, BG, DA_DK, HR, FR, HU, UK, SL, ID, ZH_CN, LT_LT, KO_KR, SV, HE_IL, MS, EN, PT_BR, ES, CA_ES, ET_EE, EN_GB, ZH_HK, JA, TL, PL, RO, NL, NO, RU, BN, ES_MX, PT_PT, HI_IN, IT, AR_EG, ZH_TW, TR, SK_SK, CS, FR_CA, EL_GR, TH, AF_ZA]”
I have tried passing values “LT_LT”, “lt_lt”, “lt-lt”, “lt_LT”, but I always get the same error. It looks like somewhere in the script the value I provide gets changed from expected “LT_LT” to just “LT”.
Please advice how to fix it. Maybe I need to provide locale in specifinc format I haven’t tried yet? Or maybe I can disable these validation calls?