fix: use 18n
parent
1792d8c172
commit
a48c4a8a51
|
@ -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;
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue