- {{ card.secondLabel }}
+ {{ $t(card.secondLabel) }}
{{ card.secondValue ? card.secondValue : "-" }}
@@ -63,10 +63,10 @@
- {{ card.description.title }}
+ {{ $t(card.description.title) }}
- {{ card.description.value }}
+ {{ $t(card.description.value) }}
@@ -94,9 +94,9 @@ export default {
return {
cards: [
{
- title: "GENERAL",
- label: "Product name",
- secondLabel: "Product code",
+ title: "generalCards.titleGeneral",
+ label: "generalCards.productName",
+ secondLabel: "generalCards.productType",
icon: "mdi-pound",
value: this.$props.data.aspect.typology
? this.$props.data.aspect.typology.shortName
@@ -106,9 +106,9 @@ export default {
: "-",
},
{
- title: "MANUFACTURING",
- label: "Manufacturer Id",
- secondLabel: "Date of Manufacturing",
+ title: "generalCards.titleManufacturing",
+ label: "generalCards.manufacturerId",
+ secondLabel: "generalCards.dateOfManufacturing",
icon: "mdi-chart-timeline-variant-shimmer",
value: this.$props.data.aspect.operation.manufacturer
? this.$props.data.aspect.operation.manufacturer.manufacturer
@@ -117,35 +117,39 @@ export default {
? this.$props.data.aspect.operation.manufacturer.manufacturingDate
: "-",
description: {
- title: "Manufacturing",
- value: "Description of the manufacturing",
+ title: "generalCards.descriptionManufacturingTitle",
+ value: "generalCards.descriptionManufacturingValue",
},
},
{
- title: "ASPECT VERSION",
- label: "Current version",
- secondLabel: "Issued",
+ title: "generalCards.titleAspectVersion",
+ label: "generalCards.currentVersion",
+ secondLabel: "generalCards.issued",
icon: "mdi-aspect",
value: this.$props.data.aspect.metadata.version,
secondValue: this.$props.data.aspect.metadata.issueDate,
description: {
- title: "Aspect version",
- value: "Description of the aspect version",
+ title: "generalCards.descriptionAspectVersionTitle",
+ value: "generalCards.descriptionAspectVersionValue",
},
},
{
- title: "SUSTAINABILITY",
- label: "Total CO2 footprint",
- secondLabel: "Placed on market",
+
+ title: "generalCards.titleSustainability",
+ label: "generalCards.totalCo2Footprint",
+ secondLabel: "generalCards.warrantyPeriod",
icon: "mdi-leaf",
value: this.$props.data.aspect.sustainability["PEF"].carbon
? this.$props.data.aspect.sustainability["PEF"].carbon[0].value
: "-",
- valueUnits: "t CO2 Total",
- secondValue: this.$props.data.aspect.commercial.placedOnMarket,
+ valueUnits: "generalCards.tCo2Total",
+ secondValue: this.$props.data.aspect.commercial.warranty,
+ secondValueUnits: this.$props.data.aspect.commercial.warranty
+ ? "generalCards.months"
+ : "",
description: {
- title: "Sustainability",
- value: "Description of the Sustainability",
+ title: "generalCards.descriptionSustainabilityTitle",
+ value: "generalCards.descriptionSustainabilityValue",
},
},
],
diff --git a/src/components/passport/PassportHeader.vue b/src/components/passport/PassportHeader.vue
index acf1d7466..245dfb8e4 100644
--- a/src/components/passport/PassportHeader.vue
+++ b/src/components/passport/PassportHeader.vue
@@ -32,7 +32,7 @@
style="border: 2px solid; text-transform: initial"
>
- Back
+ {{ $t("passportHeader.backBtn") }}
diff --git a/src/components/passport/Section.vue b/src/components/passport/Section.vue
index 2c9e72b4d..a77bce3f1 100644
--- a/src/components/passport/Section.vue
+++ b/src/components/passport/Section.vue
@@ -1,127 +1,127 @@
-
-
-
-
-
-
- Sorry, no content
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ $t("section.noContent") }}
+
+
+
+
+
+
+
+
diff --git a/src/components/passport/sections/BatteryComposition.vue b/src/components/passport/sections/BatteryComposition.vue
index 8516804a4..dcaaa8f9a 100644
--- a/src/components/passport/sections/BatteryComposition.vue
+++ b/src/components/passport/sections/BatteryComposition.vue
@@ -34,12 +34,12 @@
data-cy="composition"
icon="mdi-newspaper-variant-outline"
:attributes-list="propsData.compositionOfBattery"
- label="Main Battery Composites"
+ :label="$t('sections.batteryComposition.batteryComposites')"
style="background: #f9f9f9; min-width: 300px"
/>
diff --git a/src/components/passport/sections/CellChemistry.vue b/src/components/passport/sections/CellChemistry.vue
index 48f463c4a..5d94bf71f 100644
--- a/src/components/passport/sections/CellChemistry.vue
+++ b/src/components/passport/sections/CellChemistry.vue
@@ -28,7 +28,7 @@
@@ -49,7 +49,7 @@
class="element-chart-label"
style="margin-left: -5px; margin-bottom: 15px"
>
- Recyclate Content Active Materials
+ {{ $t("sections.cellChemistry.recyclateContent") }}
diff --git a/src/components/passport/sections/Characteristics.vue b/src/components/passport/sections/Characteristics.vue
index b56845e7d..2f9eeaf90 100644
--- a/src/components/passport/sections/Characteristics.vue
+++ b/src/components/passport/sections/Characteristics.vue
@@ -26,63 +26,20 @@
- Physical dimension
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/src/components/passport/sections/Components.vue b/src/components/passport/sections/Components.vue
index a69b2adfd..a4d104f62 100644
--- a/src/components/passport/sections/Components.vue
+++ b/src/components/passport/sections/Components.vue
@@ -25,7 +25,7 @@
- {{ infoBarMessage }}
+ {{ $t(infoBarMessage) }}
- Capacity
+
+ {{ $t("sections.electrochemicalProperties.capacity") }}
+
- Efficiency
+
+ {{ $t("sections.electrochemicalProperties.efficiency") }}
+
@@ -75,14 +89,18 @@