@afeefa/vue-app 0.0.245 → 0.0.247

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.247
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.247",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -7,10 +7,10 @@ export function formatDuration (duration) {
7
7
  const minutes = duration % 60
8
8
 
9
9
  if (hours) {
10
- const hours_str = hours.toLocaleString()
10
+ const hours_str = hours.toLocaleString('de-DE')
11
11
  const minutes_str = String(minutes).padStart(2, '0')
12
- return `${hours_str} h ${minutes_str} min`
12
+ return `${hours_str}:${minutes_str} h`
13
13
  } else {
14
- return `${minutes} min`
14
+ return `0:${minutes} h`
15
15
  }
16
16
  }
@@ -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