@bytebrand/fe-ui-core 4.8.37 → 4.8.38
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
|
@@ -126,7 +126,7 @@ const getDecoratedLightProps = (
|
|
|
126
126
|
const consumptionPowerCombined = car.consumption.consumptionCombined;
|
|
127
127
|
const wltpEnergyEfficiencyClass = car.environmentEmissions.wltpEnergyEfficiencyClass;
|
|
128
128
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
129
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
129
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
130
130
|
: null;
|
|
131
131
|
|
|
132
132
|
const co2 = car.environmentEmissions.co2;
|
|
@@ -201,7 +201,7 @@ const getDecoratedLightProps = (
|
|
|
201
201
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
202
202
|
const wltpEnergyEfficiencyClass = car.environmentEmissions.wltpEnergyEfficiencyClass;
|
|
203
203
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
204
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
204
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
205
205
|
: null;
|
|
206
206
|
|
|
207
207
|
const wltpConsumptionValue = Number.isFinite(wltpConsumptionPowerCombined)
|
|
@@ -263,7 +263,7 @@ const getDecoratedLightProps = (
|
|
|
263
263
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
264
264
|
const wltpEnergyEfficiencyClass = car.environmentEmissions.wltpEnergyEfficiencyClass;
|
|
265
265
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
266
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
266
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
267
267
|
: null;
|
|
268
268
|
|
|
269
269
|
const co2Value = Number.isFinite(co2)
|
|
@@ -322,7 +322,7 @@ const getDecoratedLightProps = (
|
|
|
322
322
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
323
323
|
const wltpEnergyEfficiencyClass = car.environmentEmissions.wltpEnergyEfficiencyClass;
|
|
324
324
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
325
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
325
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
326
326
|
: null;
|
|
327
327
|
|
|
328
328
|
const consumptionValue = Number.isFinite(consumptionHydrogenCombined)
|
|
@@ -360,7 +360,7 @@ const getDecoratedLightProps = (
|
|
|
360
360
|
const wltpCo2 = car.environmentEmissions.wltpCo2;
|
|
361
361
|
const wltpEnergyEfficiencyClass = car.environmentEmissions.wltpEnergyEfficiencyClass;
|
|
362
362
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
363
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
363
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
364
364
|
: null;
|
|
365
365
|
|
|
366
366
|
const consumptionValue = Number.isFinite(consumptionGasCombined)
|
|
@@ -406,7 +406,7 @@ const getDecoratedLightProps = (
|
|
|
406
406
|
: t('vehicleProps:value.na');
|
|
407
407
|
|
|
408
408
|
const co2ClassValue = isPropDefined(wltpEnergyEfficiencyClass)
|
|
409
|
-
? t('vehicleProps:value.co2Class', { class: wltpEnergyEfficiencyClass })
|
|
409
|
+
? t('vehicleProps:value.co2Class', { class: t(`cbd:${wltpEnergyEfficiencyClass}`) })
|
|
410
410
|
: null;
|
|
411
411
|
|
|
412
412
|
return <>{consumptionValue} | {co2Value}{co2ClassValue ? <> | {co2ClassValue}</> : null}</>;
|