fix: use i18n properly in utils (#6363)

* fix: use i18n properly in utils

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

* chore

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
Udit Takkar 2023-01-12 10:52:55 +05:30 committed by GitHub
parent dc5e042cdd
commit 447098bc97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

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:

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,