Facet Title Localization
I am looking to localize the facet section title I thought it will be picked up from Display Name field on the facet item defined under /sitecore/system/Settings/Buckets/Facets. But is not working, section title is picked up from what is given in facet component title. What is the purpose of "Display Field" ? Is there any other way of localizing the facet section title ?
Yes indeed, the Coveo Facet component does not get its title from the Sitecore facet item. The answer to this question might help you achieve what you want: https://answers.coveo.com/questions/884/facetview-in-sitecore-free-edition
Basically, you need to create an item from the
Facet Parameters template and point the
Datasource field of your facet component on the item. You can then add the language versions you need.
I hope this helps
This the solution that we implemented without having to override datasource of the component and have additional items for translations. We already have existing function for translations, all that function needed is the English word that needs translations. So we put our english version in facet component title field and then we wrapped it in our translation function in facet .ascx file as shown below.
Replace this <div class="CoveoFacet" data-title='<%= Model.Title %>'
<div class="CoveoFacet" data-title='<%= mycustomTranslator.Translate(Model.Title) %>'