diff --git a/src/assets/styles/components/general/header.scss b/src/assets/styles/components/general/header.scss index f9b677538..99ec0bc44 100644 --- a/src/assets/styles/components/general/header.scss +++ b/src/assets/styles/components/general/header.scss @@ -19,12 +19,11 @@ * * SPDX-License-Identifier: Apache-2.0 */ - @media (max-width: 585px) { - .header-container{ - padding: 0px 14px 0 0px!important; +@media (max-width: 585px) { + .header-container { + padding: 0px 14px 0 0px !important; } - } - +} .header-container { position: fixed; @@ -110,21 +109,14 @@ line-height: 1.42857; .language { color: $catena-x-blue; + margin: 0px 16px 0px 0px; + font-weight: 500; cursor: pointer; } .active { - font-weight: 500; color: black; border-bottom: 2px solid; } - - .inactive { - color: rgb(15 113 203 / 50%); - font-weight: 500; - cursor: not-allowed; - margin: 0px 16px 0px 0px; - line-height: 1.42857; - } } .role { diff --git a/src/components/general/Dialog.vue b/src/components/general/Dialog.vue index e2b50b644..59d5d38ab 100644 --- a/src/components/general/Dialog.vue +++ b/src/components/general/Dialog.vue @@ -29,7 +29,7 @@ - Description + {{ $t("dialog.description") }}

404

-

No description

+

{{ $t("dialog.noDescription") }}

diff --git a/src/components/general/ErrorComponent.vue b/src/components/general/ErrorComponent.vue index f8f51950f..f68a72997 100644 --- a/src/components/general/ErrorComponent.vue +++ b/src/components/general/ErrorComponent.vue @@ -1,115 +1,152 @@ - - - - - - - + + + + + + + + + diff --git a/src/components/general/Footer.vue b/src/components/general/Footer.vue index 97f91ecee..34ab95400 100644 --- a/src/components/general/Footer.vue +++ b/src/components/general/Footer.vue @@ -31,15 +31,16 @@ id="lnkHelp" target="_blank" :href="portalUrl+'/documentation/?path=docs'" - >Help + {{ $t("footer.help") }} +
Contact{{ $t("footer.contact") }}
@@ -47,98 +48,94 @@ id="lnkHelp" target="_blank" :href="portalUrl+'/imprint'" - >Imprint + {{ $t("footer.imprint") }} +
Privacy + {{ $t("footer.privacy") }} +
Terms of Service + > + {{ $t("footer.terms") }} +
Cookies + {{ $t("footer.cookies") }} +
Third Party Licenses + {{ $t("footer.thirdParty") }} +
- Legal notice + {{ $t("footer.legal") }}
- +
@@ -172,7 +169,7 @@ export default { return { VERSION, COMMIT_ID, - REPO_ENDPOINT + REPO_ENDPOINT, }; }, }; diff --git a/src/components/general/Header.vue b/src/components/general/Header.vue index 8dbab42e7..4ed327990 100644 --- a/src/components/general/Header.vue +++ b/src/components/general/Header.vue @@ -52,10 +52,9 @@ class="help-btn" :ripple="{ class: 'ripple-background' }" rounded - >Help + >{{ $t("header.helpBtn") }} - Here you can get help if you need to know more about - Catena-X + {{ $t("header.helpTooltip") }} @@ -84,11 +83,29 @@ class="menu-btn" @click="logout" > - Sign Out + {{ + $t("header.signOut") + }}
- DE - EN + DE + EN
@@ -124,6 +141,7 @@ export default { }, data() { return { + activeLanguage: this.$i18n.locale, profileHover: false, hamburgerMenu: false, profileMenu: false, @@ -142,6 +160,10 @@ export default { } }, methods: { + setLanguage(lang) { + this.activeLanguage = lang; + this.$i18n.locale = lang; + }, logout() { this.auth.logout(); }, diff --git a/src/components/general/LoadingComponent.vue b/src/components/general/LoadingComponent.vue index 4ca3ef6dd..6c2dc88a3 100644 --- a/src/components/general/LoadingComponent.vue +++ b/src/components/general/LoadingComponent.vue @@ -23,7 +23,7 @@ diff --git a/src/components/general/TabsComponent.vue b/src/components/general/TabsComponent.vue index 2190c2d63..e3bd35be0 100644 --- a/src/components/general/TabsComponent.vue +++ b/src/components/general/TabsComponent.vue @@ -29,7 +29,7 @@ :value="section.component" > - {{ section.label }} + {{ $t(section.label) }} diff --git a/src/components/passport/BarChart.vue b/src/components/passport/BarChart.vue index 3fed303c1..3f5366925 100644 --- a/src/components/passport/BarChart.vue +++ b/src/components/passport/BarChart.vue @@ -30,10 +30,10 @@ :style="`width: ${barChart(currentValue, maxValue)}; background: #0f71cb`" />
- {{ isNumeric(currentValue) ? currentValue : "No data" }} + {{ isNumeric(currentValue) ? currentValue : $t("barChart.noData") }}
- {{ isNumeric(maxValue) ? maxValue : "No data" }} + {{ isNumeric(maxValue) ? maxValue : $t("barChart.noData") }}
diff --git a/src/components/passport/BatteryCards.vue b/src/components/passport/BatteryCards.vue index 4f203665b..414422107 100644 --- a/src/components/passport/BatteryCards.vue +++ b/src/components/passport/BatteryCards.vue @@ -32,18 +32,21 @@ style="padding: 6px !important" >
- {{ card.title }} + {{ $t(card.title) }} - +
- {{ card.secondLabel }} + {{ $t(card.secondLabel) }}
- {{ card.label }} + {{ $t(card.label) }}
{{ card.value ? card.value : "-" }} {{ card.valueUnits }}
-
-
Charging Cycles
+
+
+ {{ $t("batteryCards.chargingCycles") }} +
- {{ card.secondLabel }} + {{ $t(card.secondLabel) }}
{{ card.secondValue ? card.secondValue : "-" }} @@ -87,10 +95,10 @@ @@ -103,6 +111,7 @@ diff --git a/src/components/passport/Field.vue b/src/components/passport/Field.vue index 6d8cb4d50..17aae0311 100644 --- a/src/components/passport/Field.vue +++ b/src/components/passport/Field.vue @@ -65,11 +65,14 @@
Temp ranges: - {{ tempMin }} {{ tempUnit }} to {{ tempMax }} {{ tempUnit }} + >{{ $t("field.tempRange") }} + {{ tempMin }} {{ tempUnit }} {{ $t("field.to") }} {{ tempMax }} + {{ tempUnit }} Reference test: {{ test }} + >{{ $t("field.referenceTest") }} {{ test }}
diff --git a/src/components/passport/GeneralCards.vue b/src/components/passport/GeneralCards.vue index 1b6b95c05..80d80c05a 100644 --- a/src/components/passport/GeneralCards.vue +++ b/src/components/passport/GeneralCards.vue @@ -31,7 +31,7 @@ style="padding: 6px !important" >
- {{ card.title }} + {{ $t(card.title) }}
- {{ card.label }} + {{ $t(card.label) }}
- {{ card.value ? card.value : "-" }} {{ card.valueUnits }} + {{ card.value ? $t(card.value) : "-" }} {{ $t(card.valueUnits) }}
- {{ card.secondLabel }} + {{ $t(card.secondLabel) }}
{{ card.secondValue ? card.secondValue : "-" }} @@ -63,10 +63,10 @@ @@ -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 @@ - - - - - - - - + + + + + + + + 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 @@