@bytebrand/fe-ui-core 4.1.170 → 4.1.171

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.170",
3
+ "version": "4.1.171",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -10,6 +10,7 @@ import { priceRatings, priceRatingConfig } from '../constants/price';
10
10
  import { GOOGLE_BUNDLE_COOKIES, HUNDRED } from '../constants/common';
11
11
  import { offers } from '../constants';
12
12
  import { FILTERS_IN_TITLE, MANUFACTURER_KEY, MAX_FILTERS_IN_TITLE, MODEL_KEY } from '../constants/Search';
13
+ import { SearchPage as SearchPageTranslate } from '../../locales/data';
13
14
 
14
15
  const PRICE_DEFAULT = DROP_DOWN_GROUP[PRICE].defaultValue;
15
16
 
@@ -398,7 +399,11 @@ export const getSupportedImageFormat = (IMAGE_URL: string, vehicleID: string, im
398
399
  return webpFeature ? `${vehicleImageURL}/${size}-cached.webp` : `${vehicleImageURL}/${size}-cached.jpeg`;
399
400
  };
400
401
 
401
- export function getChipFilterValue(chip: any, t: (key: string, options?: object) => string, language: string = 'de') {
402
+ export function getChipFilterValue(
403
+ chip: any,
404
+ t: (key: string, options?: object) => string = (phrase: string, _?: object) => _get(SearchPageTranslate(chip), phrase.replace(':', '.'), phrase),
405
+ language: string = 'de'
406
+ ) {
402
407
  let filterValue: string;
403
408
  let title: string;
404
409
  let from: string;