fix: use 18n

fix/location-improvements
Udit Takkar 2023-10-31 18:42:21 +05:30
parent 1792d8c172
commit a48c4a8a51
2 changed files with 5 additions and 3 deletions

View File

@ -342,9 +342,10 @@ const EventTypePage = (props: EventTypeSetupProps) => {
ctx.addIssue({ ctx.addIssue({
code: z.ZodIssueCode.custom, code: z.ZodIssueCode.custom,
path: [eventLocationType?.defaultValueVariable ?? "link"], path: [eventLocationType?.defaultValueVariable ?? "link"],
message: `Invalid URL for ${eventLocationType.label}. ${ message: t("invalid_url_error_message", {
sampleUrl ? `Sample URL: ${sampleUrl}` : "" label: eventLocationType.label,
}`, sampleUrl: sampleUrl ?? "https://cal.com",
}),
}); });
} }
return; return;

View File

@ -1222,6 +1222,7 @@
"organizer_name_variable": "Organizer name", "organizer_name_variable": "Organizer name",
"app_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.", "app_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.",
"invalid_number": "Invalid phone number", "invalid_number": "Invalid phone number",
"invalid_url_error_message": "Invalid URL for {{label}}. Sample URL: {{sampleUrl}}",
"navigate": "Navigate", "navigate": "Navigate",
"open": "Open", "open": "Open",
"close": "Close", "close": "Close",