How to change the text in the facets when showing how many results out of total products?

Topic summary

A user is developing a Shopify site in Dutch using the Search & Discovery app and encountered a mistranslation in the facet results display. The text currently shows ‘2 korting op 86 producten’ (2 discounts on 86 products) instead of the desired ‘2 van de 86 producten’ (2 out of 86 products).

Solution provided:

  • Navigate to: Online Store > Themes > click ‘…’ on current theme > Edit default theme content
  • Search for ‘results_with_count’
  • Edit the translation text directly in the theme language settings

The issue was resolved successfully. The problem stemmed from Shopify’s default translation files rather than the Liquid template code itself.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

We are using the Search & Discovery app to make facets. As we are developing our site in the Dutch Language, we noticed a mistranslation. It currently says: ‘2 korting op 86 producten’ which translates to ‘2 discounts on 86 products’. How can we change this text such that it says ‘2 van de 86 producten’ which would translate to ‘2 out of 86 products’. I included a picture of how it looks now, and I also included the code which I think should be adjusted.

 <p class="mobile-facets__count">
                  {%- if results.results_count -%}
                    {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }}
                  {%- elsif results.products_count == results.all_products_count -%}
                    {{ 'products.facets.product_count_simple' | t: count: results.products_count }}
                  {%- else -%}
                    {{
                      'products.facets.product_count'
                      | t: product_count: results.products_count, count: results.all_products_count
                    }}
                  {%- endif -%}
                </p>

Site is marwijn.com
The password to view is test123

Hi @martijn18

You can find and edit that text from Online Store > Themes > click “…” in the current theme > Edit default theme content.

Enter this on search “results_with_count”

Perfect, thank you very much!