Added **all** missing toast translations

ref #133
This commit is contained in:
Nicolai Ort 2021-04-15 15:42:29 +02:00
parent d015f97395
commit de5aa9237d
12 changed files with 45 additions and 19 deletions

View File

@ -86,7 +86,7 @@
if (processed_last_submit === true) {
processed_last_submit = false;
const toast = Toastify({
text: "Contact is being added...",
text: $_('contact-is-being-added'),
duration: -1,
}).showToast();
let address = {};
@ -123,7 +123,7 @@
modal_open = false;
//
Toastify({
text: "Contact added",
text: $_('contact-added'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -59,7 +59,7 @@ import { is_promise } from "svelte/internal";
let amount_cent = Math.floor(amount_input * 100);
processed_last_submit = false;
const toast = Toastify({
text: "adding donation",
text: $_('adding-donation'),
duration: -1,
}).showToast();
if (is_fixed) {
@ -79,7 +79,7 @@ import { is_promise } from "svelte/internal";
modal_open = false;
//
Toastify({
text: "donation_added",
text: $_('donation_added'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
@ -108,7 +108,7 @@ import { is_promise } from "svelte/internal";
modal_open = false;
//
Toastify({
text: "donation_added",
text: $_('donation_added'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -19,7 +19,7 @@
)
.then((resp) => {
Toastify({
text: "Donor deleted",
text: $_('donor-deleted'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -202,7 +202,7 @@
toast.hideToast();
recent_processed = true;
Toastify({
text: "Import finished",
text: $_('import-finished'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -17,7 +17,7 @@
MeService.meControllerRemove(true)
.then((resp) => {
Toastify({
text: "Profile deleted!",
text: $_('profile-deleted'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -43,7 +43,7 @@
if (processed_last_submit === true) {
processed_last_submit = false;
const toast = Toastify({
text: "Team is being added...",
text: $_('team-is-being-added'),
duration: -1,
}).showToast();
RunnerTeamService.runnerTeamControllerPost({
@ -55,7 +55,7 @@
modal_open = false;
//
Toastify({
text: "Team added",
text: $_('team-added'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -16,7 +16,7 @@
RunnerTeamService.runnerTeamControllerRemove(delete_team.id, true)
.then((resp) => {
Toastify({
text: "Team deleted",
text: $_('team-deleted'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -67,7 +67,7 @@
RunnerTeamService.runnerTeamControllerRemove(original.id, false)
.then((resp) => {
Toastify({
text: "Organization deleted",
text: $_('team-deleted'),
duration: 500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
@ -81,7 +81,7 @@
function submit() {
if (data_loaded === true && save_enabled) {
Toastify({
text: "updating team",
text: $_('updating-team'),
duration: 2500,
}).showToast();
let postdata = teamdata;
@ -92,7 +92,7 @@
Object.assign(original, teamdata);
original = original;
Toastify({
text: "updated team",
text: $_('updated-team'),
duration: 2500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();

View File

@ -34,7 +34,7 @@
`[data-id="triggered_table_actions_${trackid}"]`
).parentNode.parentNode.parentNode;
Toastify({
text: "Track is being updated...",
text: $_('track-is-being-updated'),
duration: 500,
}).showToast();
TrackService.trackControllerPut(trackid, {
@ -45,7 +45,7 @@
})
.then((r) => {
Toastify({
text: "Track was updated!",
text: $_('track-was-updated'),
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
duration: 1000,
}).showToast();

View File

@ -27,7 +27,7 @@
});
function submit() {
Toastify({
text: "updating permissions...",
text: $_('updating-permissions'),
duration: 2500,
}).showToast();
to_delete.forEach((d) => {

View File

@ -444,5 +444,18 @@
"payment-amount-must-be-greater-than-0-00eur": "Der Zahlungsbetrag muss größer als 0.00€ sein!",
"donation-updated": "Sponsoring wurde aktualisiert",
"updating-donation": "Sponsoring wird aktualisiert",
"donation-deleted": "Sponsoring gelöscht"
"donation-deleted": "Sponsoring gelöscht",
"please-wait-a-moment-your-login-is-still-being-processed": "Bitte warte einen Moment, deine Anmeldung wird verarbeitet",
"contact-is-being-added": "Kontakt wird erstellt...",
"contact-added": "Kontakt wurde hinzugefügt",
"adding-donation": "Sponsoring wird erstellt...",
"donation_added": "Sponsoring hinzugefügt",
"profile-deleted": "Profil gelöscht!",
"team-deleted": "Team gelöscht",
"team-is-being-added": "Team wird erstellt...",
"team-added": "Team wurde hinzugefügt",
"updating-team": "Team wird aktualisiert",
"updated-team": "Team wurde aktualisiert",
"track-is-being-updated": "Track wird aktualisiert...",
"track-was-updated": "Track wurde aktualisiert"
}

View File

@ -445,5 +445,18 @@
"payment-amount-must-be-greater-than-0-00eur": "Payment amount must be greater than 0.00€!",
"donation-updated": "Donation updated",
"updating-donation": "Updating donation",
"donation-deleted": "Donation deleted"
"donation-deleted": "Donation deleted",
"please-wait-a-moment-your-login-is-still-being-processed": "Please wait a moment, your login is still being processed",
"contact-is-being-added": "Contact is being added...",
"contact-added": "Contact added",
"adding-donation": "Adding donation...",
"donation_added": "Donation_added",
"profile-deleted": "Profile deleted!",
"team-deleted": "Team deleted",
"team-is-being-added": "Team is being added...",
"team-added": "Team added",
"updating-team": "Updating team",
"updated-team": "Updated team",
"track-is-being-updated": "Track is being updated...",
"track-was-updated": "Track was updated!"
}