@afeefa/vue-app 0.0.245 → 0.0.246

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.
@@ -1 +1 @@
1
- 0.0.245
1
+ 0.0.246
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.245",
3
+ "version": "0.0.246",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -1,7 +1,13 @@
1
1
  export function formatEuroPrice (price) {
2
2
  if (!price) {
3
- return '0,00 €'
3
+ return ''
4
4
  }
5
- return price.toLocaleString() + ' €'
5
+
6
+ const formatter = new Intl.NumberFormat('de-DE', {
7
+ style: 'currency',
8
+ currency: 'EUR'
9
+ })
10
+
11
+ return formatter.format(price)
6
12
  }
7
13