@propeller-commerce/propeller-v2-react-ui 0.15.1 → 0.15.2

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.
package/dist/index.js CHANGED
@@ -9368,7 +9368,10 @@ function GridFilters(rawProps) {
9368
9368
  return filter?.attributeDescription?.name || "";
9369
9369
  }
9370
9370
  function getFilterTitle(filter) {
9371
- return filter?.attributeDescription?.descriptions?.[0]?.value || filter?.attributeDescription?.name || "";
9371
+ const descriptions = filter?.attributeDescription?.descriptions;
9372
+ const lang = props.language?.toUpperCase();
9373
+ const match = lang ? descriptions?.find((d) => d?.language?.toUpperCase() === lang) : void 0;
9374
+ return match?.value || descriptions?.[0]?.value || filter?.attributeDescription?.name || "";
9372
9375
  }
9373
9376
  function getFilteredFilters() {
9374
9377
  const list = props.filters ?? [];