Integration error "Locale"

Hi,

We are integrating the search experience in italian.

when navigating through the experience itself in staging we get the following error.
“it-answers.min.js:1 Uncaught Error: Language it is not supported”

Entities locales, experience locale, page locale are set correctly.

Any ideas what it might be?

Thank you.

Lucas B.

Hey Lucas,

We think we’ve found the issue. When using ‘Mapbox’ for maps, the language options are rather limited. Here are the languages that Mapbox supports:

  • Arabic: ar
  • Chinese: zh
  • English: en
  • French: fr
  • German: de
  • Japanese: ja
  • Korean: ko
  • Portuguese: pt
  • Russian: ru
  • Spanish: es

As you can see, unfortunately Italian is not supported by Mapbox.

Moving forward, there are a few options.
a) Use Google Maps rather than Mapbox to see the Map in Italian
b) Specify a different locale (from the list above) in the Map component’s config. This isn’t ideal, but if there’s a standard fallback language, then it may be an acceptable option.

Best of luck!
Alexis

1 Like

Hi Alexis.

Thank you, I changed the map and it did solve it.

However now with Google map we get this error
InvalidValueError: setLabel: not a string; and no text property