From 67d0deace8e6c74b592fa04a3073deff35561d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Diamond?= <32074058+Andre-Diamond@users.noreply.github.com> Date: Wed, 5 Jun 2024 09:31:05 +0200 Subject: [PATCH] feat: Add translator field to meeting summaries markdown --- utils/generateMarkdown.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/generateMarkdown.js b/utils/generateMarkdown.js index b5a7f98..a01b116 100644 --- a/utils/generateMarkdown.js +++ b/utils/generateMarkdown.js @@ -36,14 +36,15 @@ export function generateMarkdown(summary, order) { } // Process meetingInfo if (summary.meetingInfo) { - const { date, name, host, documenter, peoplePresent, purpose, googleSlides, townHallNumber, otherMediaLink, meetingVideoLink, mediaLink, miroBoardLink, transcriptLink, workingDocs, timestampedVideo } = summary.meetingInfo; + const { date, name, host, documenter, translator, peoplePresent, purpose, googleSlides, townHallNumber, otherMediaLink, meetingVideoLink, mediaLink, miroBoardLink, transcriptLink, workingDocs, timestampedVideo } = summary.meetingInfo; // Add meeting information to markdown if ( name && !summary.canceledSummary && !summary.noSummaryGiven ) markdown += `- Type of meeting: ${name}\n`; - if (host || documenter || peoplePresent) { + if (host || documenter || translator || peoplePresent) { markdown += `- Present: `; if (host) markdown += `${host} [facilitator], `; if (documenter) markdown += `${documenter} [documenter], `; + if (translator) markdown += `${translator} [translator], `; if (peoplePresent) markdown += `${peoplePresent.split(', ').map(p => p.trim()).join(', ')}`; markdown += '\n'; }