Scheduling infrastructure for absolutely everyone.
added translations for navigation (#952)
Peer Richelsenf1eae5fe77a3
diff --git a/components/Shell.tsx b/components/Shell.tsxindex 1d96a201874..3fb8a5ddb4d 100644--- a/components/Shell.tsx+++ b/components/Shell.tsx@@ -19,6 +19,7 @@ import HelpMenuItemDynamic from "@ee/lib/intercom/HelpMenuItemDynamic";import classNames from "@lib/classNames";import { shouldShowOnboarding } from "@lib/getting-started";+import { useLocale } from "@lib/hooks/useLocale";import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@lib/telemetry";import { trpc } from "@lib/trpc";@@ -111,6 +112,7 @@ export default function Shell(props: {children: ReactNode;CTA?: ReactNode;}) {+ const { t } = useLocale();const router = useRouter();useRedirectToLoginIfUnauthenticated();useRedirectToOnboardingIfNeeded();@@ -119,31 +121,31 @@ export default function Shell(props: {const navigation = [{- name: "Event Types",+ name: t("event_types_page_title"),href: "/event-types",icon: LinkIcon,current: router.asPath.startsWith("/event-types"),},{- name: "Bookings",+ name: t("bookings"),href: "/bookings/upcoming",icon: ClockIcon,current: router.asPath.startsWith("/bookings"),},{- name: "Availability",+ name: t("availability"),href: "/availability",icon: CalendarIcon,current: router.asPath.startsWith("/availability"),},{- name: "Integrations",+ name: t("integrations"),href: "/integrations",icon: PuzzleIcon,current: router.asPath.startsWith("/integrations"),},{- name: "Settings",+ name: t("settings"),href: "/settings/profile",icon: CogIcon,current: router.asPath.startsWith("/settings"),diff --git a/public/static/locales/en/common.json b/public/static/locales/en/common.jsonindex 88a675031d2..a73136a20ea 100644--- a/public/static/locales/en/common.json+++ b/public/static/locales/en/common.json@@ -303,5 +303,7 @@"minimum_booking_notice": "Minimum booking notice","delete_event_type_description": "Are you sure you want to delete this event type? Anyone who you've shared this link with will no longer be able to book using it.","delete_event_type": "Delete Event Type",- "confirm_delete_event_type": "Yes, delete event type"+ "confirm_delete_event_type": "Yes, delete event type",+ "integrations": "Integrations",+ "settings": "Settings"}