Scheduling infrastructure for absolutely everyone.
fix: use i18n properly in utils (#6363)
Udit Takkar447098bc97ea
diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.tsindex 47b50c8b5ef..7b7efaab882 100644--- a/packages/app-store/locations.ts+++ b/packages/app-store/locations.ts@@ -66,7 +66,7 @@ export const defaultLocations: DefaultEventLocationType[] = [{default: true,type: DefaultEventLocationTypeEnum.AttendeeInPerson,- label: "in_person_attendee_address",+ label: "attendeeInPerson",variable: "address",organizerInputType: null,messageForOrganizer: "Cal will ask your invitee to enter an address before scheduling.",@@ -79,7 +79,7 @@ export const defaultLocations: DefaultEventLocationType[] = [{default: true,type: DefaultEventLocationTypeEnum.InPerson,- label: "In Person (Organizer Address)",+ label: "inPerson",organizerInputType: "text",messageForOrganizer: "Provide an Address or Place",// HACK:diff --git a/packages/app-store/utils.ts b/packages/app-store/utils.tsindex 637e55c9dee..a5d6fbf5a9b 100644--- a/packages/app-store/utils.ts+++ b/packages/app-store/utils.ts@@ -116,7 +116,10 @@ export function getLocationGroupedOptions(integrations: ReturnType<typeof getAppfor (const category in apps) {const tmp = { label: category, options: apps[category] };if (tmp.label === "in person") {- tmp.options.map((l) => ({ ...l, label: t(l.value) }));+ tmp.options = tmp.options.map((l) => ({+ ...l,+ label: t(l.label),+ }));} else {tmp.options.map((l) => ({...l,