From 289ff9763247a94d4555524d1500073af9038a36 Mon Sep 17 00:00:00 2001 From: Maciek Kucmus Date: Wed, 18 Dec 2024 13:07:02 +0100 Subject: [PATCH] fix(cms-base): display from price correctly (#1535) --- .changeset/lazy-phones-build.md | 5 +++++ packages/cms-base/components/SwListingProductPrice.vue | 3 ++- templates/vue-demo-store/i18n/de-DE/listing.json | 4 +++- templates/vue-demo-store/i18n/en-GB/listing.json | 4 +++- templates/vue-demo-store/i18n/pl-PL/listing.json | 4 +++- templates/vue-demo-store/nuxt.config.ts | 6 +++--- 6 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 .changeset/lazy-phones-build.md diff --git a/.changeset/lazy-phones-build.md b/.changeset/lazy-phones-build.md new file mode 100644 index 000000000..02f7b5422 --- /dev/null +++ b/.changeset/lazy-phones-build.md @@ -0,0 +1,5 @@ +--- +"@shopware-pwa/cms-base": patch +--- + +Display "from price" label correctly for Product price component. diff --git a/packages/cms-base/components/SwListingProductPrice.vue b/packages/cms-base/components/SwListingProductPrice.vue index 50ea33708..466bf4b5e 100644 --- a/packages/cms-base/components/SwListingProductPrice.vue +++ b/packages/cms-base/components/SwListingProductPrice.vue @@ -23,6 +23,7 @@ let translations: Translations = { listing: { variantsFrom: "variants from", previously: "previously", + from: "from", to: "to", }, }; @@ -73,7 +74,7 @@ const { > diff --git a/templates/vue-demo-store/i18n/de-DE/listing.json b/templates/vue-demo-store/i18n/de-DE/listing.json index b3ee9e4ef..03210e23a 100644 --- a/templates/vue-demo-store/i18n/de-DE/listing.json +++ b/templates/vue-demo-store/i18n/de-DE/listing.json @@ -8,6 +8,8 @@ "product": "Produkt", "products": "Produkte", "resetFilters": "Filter zurücksetzen", - "sort": "Sortieren nach" + "sort": "Sortieren nach", + "from": "Ab", + "variantsFrom": "Varianten ab" } } diff --git a/templates/vue-demo-store/i18n/en-GB/listing.json b/templates/vue-demo-store/i18n/en-GB/listing.json index fc119452e..d8c3d9064 100644 --- a/templates/vue-demo-store/i18n/en-GB/listing.json +++ b/templates/vue-demo-store/i18n/en-GB/listing.json @@ -8,6 +8,8 @@ "product": "Product", "products": "Products", "resetFilters": "Reset filters", - "sort": "Sort by" + "sort": "Sort by", + "from": "From", + "variantsFrom": "Variants from" } } diff --git a/templates/vue-demo-store/i18n/pl-PL/listing.json b/templates/vue-demo-store/i18n/pl-PL/listing.json index bdaabcc66..fc19cad25 100644 --- a/templates/vue-demo-store/i18n/pl-PL/listing.json +++ b/templates/vue-demo-store/i18n/pl-PL/listing.json @@ -8,6 +8,8 @@ "product": "Produkt", "products": "Produkty", "resetFilters": "Resetuj filtry", - "sort": "Sortuj według" + "sort": "Sortuj według", + "from": "Od", + "variantsFrom": "Warianty od" } } diff --git a/templates/vue-demo-store/nuxt.config.ts b/templates/vue-demo-store/nuxt.config.ts index db3cd765e..7c2602561 100644 --- a/templates/vue-demo-store/nuxt.config.ts +++ b/templates/vue-demo-store/nuxt.config.ts @@ -137,17 +137,17 @@ export default defineNuxtConfig({ locales: [ { code: "en-GB", - iso: "en-GB", + language: "en-GB", file: "en-GB.ts", }, { code: "pl-PL", - iso: "pl-PL", + language: "pl-PL", file: "pl-PL.ts", }, { code: "testde", - iso: "de-DE", + language: "de-DE", file: "de-DE.ts", localeId: "c19b753b5f2c4bea8ad15e00027802d4", },