Skip to content

Commit

Permalink
fix(cms-base): display from price correctly (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus authored Dec 18, 2024
1 parent 11537c5 commit 289ff97
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-phones-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopware-pwa/cms-base": patch
---

Display "from price" label correctly for Product price component.
3 changes: 2 additions & 1 deletion packages/cms-base/components/SwListingProductPrice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ let translations: Translations = {
listing: {
variantsFrom: "variants from",
previously: "previously",
from: "from",
to: "to",
},
};
Expand Down Expand Up @@ -73,7 +74,7 @@ const {
>
<template #beforePrice
><span v-if="displayFrom || displayFromVariants" class="text-sm">{{
translations.listing.to
translations.listing.from
}}</span></template
>
</SwSharedPrice>
Expand Down
4 changes: 3 additions & 1 deletion templates/vue-demo-store/i18n/de-DE/listing.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"product": "Produkt",
"products": "Produkte",
"resetFilters": "Filter zurücksetzen",
"sort": "Sortieren nach"
"sort": "Sortieren nach",
"from": "Ab",
"variantsFrom": "Varianten ab"
}
}
4 changes: 3 additions & 1 deletion templates/vue-demo-store/i18n/en-GB/listing.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"product": "Product",
"products": "Products",
"resetFilters": "Reset filters",
"sort": "Sort by"
"sort": "Sort by",
"from": "From",
"variantsFrom": "Variants from"
}
}
4 changes: 3 additions & 1 deletion templates/vue-demo-store/i18n/pl-PL/listing.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"product": "Produkt",
"products": "Produkty",
"resetFilters": "Resetuj filtry",
"sort": "Sortuj według"
"sort": "Sortuj według",
"from": "Od",
"variantsFrom": "Warianty od"
}
}
6 changes: 3 additions & 3 deletions templates/vue-demo-store/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 289ff97

Please sign in to comment.