diff --git a/mathesar_ui/src/components/breadcrumb/BreadcrumbSelector.svelte b/mathesar_ui/src/components/breadcrumb/BreadcrumbSelector.svelte index 9c7cbb278d..e32cc16291 100644 --- a/mathesar_ui/src/components/breadcrumb/BreadcrumbSelector.svelte +++ b/mathesar_ui/src/components/breadcrumb/BreadcrumbSelector.svelte @@ -7,7 +7,8 @@ } from '@mathesar/component-library'; import TextInputWithPrefix from '@mathesar/component-library/text-input/TextInputWithPrefix.svelte'; import { iconExpandRight } from '@mathesar/icons'; - import { labeledCount } from '@mathesar/utils/languageUtils'; + import { _ } from 'svelte-i18n'; + import { RichText } from '@mathesar/components/rich-text'; import BreadcrumbSelectorRow from './BreadcrumbSelectorRow.svelte'; import type { BreadcrumbSelectorData } from './breadcrumbTypes'; import { filterBreadcrumbSelectorData } from './breadcrumbUtils'; @@ -71,10 +72,21 @@ {#if filterString?.length === 0} {categoryName} {:else} - {labeledCount(entries, 'matches')} - for - {filterString} - {processedData.size > 1 ? `in ${categoryName}` : ''} + 1 ? 1 : 0, + }, + })} + let:slotName + > + {#if slotName === 'searchValue'} + {filterString} + {:else if slotName === 'categoryName'} + {categoryName} + {/if} + {/if}