runeforge 0.0.11 → 0.0.12

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.
@@ -191,7 +191,7 @@
191
191
 
192
192
  {#if pendingDeletion !== null}
193
193
  <Modal title={deleteLabel} onClose={() => (pendingDeletion = null)}>
194
- <p>{strings.deleteConfirm(pendingDeletion.length)}</p>
194
+ <p>{strings.deleteConfirm(pendingDeletion.length, deleteLabel)}</p>
195
195
  <div class="flex justify-end gap-2 mt-4">
196
196
  <Button variant="ghost" onclick={() => (pendingDeletion = null)}>
197
197
  {strings.cancel}
package/dist/i18n/en.js CHANGED
@@ -20,7 +20,7 @@ export const en = {
20
20
  cancel: 'Cancel',
21
21
  back: 'Back',
22
22
  confirm: 'Confirm',
23
- deleteConfirm: (count) => `Are you sure you want to delete ${count} item${count === 1 ? '' : 's'}?`,
23
+ deleteConfirm: (count, actionLabel) => `Are you sure you want to ${String(actionLabel).toLowerCase()} ${count} item${count === 1 ? '' : 's'}?`,
24
24
  required: (field) => `${field} is required`,
25
25
  serverError: 'Unexpected server error.',
26
26
  };
package/dist/i18n/es.js CHANGED
@@ -20,7 +20,7 @@ export const es = {
20
20
  cancel: 'Cancelar',
21
21
  back: 'Volver',
22
22
  confirm: 'Confirmar',
23
- deleteConfirm: (count) => `¿Seguro que querés eliminar ${count} elemento${count === 1 ? '' : 's'}?`,
23
+ deleteConfirm: (count, actionLabel) => `¿Seguro que querés ${String(actionLabel).toLowerCase()} ${count} elemento${count === 1 ? '' : 's'}?`,
24
24
  required: (field) => `${field} es requerido`,
25
25
  serverError: 'Error inesperado del servidor.',
26
26
  };
@@ -20,7 +20,7 @@ export interface RuneforgeStrings {
20
20
  cancel: string;
21
21
  back: string;
22
22
  confirm: string;
23
- deleteConfirm: (count: number) => string;
23
+ deleteConfirm: (count: number, actionLabel: string) => string;
24
24
  required: (field: string) => string;
25
25
  serverError: string;
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runeforge",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "SvelteKit toolkit for building metadata-driven CRUD interfaces with tables, forms, and actions",
5
5
  "license": "MIT",
6
6
  "author": "Ezequiel Puerta",