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": "Connected",
|
||||
"disconnected": "Disconnected",
|
||||
"error": "Connection error"
|
||||
},
|
||||
"reloadRooms": "Reload rooms",
|
||||
"createRoom": {
|
||||
"toggleShowChat": "Show chat",
|
||||
"toggleCreateRoom": "Create room",
|
||||
"title": "Create new room",
|
||||
"commandPrefix": "Command",
|
||||
"labels": {
|
||||
"roomName": "Room name",
|
||||
"visibility": "Visibility",
|
||||
"gender": "Gender",
|
||||
"minAge": "min_age",
|
||||
"maxAge": "max_age",
|
||||
"password": "Password",
|
||||
"rightId": "right_id",
|
||||
"typeId": "type_id",
|
||||
"friendsOnly": "friends_only=true"
|
||||
},
|
||||
"placeholders": {
|
||||
"roomName": "e.g. Lounge",
|
||||
"password": "without spaces"
|
||||
},
|
||||
"options": {
|
||||
"none": "(none)"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Create room",
|
||||
"reset": "Reset"
|
||||
},
|
||||
"validation": {
|
||||
"roomNameRequired": "Room name is required.",
|
||||
"minAgeInvalid": "min_age must be >= 0.",
|
||||
"maxAgeInvalid": "max_age must be >= 0.",
|
||||
"ageRangeInvalid": "min_age must not be greater than max_age.",
|
||||
"passwordSpaces": "Password must not contain spaces.",
|
||||
"rightIdInvalid": "right_id must be > 0.",
|
||||
"typeIdInvalid": "type_id must be > 0."
|
||||
},
|
||||
"messages": {
|
||||
"noConnection": "No connection to chat server.",
|
||||
"invalidForm": "Please correct the room form inputs.",
|
||||
"roomNameMissing": "Please enter a room name.",
|
||||
"sent": "Room creation sent: {command}"
|
||||
},
|
||||
"rights": {},
|
||||
"types": {}
|
||||
}
|
||||
},
|
||||
"randomchat": {
|
||||
|
||||
Reference in New Issue
Block a user