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:
@@ -37,6 +37,52 @@
|
||||
"connected": "Conectado",
|
||||
"disconnected": "Desconectado",
|
||||
"error": "Error de conexión"
|
||||
},
|
||||
"reloadRooms": "Recargar salas",
|
||||
"createRoom": {
|
||||
"toggleShowChat": "Mostrar chat",
|
||||
"toggleCreateRoom": "Crear sala",
|
||||
"title": "Crear nueva sala",
|
||||
"commandPrefix": "Comando",
|
||||
"labels": {
|
||||
"roomName": "Nombre de la sala",
|
||||
"visibility": "Visibilidad",
|
||||
"gender": "Género",
|
||||
"minAge": "min_age",
|
||||
"maxAge": "max_age",
|
||||
"password": "Contraseña",
|
||||
"rightId": "right_id",
|
||||
"typeId": "type_id",
|
||||
"friendsOnly": "friends_only=true"
|
||||
},
|
||||
"placeholders": {
|
||||
"roomName": "p. ej. Lounge",
|
||||
"password": "sin espacios"
|
||||
},
|
||||
"options": {
|
||||
"none": "(ninguno)"
|
||||
},
|
||||
"actions": {
|
||||
"create": "Crear sala",
|
||||
"reset": "Restablecer"
|
||||
},
|
||||
"validation": {
|
||||
"roomNameRequired": "El nombre de la sala es obligatorio.",
|
||||
"minAgeInvalid": "min_age debe ser >= 0.",
|
||||
"maxAgeInvalid": "max_age debe ser >= 0.",
|
||||
"ageRangeInvalid": "min_age no puede ser mayor que max_age.",
|
||||
"passwordSpaces": "La contraseña no debe contener espacios.",
|
||||
"rightIdInvalid": "right_id debe ser > 0.",
|
||||
"typeIdInvalid": "type_id debe ser > 0."
|
||||
},
|
||||
"messages": {
|
||||
"noConnection": "Sin conexión con el servidor de chat.",
|
||||
"invalidForm": "Corrige los datos del formulario de sala.",
|
||||
"roomNameMissing": "Introduce un nombre de sala.",
|
||||
"sent": "Creación de sala enviada: {command}"
|
||||
},
|
||||
"rights": {},
|
||||
"types": {}
|
||||
}
|
||||
},
|
||||
"randomchat": {
|
||||
|
||||
Reference in New Issue
Block a user