@bytebrand/fe-ui-core 4.8.7 → 4.8.9
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
|
@@ -153,8 +153,8 @@ const getDecoratedLightProps = (
|
|
|
153
153
|
const wltpWeightedPowerCombined = car.consumption.wltpWeightedPowerCombined;
|
|
154
154
|
const wltpWeightedCombined = car.consumption.wltpWeightedCombined;
|
|
155
155
|
|
|
156
|
-
const wltpWeightedPowerCombinedContent = wltpWeightedPowerCombined ? t('vehicleProps:value.
|
|
157
|
-
const wltpWeightedCombinedContent = wltpWeightedCombined ? t('vehicleProps:value.
|
|
156
|
+
const wltpWeightedPowerCombinedContent = wltpWeightedPowerCombined ? t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit }) : null;
|
|
157
|
+
const wltpWeightedCombinedContent = wltpWeightedCombined ? t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit }) : null;
|
|
158
158
|
|
|
159
159
|
if (hybridPlugin) {
|
|
160
160
|
if (wltpWeightedPowerCombinedContent && wltpWeightedCombinedContent && wltpCo2PluginValue) {
|
|
@@ -233,8 +233,8 @@ const getDecoratedLightProps = (
|
|
|
233
233
|
|
|
234
234
|
const consumptionPowerCombinedContent = t('vehicleProps:value.consumptionPowerCombined', { consumption: consumptionPowerCombined.toLocaleString(language), unit: translatedUnit });
|
|
235
235
|
const consumptionCombinedContent = t('vehicleProps:value.consumptionCombined', { consumption: consumptionCombined.toLocaleString(language), unit: translatedUnit });
|
|
236
|
-
const wltpWeightedPowerCombinedContent = t('vehicleProps:value.
|
|
237
|
-
const wltpWeightedCombinedContent = t('vehicleProps:value.
|
|
236
|
+
const wltpWeightedPowerCombinedContent = t('vehicleProps:value.wltpWeightedPowerCombined', { consumption: wltpWeightedPowerCombined.toLocaleString(language), unit: translatedUnit });
|
|
237
|
+
const wltpWeightedCombinedContent = t('vehicleProps:value.wltpWeightedCombined', { consumption: wltpWeightedCombined.toLocaleString(language), unit: translatedUnit });
|
|
238
238
|
const wltpConsumptionPowerCombinedContent = wltpConsumptionPowerCombined
|
|
239
239
|
? t('vehicleProps:value.wltpPowerCombined', { consumption: wltpConsumptionPowerCombined.toLocaleString(language), unit: translatedUnit })
|
|
240
240
|
: null;
|
package/source/locales/data.ts
CHANGED
|
@@ -87,6 +87,8 @@ export const vehicleProps = (car?: any, isOfferAvailable: boolean = true) => {
|
|
|
87
87
|
wltpCo2Combined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, komb)*`,
|
|
88
88
|
wltpCo2WtdCombined: `${getFormattedNumber(vehicleOption.wltpCo2)}g CO2/km (WLTP, gew., komb)*`,
|
|
89
89
|
wltpCombined: `${getFormattedNumber(vehicleOption.wltpCombined) || getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
|
|
90
|
+
wltpWeightedCombined: `${getFormattedNumber(vehicleOption.wltpWeightedCombined)}l/100km`,
|
|
91
|
+
wltpWeightedPowerCombined: `${getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
|
|
90
92
|
wltpPowerCombined: `${getFormattedNumber(vehicleOption.wltpPowerCombined) || getFormattedNumber(vehicleOption.wltpWeightedPowerCombined)}kWh/100km`,
|
|
91
93
|
wltpCombinedGas: `${getFormattedNumber(vehicleOption.wltpCombined) || getFormattedNumber(vehicleOption.wltpWeightedCombined)}kg/100km`
|
|
92
94
|
},
|