@motor-cms/ui-media 4.5.1 → 4.6.0

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.
@@ -33,6 +33,9 @@
33
33
  "copy_url": "URL kopieren",
34
34
  "preview": "Vorschau",
35
35
  "upload_progress": "Lade Datei {current} von {total} hoch...",
36
+ "upload_failed": "Hochladen von {name} fehlgeschlagen",
37
+ "upload_partial_success": "{uploaded} von {total} Dateien hochgeladen",
38
+ "update_failed": "Datei konnte nicht aktualisiert werden",
36
39
  "categories_required": "Bitte mindestens eine Kategorie auswählen",
37
40
  "files_required": "Bitte mindestens eine Datei auswählen",
38
41
  "view_gallery": "Galerie-Ansicht",
@@ -42,5 +45,8 @@
42
45
  "upload": "Hochladen",
43
46
  "remove": "Entfernen",
44
47
  "avatar_alt": "Profilbild",
45
- "usage_title": "Datei-Verwendung"
48
+ "usage_title": "Datei-Verwendung",
49
+ "help": {
50
+ "is_global": "Wenn aktiv, ist die Datei für alle Mandanten verfügbar. Sonst nur für den oben ausgewählten Mandanten."
51
+ }
46
52
  }
@@ -33,6 +33,9 @@
33
33
  "copy_url": "Copy URL",
34
34
  "preview": "Preview",
35
35
  "upload_progress": "Uploading file {current} of {total}...",
36
+ "upload_failed": "Failed to upload {name}",
37
+ "upload_partial_success": "{uploaded} of {total} files uploaded",
38
+ "update_failed": "Failed to update file",
36
39
  "categories_required": "Please select at least one category",
37
40
  "files_required": "Please select at least one file",
38
41
  "view_gallery": "Gallery view",
@@ -42,5 +45,8 @@
42
45
  "upload": "Upload",
43
46
  "remove": "Remove",
44
47
  "avatar_alt": "Profile avatar",
45
- "usage_title": "File Usage"
48
+ "usage_title": "File Usage",
49
+ "help": {
50
+ "is_global": "When enabled, the file is available to all clients. Otherwise only to the selected client above."
51
+ }
46
52
  }
@@ -1,3 +1,4 @@
1
1
  {
2
- "media": "Media"
2
+ "media": "Media",
3
+ "section_subtitle": "Manage files and media content"
3
4
  }
@@ -85,7 +85,7 @@ function handleSubmitError(err: unknown) {
85
85
  errorEl?.scrollIntoView({ behavior: 'smooth', block: 'center' })
86
86
  })
87
87
  } else {
88
- const message = err instanceof Error ? err.message : 'Failed to update file'
88
+ const message = err instanceof Error ? err.message : t('motor-media.files.update_failed')
89
89
  notifyError(t('motor-media.files.edit_title'), message)
90
90
  }
91
91
  }
@@ -119,7 +119,7 @@ async function onSubmit(event: { data: Record<string, unknown> }) {
119
119
  })
120
120
  } catch (err: unknown) {
121
121
  if (!handleServerError(err)) {
122
- const message = err instanceof Error ? err.message : `Failed to upload ${pending.file.name}`
122
+ const message = err instanceof Error ? err.message : t('motor-media.files.upload_failed', { name: pending.file.name })
123
123
  errors.push(`${pending.file.name}: ${message}`)
124
124
  }
125
125
  }
@@ -130,7 +130,7 @@ async function onSubmit(event: { data: Record<string, unknown> }) {
130
130
  router.push('/motor-media/files')
131
131
  } else if (errors.length < total) {
132
132
  const uploaded = total - errors.length
133
- success(t('motor-media.files.create_title'), `${uploaded}/${total} files uploaded`)
133
+ success(t('motor-media.files.create_title'), t('motor-media.files.upload_partial_success', { uploaded, total }))
134
134
  notifyError(t('motor-media.files.create_title'), errors.join('\n'))
135
135
  router.push('/motor-media/files')
136
136
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motor-cms/ui-media",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -17,4 +17,4 @@
17
17
  "nuxt": "^4.0.0",
18
18
  "vue": "^3.5.0"
19
19
  }
20
- }
20
+ }