diff --git a/src/components/donors/AddDonorModal.svelte b/src/components/donors/AddDonorModal.svelte index ffd938b6..b3ed21e3 100644 --- a/src/components/donors/AddDonorModal.svelte +++ b/src/components/donors/AddDonorModal.svelte @@ -75,7 +75,7 @@ if (processed_last_submit === true) { processed_last_submit = false; const toast = Toastify({ - text: "Donor is being added...", + text: $_('donor-is-being-added'), duration: -1, }).showToast(); let address = {}; @@ -92,6 +92,7 @@ firstname: firstname_input_value, lastname: lastname_input_value, address, + receiptNeeded: address_checked }; if (middlename_input_value) { postdata.middlename = middlename_input_value; @@ -111,7 +112,7 @@ modal_open = false; // Toastify({ - text: "Donor added", + text: $_('donor-added'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -169,11 +170,11 @@

- Create a new donor + {$_('create-a-new-donor')}

- Please provide the nessecary information to add a new donor + {$_('please-provide-the-nessecary-information-to-add-a-new-donor')}

@@ -291,7 +292,7 @@
+ class="font-medium text-gray-700">{$_('receipt-needed')}
{#if address_checked === true} diff --git a/src/components/donors/ConfirmDonorDeletion.svelte b/src/components/donors/ConfirmDonorDeletion.svelte index 2ae9a034..cabc0581 100644 --- a/src/components/donors/ConfirmDonorDeletion.svelte +++ b/src/components/donors/ConfirmDonorDeletion.svelte @@ -70,15 +70,11 @@

- - Do you want to delete this donor with all related donations? + {$_( + 'do-you-want-to-delete-this-donor-with-all-related-donations' + )}
- All associated donations will get deleted as well + {$_('all-associated-donations-will-get-deleted-as-well')}

@@ -89,13 +85,13 @@ on:click={deleteDonor} type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"> - Confirm, delete donor with all donations + {$_('confirm-delete-donor-with-all-donations')} diff --git a/src/components/donors/DonorDetail.svelte b/src/components/donors/DonorDetail.svelte index c617164c..26b6d220 100644 --- a/src/components/donors/DonorDetail.svelte +++ b/src/components/donors/DonorDetail.svelte @@ -59,7 +59,7 @@ function submit() { if (data_loaded === true && save_enabled) { Toastify({ - text: "donor is being updated", + text: $_('donor-is-being-updated'), duration: 2500, }).showToast(); editable.address.country = "DE"; @@ -74,7 +74,7 @@ Object.assign(original_data, editable); original_data=original_data; Toastify({ - text: "updated donor", + text: $_('updated-donor'), duration: 2500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -90,7 +90,7 @@ ) .then((resp) => { Toastify({ - text: "donor deleted", + text: $_('donor-deleted'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -105,7 +105,7 @@ {#await promise} - Loading donor details + {$_('loading-donor-details')} {:then}
@@ -123,7 +123,7 @@ d="M2 22a8 8 0 1 1 16 0H2zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm10 4h4v2h-4v-2zm-3-5h7v2h-7v-2zm2-5h5v2h-5V7z" />
  • - Donors{$_('donors')}delete donor + class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm">{$_('delete-donor')} {/if} {/if} {#if !delete_triggered} diff --git a/src/components/donors/DonorsEmptyState.svelte b/src/components/donors/DonorsEmptyState.svelte index f0666ca3..9a40980e 100644 --- a/src/components/donors/DonorsEmptyState.svelte +++ b/src/components/donors/DonorsEmptyState.svelte @@ -6,7 +6,7 @@

    - there are no donors yet
    - add your first donor + {$_('there-are-no-donors-yet')}
    + {$_('add-your-first-donor')}

    diff --git a/src/components/donors/DonorsOverview.svelte b/src/components/donors/DonorsOverview.svelte index ea300de4..9abb6e48 100644 --- a/src/components/donors/DonorsOverview.svelte +++ b/src/components/donors/DonorsOverview.svelte @@ -33,7 +33,7 @@ {:then} diff --git a/src/locales/en.json b/src/locales/en.json index 4e0d2cce..e7e5afce 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -251,5 +251,22 @@ "donors": "donors", "add-donor": "add donor", "donations": "donations", - "total-donation-amount": "total donation amount" + "total-donation-amount": "total donation amount", + "donor-is-being-added": "Donor is being added...", + "donor-added": "Donor added", + "create-a-new-donor": "Create a new donor", + "please-provide-the-nessecary-information-to-add-a-new-donor": "Please provide the nessecary information to add a new donor", + "receipt-needed": "Receipt needed", + "do-you-want-to-delete-this-donor-with-all-related-donations": "Do you want to delete this donor with all related donations", + "all-associated-donations-will-get-deleted-as-well": "All associated donations will get deleted as well", + "confirm-delete-donor-with-all-donations": "Confirm, delete donor with all donations", + "cancel-keep-donor": "Cancel, keep donor", + "donor-is-being-updated": "donor is being updated", + "updated-donor": "updated donor", + "donor-deleted": "donor deleted", + "loading-donor-details": "Loading donor details", + "delete-donor": "Delete donor", + "there-are-no-donors-yet": "there are no donors yet", + "add-your-first-donor": "add your first donor", + "donors-are-being-loaded": "donors are being loaded" }