@viur/shop-components 0.9.2 → 0.9.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viur/shop-components",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Frontend Vue components for the shop module of ViUR",
5
5
  "repository": {
6
6
  "type": "git",
package/src/Shop.vue CHANGED
@@ -99,7 +99,10 @@ const props = defineProps({
99
99
  },
100
100
  language:{
101
101
  default:"de"
102
- }
102
+ },
103
+ locale: {
104
+ default: 'de-DE',
105
+ },
103
106
  })
104
107
 
105
108
  const state = reactive({
@@ -112,6 +115,7 @@ onBeforeMount(()=>{
112
115
  state.translationsLoaded = true
113
116
  })
114
117
  shopStore.state.language = props.language
118
+ shopStore.state.locale = props.locale
115
119
  shopStore.state.showNodes = props.showCartNodes
116
120
  shopStore.state.debug = props.debug
117
121
  shopStore.state.topActions = props.topActions
@@ -77,7 +77,7 @@ const { pause:PaymentCheckPause, resume:PaymentCheckResume, isActive:PaymentChec
77
77
  const state = reactive({
78
78
  unzer:computed(()=>{
79
79
  if (!shopStore.state.paymentProviderData) return null
80
- return new unzer(shopStore.state.paymentProviderData["public_key"], {locale: 'de-DE'})
80
+ return new unzer(shopStore.state.paymentProviderData["public_key"], {locale: shopStore.state.locale})
81
81
  }),
82
82
  paymentHandler:{},
83
83
  loading:false,