Add room creation options endpoint and integrate with chat UI: Implement getRoomCreateOptions in ChatController and ChatService, add corresponding API route, and enhance MultiChatDialog for room creation with localized labels and validation. Update i18n files for new room creation features.
This commit is contained in:
@@ -38,6 +38,52 @@
|
||||
"connected": "Verbunden",
|
||||
"disconnected": "Getrennt",
|
||||
"error": "Fehler bei der Verbindung"
|
||||
},
|
||||
"reloadRooms": "Räume neu laden",
|
||||
"createRoom": {
|
||||
"toggleShowChat": "Chat anzeigen",
|
||||
"toggleCreateRoom": "Raum anlegen",
|
||||
"title": "Neuen Raum erstellen",
|
||||
"commandPrefix": "Kommando",
|
||||
"labels": {
|
||||
"roomName": "Raumname",
|
||||
"visibility": "Sichtbarkeit",
|
||||
"gender": "Geschlecht",
|
||||
"minAge": "min_age",
|
||||
"maxAge": "max_age",
|
||||
"password": "Passwort",
|
||||
"rightId": "right_id",
|
||||
"typeId": "type_id",
|
||||
"friendsOnly": "friends_only=true"
|
||||
},
|
||||
"placeholders": {
|
||||
"roomName": "z. B. Lounge",
|
||||
"password": "ohne Leerzeichen"
|
||||
},
|
||||
"options": {
|
||||
"none": "(keine)"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Raum erstellen",
|
||||
"reset": "Zurücksetzen"
|
||||
},
|
||||
"validation": {
|
||||
"roomNameRequired": "Raumname ist erforderlich.",
|
||||
"minAgeInvalid": "min_age muss >= 0 sein.",
|
||||
"maxAgeInvalid": "max_age muss >= 0 sein.",
|
||||
"ageRangeInvalid": "min_age darf nicht größer als max_age sein.",
|
||||
"passwordSpaces": "Passwort darf keine Leerzeichen enthalten.",
|
||||
"rightIdInvalid": "right_id muss > 0 sein.",
|
||||
"typeIdInvalid": "type_id muss > 0 sein."
|
||||
},
|
||||
"messages": {
|
||||
"noConnection": "Keine Verbindung zum Chat-Server.",
|
||||
"invalidForm": "Bitte Eingaben im Raum-Formular korrigieren.",
|
||||
"roomNameMissing": "Bitte einen Raumnamen angeben.",
|
||||
"sent": "Raum-Erstellung gesendet: {command}"
|
||||
},
|
||||
"rights": {},
|
||||
"types": {}
|
||||
}
|
||||
},
|
||||
"randomchat": {
|
||||
|
||||
Reference in New Issue
Block a user