Skip to content

Commit

Permalink
fix: Afegeix traduccions restants a actions
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Aug 28, 2020
1 parent ff1c51d commit 2bab386
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
3 changes: 2 additions & 1 deletion client/public/locales/ca/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
5 changes: 4 additions & 1 deletion client/public/locales/en/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
5 changes: 4 additions & 1 deletion client/public/locales/es/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ 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";
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<Moviment[]>(
Expand All @@ -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 (
<ContentList
title="Moviments"
title={t("movements")}
dataSource={moviments.map((moviment) => ({
id: moviment.id_moviment,
title: moviment.titol_moviment,
Expand All @@ -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={<CloseOutlined />}
onClick={() => deleteMoviment(moviment.id_moviment)}
/>,
Expand Down

0 comments on commit 2bab386

Please sign in to comment.