fix: system booking field is not tranlate in calndar event (#20410)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-03-27 19:27:31 +00:00
1 parent b17f47236e
commit c1a6ccc260
1 file changed
+6 -3
+6 -3
View File
@@ -69,7 +69,10 @@ export const getAdditionalNotes = (calEvent: Pick<CalendarEvent, "additionalNote
return `${t("additional_notes")}:\n${calEvent.additionalNotes}`;
};
export const getUserFieldsResponses = (calEvent: Parameters<typeof getLabelValueMapFromResponses>[0]) => {
export const getUserFieldsResponses = (
calEvent: Parameters<typeof getLabelValueMapFromResponses>[0],
t: TFunction
) => {
const labelValueMap = getLabelValueMapFromResponses(calEvent);
if (!labelValueMap) {
@@ -80,7 +83,7 @@ export const getUserFieldsResponses = (calEvent: Parameters<typeof getLabelValue
if (!labelValueMap) return "";
if (labelValueMap[key] !== "") {
return `
${key}:
${t(key)}:
${labelValueMap[key]}
`;
}
@@ -325,7 +328,7 @@ export const getRichDescription = (
`${t("where")}:\n${getLocation(calEvent)}`,
getDescription(calEvent, t),
getAdditionalNotes(calEvent, t),
getUserFieldsResponses(calEvent),
getUserFieldsResponses(calEvent, t),
includeAppStatus ? getAppsStatus(calEvent, t) : "",
// TODO: Only the original attendee can make changes to the event
// Guests cannot