@internetarchive/collection-browser 4.8.1-webdev-9227.2 → 4.8.1-webdev-9227.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ import { updateSelectedFacetBucket } from './utils/facet-utils';
15
15
  import chevronIcon from './assets/img/icons/chevron';
16
16
  import { srOnlyStyle } from './styles/sr-only';
17
17
  import { sha1 } from './utils/sha1';
18
+ import { getLocale } from './utils/get-locale';
18
19
  import '@internetarchive/elements/ia-combo-box/ia-combo-box';
19
20
  import './empty-placeholder';
20
21
  import './tiles/tile-dispatcher';
@@ -608,7 +609,9 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
608
609
  return nothing;
609
610
  const shouldShowSearching = this.searchResultsLoading || this.totalResults === undefined;
610
611
  const classes = classMap({ filtered: this.hasActiveFilters });
611
- const resultsCount = this.totalResults?.toLocaleString();
612
+ const resultsCount = this.totalResults === undefined
613
+ ? undefined
614
+ : new Intl.NumberFormat(getLocale()).format(this.totalResults);
612
615
  const resultsLabel = this.totalResults === 1 ? msg('Result') : msg('Results');
613
616
  // Added data-testid for Playwright testing
614
617
  return html `