added translations for navigation (#952)
This commit is contained in:
parent
a711670a70
commit
f1eae5fe77
2 changed files with 10 additions and 6 deletions
|
@ -19,6 +19,7 @@ import HelpMenuItemDynamic from "@ee/lib/intercom/HelpMenuItemDynamic";
|
||||||
|
|
||||||
import classNames from "@lib/classNames";
|
import classNames from "@lib/classNames";
|
||||||
import { shouldShowOnboarding } from "@lib/getting-started";
|
import { shouldShowOnboarding } from "@lib/getting-started";
|
||||||
|
import { useLocale } from "@lib/hooks/useLocale";
|
||||||
import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@lib/telemetry";
|
import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@lib/telemetry";
|
||||||
import { trpc } from "@lib/trpc";
|
import { trpc } from "@lib/trpc";
|
||||||
|
|
||||||
|
@ -111,6 +112,7 @@ export default function Shell(props: {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
CTA?: ReactNode;
|
CTA?: ReactNode;
|
||||||
}) {
|
}) {
|
||||||
|
const { t } = useLocale();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
useRedirectToLoginIfUnauthenticated();
|
useRedirectToLoginIfUnauthenticated();
|
||||||
useRedirectToOnboardingIfNeeded();
|
useRedirectToOnboardingIfNeeded();
|
||||||
|
@ -119,31 +121,31 @@ export default function Shell(props: {
|
||||||
|
|
||||||
const navigation = [
|
const navigation = [
|
||||||
{
|
{
|
||||||
name: "Event Types",
|
name: t("event_types_page_title"),
|
||||||
href: "/event-types",
|
href: "/event-types",
|
||||||
icon: LinkIcon,
|
icon: LinkIcon,
|
||||||
current: router.asPath.startsWith("/event-types"),
|
current: router.asPath.startsWith("/event-types"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Bookings",
|
name: t("bookings"),
|
||||||
href: "/bookings/upcoming",
|
href: "/bookings/upcoming",
|
||||||
icon: ClockIcon,
|
icon: ClockIcon,
|
||||||
current: router.asPath.startsWith("/bookings"),
|
current: router.asPath.startsWith("/bookings"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Availability",
|
name: t("availability"),
|
||||||
href: "/availability",
|
href: "/availability",
|
||||||
icon: CalendarIcon,
|
icon: CalendarIcon,
|
||||||
current: router.asPath.startsWith("/availability"),
|
current: router.asPath.startsWith("/availability"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Integrations",
|
name: t("integrations"),
|
||||||
href: "/integrations",
|
href: "/integrations",
|
||||||
icon: PuzzleIcon,
|
icon: PuzzleIcon,
|
||||||
current: router.asPath.startsWith("/integrations"),
|
current: router.asPath.startsWith("/integrations"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Settings",
|
name: t("settings"),
|
||||||
href: "/settings/profile",
|
href: "/settings/profile",
|
||||||
icon: CogIcon,
|
icon: CogIcon,
|
||||||
current: router.asPath.startsWith("/settings"),
|
current: router.asPath.startsWith("/settings"),
|
||||||
|
|
|
@ -303,5 +303,7 @@
|
||||||
"minimum_booking_notice": "Minimum booking notice",
|
"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_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",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue