From 214840355e4c65d6f22390124e435f3ca19ff556 Mon Sep 17 00:00:00 2001 From: iyanfdezz Date: Thu, 11 Apr 2024 18:15:38 +0200 Subject: [PATCH 1/7] Internacionalizado GroupDetails --- webapp/src/locales/es.json | 12 ++++++++++++ webapp/src/pages/Social/GroupDetails.js | 19 +++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/webapp/src/locales/es.json b/webapp/src/locales/es.json index fab14a9d..d1279bf7 100644 --- a/webapp/src/locales/es.json +++ b/webapp/src/locales/es.json @@ -199,6 +199,18 @@ "profile": "Ver perfil", "delete": "Eliminar amigo", "noFriends": "No tienes amigos actualmente." + }, + "groupdetails": { + "details":"Detalles del grupo", + "loading": "Cargando...", + "createdBy": "Creado por", + "when": "el", + "participants": "Participantes", + "avatar":"Avatar", + "name":"Nombre", + "viewProfile": "Ver perfil", + "loadingText": "Se está consultando su búsqueda, espere unos instantes.", + "noParticipants": "No hay participantes en este grupo." } } } diff --git a/webapp/src/pages/Social/GroupDetails.js b/webapp/src/pages/Social/GroupDetails.js index cba5e34b..d3c3b3be 100644 --- a/webapp/src/pages/Social/GroupDetails.js +++ b/webapp/src/pages/Social/GroupDetails.js @@ -4,8 +4,10 @@ import axios from 'axios'; import { Container, Box, Text, Heading, Table, Thead, Tbody, Tr, Th, Td, Avatar, Link } from '@chakra-ui/react'; import Nav from "../../components/Nav/Nav.js"; import Footer from "../../components/Footer/Footer.js"; +import { useTranslation } from "react-i18next"; const GroupDetails = () => { + const { t } = useTranslation(); const [group, setGroup] = useState(null); const { groupName } = useParams(); const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000'; @@ -32,20 +34,21 @@ const GroupDetails = () => { <>