diff --git a/client/public/locales/ca/actions.json b/client/public/locales/ca/actions.json index 9f7d8e70..53e9cb76 100644 --- a/client/public/locales/ca/actions.json +++ b/client/public/locales/ca/actions.json @@ -19,5 +19,6 @@ "no projects": "Sense projectes", "search voices": "Cercar veus", "add location": "Afegir localització", - "add notes": "Afegir notes" + "add notes": "Afegir notes", + "delete from rehearsal": "Eliminar de l’assaig" } diff --git a/client/public/locales/en/actions.json b/client/public/locales/en/actions.json index 39826160..02672846 100644 --- a/client/public/locales/en/actions.json +++ b/client/public/locales/en/actions.json @@ -5,10 +5,12 @@ "select rehearsal": "Select rehearsal", "search rehearsals": "Search rehearsals", "add rehearsal": "Add rehearsal", + "new rehearsal": "New rehearsal", "select movement": "Select movement", "search movements": "Search movements", "add announced voices": "Add announced voices", "search partners": "Search partners", + "add partner": "Add partner", "search formations": "Search formations", "add formations": "Add formations", "no formations": "No formations", @@ -17,5 +19,6 @@ "no projects": "No projects", "search voices": "Search voices", "add location": "Add location", - "add notes": "Add notes" + "add notes": "Add notes", + "delete from rehearsal": "Eliminar de l’assaig" } diff --git a/client/public/locales/es/actions.json b/client/public/locales/es/actions.json index 11c99a66..7713c796 100644 --- a/client/public/locales/es/actions.json +++ b/client/public/locales/es/actions.json @@ -5,10 +5,12 @@ "select rehearsal": "Seleccionar un ensayo", "search rehearsals": "Buscar ensayos", "add rehearsal": "Añadir ensayo", + "new rehearsal": "Nuevo ensayo", "select movement": "Seleccionar un movimiento", "search movements": "Buscar movimientos", "add announced voices": "Añadir voces convocadas", "search partners": "Buscar socios", + "add partner": "Añadir socio", "search formations": "Buscar formaciones", "add formations": "Añadir formaciones", "no formations": "Sin formaciones", @@ -17,5 +19,6 @@ "no projects": "Sin proyectos", "search voices": "Buscar voces", "add location": "Añadir localización", - "add notes": "Añadir notas" + "add notes": "Añadir notas", + "delete from rehearsal": "Eliminar del ensayo" } diff --git a/client/src/pages/tauler/detall-assaig/components/content-list-moviments-assaig/content-list-moviments-assaig.tsx b/client/src/pages/tauler/detall-assaig/components/content-list-moviments-assaig/content-list-moviments-assaig.tsx index 9b6faf17..81992b55 100644 --- a/client/src/pages/tauler/detall-assaig/components/content-list-moviments-assaig/content-list-moviments-assaig.tsx +++ b/client/src/pages/tauler/detall-assaig/components/content-list-moviments-assaig/content-list-moviments-assaig.tsx @@ -4,6 +4,7 @@ import { useAPI, useDeleteAPI } from "helpers"; import { Moviment } from "model"; import { AssaigContext } from "pages/tauler/detall-assaig"; import React, { useContext } from "react"; +import { useTranslation } from "react-i18next"; import { BorderlessButton } from "standalone/borderless-button"; import { ContentList } from "standalone/content-list"; import { ModalFragmentsTreballatsMoviment } from "../modal-fragments-treballats-moviment"; @@ -11,6 +12,8 @@ import { ModalListMovimentsAssaig } from "../modal-list-moviments-assaig"; import { PopoverProjectesAssaig } from "../popover-projectes-assaig"; const ContentListMovimentsAssaig: React.FC = () => { + const { t } = useTranslation("dashboard"); + const assaig = useContext(AssaigContext); const [moviments, loadingMoviments, getMovimentsAssaig] = useAPI( @@ -19,13 +22,13 @@ const ContentListMovimentsAssaig: React.FC = () => { ); const [loadingDelete, deleteMoviment] = useDeleteAPI( `/assajos/${assaig.id_assaig}/moviments`, - "el moviment", + t("modals:the movement"), getMovimentsAssaig ); return ( ({ id: moviment.id_moviment, title: moviment.titol_moviment, @@ -37,7 +40,7 @@ const ContentListMovimentsAssaig: React.FC = () => { key="delete" size="small" shape="circle" - tooltip="Eliminar de l’assaig" + tooltip={t("actions:delete from rehearsal")} icon={} onClick={() => deleteMoviment(moviment.id_moviment)} />,