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:
parent
dc5e042cdd
commit
447098bc97
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user