feat: Alle SweetAlert-Titel und -Nachrichten von Englisch auf Deutsch übersetzt.

This commit is contained in:
Developer 02 2024-08-08 14:50:36 +02:00
parent be1bc2889f
commit d6f909a81b
4 changed files with 7 additions and 8 deletions

View File

@ -55,11 +55,10 @@ export class GroupDirImportComponent implements OnInit {
forkJoin(requests).pipe( forkJoin(requests).pipe(
// finalize is executed after all requests are completed or when an error occurs // finalize is executed after all requests are completed or when an error occurs
finalize(() => { finalize(() => {
// Show Swal notification after all requests are completed
Swal.fire({ Swal.fire({
icon: "success", icon: "success",
title: "Completed", title: "Abgeschlossen",
text: `${numAdded} new groups added`, text: `${numAdded} neue Gruppen hinzugefügt`,
position: "center", position: "center",
showConfirmButton: false, showConfirmButton: false,
timer: 3000 timer: 3000

View File

@ -36,8 +36,8 @@ export class LoginComponent {
this.waitRes = false; this.waitRes = false;
Swal.fire({ Swal.fire({
icon: "error", icon: "error",
title: "Oops...", title: "Ungültiger Benutzername oder Passwort",
text: err.error.messages.join("\n"), text: "Bitte überprüfen Sie Ihre Anmeldedaten und versuchen Sie es erneut.",
}); });
}, },
complete: () => this.waitRes = false complete: () => this.waitRes = false

View File

@ -71,8 +71,8 @@ export class UserGroupDirImportComponent implements OnInit, AfterViewInit {
// Show Swal notification after all requests are completed // Show Swal notification after all requests are completed
Swal.fire({ Swal.fire({
icon: "success", icon: "success",
title: "Completed", title: "Abgeschlossen",
text: `${numAdded} new users added`, text: `${numAdded} neue Benutzer hinzugefügt`,
position: "center", position: "center",
showConfirmButton: false, showConfirmButton: false,
timer: 3000 timer: 3000

View File

@ -75,7 +75,7 @@ export class AuthenticationService {
Swal.fire({ Swal.fire({
icon: "error", icon: "error",
title: "Oops...", title: "Oops...",
text: "The backend application is not responding.", text: "Der Server antwortet nicht.",
}); });
} }
} }