Scheduling infrastructure for absolutely everyone.
fix: use 18n
Udit Takkar14c3028c2a5c
diff --git a/apps/web/pages/event-types/[type]/index.tsx b/apps/web/pages/event-types/[type]/index.tsxindex 7265457c6f1..5c48faa7734 100644--- a/apps/web/pages/event-types/[type]/index.tsx+++ b/apps/web/pages/event-types/[type]/index.tsx@@ -342,9 +342,10 @@ const EventTypePage = (props: EventTypeSetupProps) => {ctx.addIssue({code: z.ZodIssueCode.custom,path: [eventLocationType?.defaultValueVariable ?? "link"],- message: `Invalid URL for ${eventLocationType.label}. ${- sampleUrl ? `Sample URL: ${sampleUrl}` : ""- }`,+ message: t("invalid_url_error_message", {+ label: eventLocationType.label,+ sampleUrl: sampleUrl ?? "https://cal.com",+ }),});}return;diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex f80967618f2..61fd40cc41f 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -1222,6 +1222,7 @@"organizer_name_variable": "Organizer name","app_upgrade_description": "In order to use this feature, you need to upgrade to a Pro account.","invalid_number": "Invalid phone number",+ "invalid_url_error_message": "Invalid URL for {{label}}. Sample URL: {{sampleUrl}}","navigate": "Navigate","open": "Open","close": "Close",