Search results popup title language

1715
3
Jump to solution
01-17-2023 07:55 AM
LeidavanHees
New Contributor III

Hello!

 

I have a search widget in 4.24 which works wonderfully. However the popup that shows the search results has an English title. While everything else is in Dutch (including other elements of this popup). Is there a way to change (the language of) the title?

LeidavanHees_0-1673970708689.png

 

Thank you in advance!

Leida

0 Kudos
1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

Hi @LeidavanHees -

Thanks for reporting this! There is an issue with the translation for the popup title in Dutch for the Search result. We will get this fixed in an upcoming release.

In the meantime, if you'd like to customize the Search result's popup title, you could populate the search widget's popup template when the search-complete event occurs with a custom title and information from the first item in the search results:

searchWidget.on("search-complete", (event) => {
  console.log(event)
  searchWidget.popupTemplate = {
    title: "Zoekresultaat",
    content: event.results[0].results[0].name
  }
});

Here's a codepen showing this workflow: https://codepen.io/laurenb14/pen/XWBZoBN?editors=1000 

Hope this helps!

Lauren

View solution in original post

3 Replies
LaurenBoyd
Esri Contributor

Hi @LeidavanHees -

Thanks for reporting this! There is an issue with the translation for the popup title in Dutch for the Search result. We will get this fixed in an upcoming release.

In the meantime, if you'd like to customize the Search result's popup title, you could populate the search widget's popup template when the search-complete event occurs with a custom title and information from the first item in the search results:

searchWidget.on("search-complete", (event) => {
  console.log(event)
  searchWidget.popupTemplate = {
    title: "Zoekresultaat",
    content: event.results[0].results[0].name
  }
});

Here's a codepen showing this workflow: https://codepen.io/laurenb14/pen/XWBZoBN?editors=1000 

Hope this helps!

Lauren
LeidavanHees
New Contributor III

Hi Lauren,

 

That works beautifully, thank you very much for the help!

0 Kudos
Noah-Sager
Esri Regular Contributor

Follow-up: we will have this translation fix installed at the next release, anticipated in late February.