Facet summary, Reset facets link text not Translatable

Created on 10 May 2017, about 8 years ago
Updated 3 June 2025, 2 days ago

Hello,

We came across an issue with translations.

Steps to replicate:
1. Enable the Facets and facets summary module.
2. Add a facet summary block.
3. In facet summary settings, enable "Adds reset facets link."
4. Add some text in "Reset facets link text", like "Clear All".
5. Go to User Interface Translation "admin/config/regional/translate"
6. Search for text added, "Clear All". It is not searchable.

Reason is, When the text is passed via link class, it is not passed via t().

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇮🇳India vaibhavjain Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇰Denmark ressa Copenhagen

    For anyone who needs to translate the custom "Reset text" value, you can copy the facets/templates/facets-result-item.html.twig file to your theme and add |trans here: <span class="facet-item__value">{{ value|trans }}</span>.

Production build 0.71.5 2024