fix: system booking field is not tranlate in calndar event (#20410)
This commit is contained in:
1 parent
b17f47236e
commit
c1a6ccc260
1 file changed
+6
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user