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(
// finalize is executed after all requests are completed or when an error occurs
finalize(() => {
// Show Swal notification after all requests are completed
Swal.fire({
icon: "success",
title: "Completed",
text: `${numAdded} new groups added`,
title: "Abgeschlossen",
text: `${numAdded} neue Gruppen hinzugefügt`,
position: "center",
showConfirmButton: false,
timer: 3000

View File

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

View File

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

View File

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