From fc84179b298427e7f18d0f132ea130a57b164533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 4 Mar 2022 18:13:23 +0100 Subject: [PATCH] fix de trads --- api/services/github.json | 10 ++++----- api/services/youtube.json | 34 ++++++++++++++--------------- web-app/src/components/AREACard.tsx | 14 ++++++++++-- 3 files changed, 34 insertions(+), 24 deletions(-) diff --git a/api/services/github.json b/api/services/github.json index 02e79cb..11f834b 100644 --- a/api/services/github.json +++ b/api/services/github.json @@ -551,11 +551,11 @@ "name": "Github_OnForkRepo", "description": { "en": "An event triggered when the repository given as parameter is forked", - "fr": "Un évènement déclenché lorsque le répertoire donné est forké" + "fr": "Un évènement déclenché lorsque le répertoire donné est fourché" }, "label": { "en": "Forked repository", - "fr": "répertoire forké" + "fr": "Répertoire fourché" }, "params": [ { @@ -603,11 +603,11 @@ "name": "Github_OnStarRepo", "description": { "en": "An event triggered when a user star the repository given as parameter", - "fr": "Un évènement déclenché lorsqu'un utilisateur star un répertoire donné" + "fr": "Un évènement déclenché lorsqu'un utilisateur étoile un répertoire donné" }, "label": { "en": "Starred repository", - "fr": "répertoire starré" + "fr": "Répertoire étoilé" }, "params": [ { @@ -666,7 +666,7 @@ }, "label": { "en": "Watch a repository", - "fr": "Watch un répertoire" + "fr": "Répertoire observé" }, "params": [ { diff --git a/api/services/youtube.json b/api/services/youtube.json index 010f092..3b984cc 100644 --- a/api/services/youtube.json +++ b/api/services/youtube.json @@ -81,36 +81,36 @@ { "name": "ID", "description": { - "en": "Youtube ID of the added video", - "fr": "Identifiant de la vidéo ajoutée" + "en": "Youtube ID of the liked video", + "fr": "Identifiant de la vidéo likée" } }, { "name": "CHANNEL_ID", "description": { - "en": "Youtube ID of the channel the video was added to", - "fr": "Identifiant de la chaîne YouTube sur laquelle la vidéo a été mise en ligne" + "en": "Youtube ID of the channel the liked video", + "fr": "Identifiant de la chaîne YouTube de la vidéo likée" } }, { "name": "TITLE", "description": { - "en": "Title of the uploaded video", - "fr": "Titre de la vidéo mise en ligne" + "en": "Title of the liked video", + "fr": "Titre de la vidéo likée" } }, { "name": "DESCRIPTION", "description": { - "en": "Description of the uploaded video", - "fr": "Description de la vidéo mise en ligne" + "en": "Description of the liked video", + "fr": "Description de la vidéo likée" } }, { "name": "CHANNEL_TITLE", "description": { - "en": "Name of the channel the video was uploaded to", - "fr": "Nom de la chaîne sur laquelle la vidéo a été mise en ligne" + "en": "Name of the channel of the liked video", + "fr": "Nom de la chaîne de la vidéo likée" } } ] @@ -146,8 +146,8 @@ { "name": "CHANNEL_ID", "description": { - "en": "Youtube ID of the channel the video was added to", - "fr": "Identifiant de la chaîne YouTube sur laquelle la vidéo a été ajoutée" + "en": "Youtube ID of the channel of the added video", + "fr": "Identifiant de la chaîne YouTube de la vidéo ajoutée" } }, { @@ -167,7 +167,7 @@ { "name": "CHANNEL_TITLE", "description": { - "en": "Name of the channel the video belongs to", + "en": "Name of the channel of the added video", "fr": "Nom de la chaîne à laquelle la vidéo appartient" } } @@ -179,7 +179,7 @@ "name": "Youtube_YtLike", "description": { "en": "Like a Youtube video", - "fr": "Aime une vidéo YouTube" + "fr": "Like une vidéo YouTube" }, "label": { "en": "Like a video", @@ -190,8 +190,8 @@ "name": "videoId", "type": "string", "description": { - "en": "ID of the video to like", - "fr": "Identifiant de la vidéo à aimer" + "en": "ID of the liked video", + "fr": "Identifiant de la vidéo likée" } } ], @@ -200,7 +200,7 @@ "name": "ID", "description": { "en": "Youtube ID of the liked video", - "fr": "Identifiant de la vidéo YouTube aimée" + "fr": "Identifiant de la vidéo YouTube likée" } } ] diff --git a/web-app/src/components/AREACard.tsx b/web-app/src/components/AREACard.tsx index 370625f..b13c1e8 100644 --- a/web-app/src/components/AREACard.tsx +++ b/web-app/src/components/AREACard.tsx @@ -23,7 +23,11 @@ export const AREACard = ({ AREA, onClick }: AREACardProps) => { /> } title={{AREA?.label?.[languageUid] ?? AREA.type}} - subheader={AREA?.description?.[languageUid] ?? ""} + subheader={ + AREA?.description?.[languageUid] !== AREA?.label?.[languageUid] ?? AREA.type + ? AREA?.description?.[languageUid] ?? null + : null + } /> {Object.keys(AREA.params).length > 0 || Object.keys(AREA.returns).length > 0 ? ( @@ -47,7 +51,13 @@ export const AREACard = ({ AREA, onClick }: AREACardProps) => { {Object.entries(AREA.returns).map((el, idx) => { return ( - + ); })}