fix: use i18n properly in utils (#6363)

* fix: use i18n properly in utils

Signed-off-by: Udit Takkar <[email protected]>

* chore

Signed-off-by: Udit Takkar <[email protected]>

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Udit TakkarandAlex van Andel authored and GitHub committed 2023-01-12 05:22:55 +00:00
1 parent dc5e042cdd
commit 447098bc97
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -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:
+4 -1
View File
@@ -116,7 +116,10 @@ export function getLocationGroupedOptions(integrations: ReturnType<typeof getApp
for (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,