added translations for navigation (#952)

This commit is contained in:
Peer Richelsen 2021-10-14 14:58:17 +01:00 committed by GitHub
parent a711670a70
commit f1eae5fe77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -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"),

View file

@ -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"
}