@seliseblocks/genesis-os 4.4.6 → 4.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/{all-OJ5YSNAN.js → all-O45OXFJ7.js} +80 -80
  2. package/dist/{all-OJ5YSNAN.js.map → all-O45OXFJ7.js.map} +1 -1
  3. package/dist/{all-2UHIE3HU.cjs → all-UJTAKIGL.cjs} +80 -80
  4. package/dist/all-UJTAKIGL.cjs.map +1 -0
  5. package/dist/aspnet-4V2TYHQE.cjs +13 -0
  6. package/dist/{aspnet-7QL7EKM4.cjs.map → aspnet-4V2TYHQE.cjs.map} +1 -1
  7. package/dist/aspnet-R3X2H2AO.js +7 -0
  8. package/dist/{aspnet-I623QV26.js.map → aspnet-R3X2H2AO.js.map} +1 -1
  9. package/dist/chunk-2MP66EX3.cjs +16 -0
  10. package/dist/chunk-2MP66EX3.cjs.map +1 -0
  11. package/dist/chunk-3LBTW4A3.cjs +70 -0
  12. package/dist/chunk-3LBTW4A3.cjs.map +1 -0
  13. package/dist/{chunk-ZR6LRRN6.js → chunk-3OO2YVXW.js} +13 -7
  14. package/dist/chunk-3OO2YVXW.js.map +1 -0
  15. package/dist/chunk-3V7O45KN.js +86 -0
  16. package/dist/chunk-3V7O45KN.js.map +1 -0
  17. package/dist/{chunk-5L6BSYZR.cjs → chunk-45XWYZ67.cjs} +3 -3
  18. package/dist/{chunk-5L6BSYZR.cjs.map → chunk-45XWYZ67.cjs.map} +1 -1
  19. package/dist/{chunk-356ZGDMJ.cjs → chunk-5IOXQBUO.cjs} +3 -3
  20. package/dist/{chunk-356ZGDMJ.cjs.map → chunk-5IOXQBUO.cjs.map} +1 -1
  21. package/dist/chunk-6QSPMPJD.js +3 -0
  22. package/dist/chunk-6QSPMPJD.js.map +1 -0
  23. package/dist/chunk-7ZZ3KLZD.js +14 -0
  24. package/dist/chunk-7ZZ3KLZD.js.map +1 -0
  25. package/dist/{chunk-JQ4U53QV.cjs → chunk-A373J4BR.cjs} +82 -82
  26. package/dist/{chunk-JQ4U53QV.cjs.map → chunk-A373J4BR.cjs.map} +1 -1
  27. package/dist/{chunk-QTSTAWK3.cjs → chunk-AIUUCMAI.cjs} +8 -7
  28. package/dist/chunk-AIUUCMAI.cjs.map +1 -0
  29. package/dist/{chunk-IJMKS4XG.cjs → chunk-CTIGX76P.cjs} +15 -8
  30. package/dist/chunk-CTIGX76P.cjs.map +1 -0
  31. package/dist/{chunk-XRAO7JBH.js → chunk-ECDNFX6H.js} +11 -4
  32. package/dist/chunk-ECDNFX6H.js.map +1 -0
  33. package/dist/{chunk-WL6LTNZN.js → chunk-G24RPSJG.js} +79 -79
  34. package/dist/{chunk-WL6LTNZN.js.map → chunk-G24RPSJG.js.map} +1 -1
  35. package/dist/chunk-GAQGM46C.cjs +4 -0
  36. package/dist/chunk-GAQGM46C.cjs.map +1 -0
  37. package/dist/{chunk-VJAVGV6Z.js → chunk-GFUHF4DC.js} +3 -3
  38. package/dist/{chunk-VJAVGV6Z.js.map → chunk-GFUHF4DC.js.map} +1 -1
  39. package/dist/chunk-GSCW3WIQ.cjs +90 -0
  40. package/dist/chunk-GSCW3WIQ.cjs.map +1 -0
  41. package/dist/{chunk-4CMIWUZW.cjs → chunk-IPMRZNNS.cjs} +25 -24
  42. package/dist/chunk-IPMRZNNS.cjs.map +1 -0
  43. package/dist/{chunk-JITR3QYC.js → chunk-JYA5S4XN.js} +3 -64
  44. package/dist/chunk-JYA5S4XN.js.map +1 -0
  45. package/dist/{chunk-NPMO67H6.js → chunk-KA2OOMCU.js} +743 -544
  46. package/dist/chunk-KA2OOMCU.js.map +1 -0
  47. package/dist/{chunk-R5OAGX3J.js → chunk-ND6E3LWI.js} +3 -3
  48. package/dist/{chunk-R5OAGX3J.js.map → chunk-ND6E3LWI.js.map} +1 -1
  49. package/dist/chunk-OPMWK5SY.cjs +871 -0
  50. package/dist/chunk-OPMWK5SY.cjs.map +1 -0
  51. package/dist/{chunk-JUVLHPQI.js → chunk-POJIHGRY.js} +3 -14
  52. package/dist/chunk-POJIHGRY.js.map +1 -0
  53. package/dist/{chunk-CGVT7IFM.cjs → chunk-QBL4VIE4.cjs} +909 -710
  54. package/dist/chunk-QBL4VIE4.cjs.map +1 -0
  55. package/dist/{chunk-JSXAKNHQ.js → chunk-QHNZOBXR.js} +7 -6
  56. package/dist/chunk-QHNZOBXR.js.map +1 -0
  57. package/dist/{chunk-4QN4CYSC.cjs → chunk-RO55MFZA.cjs} +2 -64
  58. package/dist/chunk-RO55MFZA.cjs.map +1 -0
  59. package/dist/{chunk-VGOVEFEP.cjs → chunk-SAK3QQCD.cjs} +3 -3
  60. package/dist/{chunk-VGOVEFEP.cjs.map → chunk-SAK3QQCD.cjs.map} +1 -1
  61. package/dist/chunk-SQG7DJNY.js +68 -0
  62. package/dist/chunk-SQG7DJNY.js.map +1 -0
  63. package/dist/{chunk-X4YCRWXO.cjs → chunk-TSRDXJUG.cjs} +2 -14
  64. package/dist/chunk-TSRDXJUG.cjs.map +1 -0
  65. package/dist/{chunk-6GCU5LM7.cjs → chunk-U2LA7LBX.cjs} +2 -84
  66. package/dist/chunk-U2LA7LBX.cjs.map +1 -0
  67. package/dist/{chunk-XL7EULGP.js → chunk-U6GTLTLO.js} +3 -3
  68. package/dist/{chunk-XL7EULGP.js.map → chunk-U6GTLTLO.js.map} +1 -1
  69. package/dist/{chunk-O5ACQLWB.js → chunk-UDFH7SJI.js} +5 -4
  70. package/dist/chunk-UDFH7SJI.js.map +1 -0
  71. package/dist/{chunk-IRIDGVV2.cjs → chunk-VLZJP6FH.cjs} +70 -64
  72. package/dist/chunk-VLZJP6FH.cjs.map +1 -0
  73. package/dist/chunk-XYPSBVXL.js +842 -0
  74. package/dist/chunk-XYPSBVXL.js.map +1 -0
  75. package/dist/{chunk-4UHGGHI6.js → chunk-Z4ZDSA2A.js} +3 -82
  76. package/dist/chunk-Z4ZDSA2A.js.map +1 -0
  77. package/dist/components/index.cjs +438 -433
  78. package/dist/components/index.d.cts +5 -1
  79. package/dist/components/index.d.ts +5 -1
  80. package/dist/components/index.js +91 -86
  81. package/dist/cshtml-IPCDTLX7.cjs +13 -0
  82. package/dist/{cshtml-ETL7US3D.cjs.map → cshtml-IPCDTLX7.cjs.map} +1 -1
  83. package/dist/cshtml-XPUEHA6K.js +7 -0
  84. package/dist/{cshtml-TVLCSBKU.js.map → cshtml-XPUEHA6K.js.map} +1 -1
  85. package/dist/eslint/index.cjs +33 -0
  86. package/dist/eslint/index.cjs.map +1 -0
  87. package/dist/eslint/index.d.cts +12 -0
  88. package/dist/eslint/index.d.ts +12 -0
  89. package/dist/eslint/index.js +28 -0
  90. package/dist/eslint/index.js.map +1 -0
  91. package/dist/guards/index.cjs +97 -92
  92. package/dist/guards/index.js +91 -86
  93. package/dist/hooks/index.cjs +65 -62
  94. package/dist/hooks/index.d.cts +1 -1
  95. package/dist/hooks/index.d.ts +1 -1
  96. package/dist/hooks/index.js +8 -5
  97. package/dist/i18n/index.cjs +125 -0
  98. package/dist/i18n/index.cjs.map +1 -0
  99. package/dist/i18n/index.d.cts +137 -0
  100. package/dist/i18n/index.d.ts +137 -0
  101. package/dist/i18n/index.js +8 -0
  102. package/dist/i18n/index.js.map +1 -0
  103. package/dist/index.cjs +747 -630
  104. package/dist/index.d.cts +1 -0
  105. package/dist/index.d.ts +1 -0
  106. package/dist/index.js +91 -86
  107. package/dist/layouts/index.cjs +98 -93
  108. package/dist/layouts/index.js +91 -86
  109. package/dist/lib/index.cjs +38 -36
  110. package/dist/lib/index.js +5 -3
  111. package/dist/observability/index.cjs +102 -25
  112. package/dist/observability/index.cjs.map +1 -1
  113. package/dist/observability/index.d.cts +47 -5
  114. package/dist/observability/index.d.ts +47 -5
  115. package/dist/observability/index.js +98 -23
  116. package/dist/observability/index.js.map +1 -1
  117. package/dist/pages/index.cjs +96 -91
  118. package/dist/pages/index.js +91 -86
  119. package/dist/providers/index.cjs +11 -7
  120. package/dist/providers/index.js +7 -3
  121. package/dist/store/index.cjs +15 -13
  122. package/dist/store/index.js +4 -2
  123. package/dist/{tsx-PN3P5NJP.cjs → tsx-MALMUEWS.cjs} +5 -5
  124. package/dist/tsx-MALMUEWS.cjs.map +1 -0
  125. package/dist/{tsx-UJQQBLY4.js → tsx-MJR7GSNC.js} +4 -4
  126. package/dist/tsx-MJR7GSNC.js.map +1 -0
  127. package/dist/utils/index.cjs +77 -72
  128. package/dist/utils/index.js +9 -4
  129. package/package.json +11 -1
  130. package/dist/all-2UHIE3HU.cjs.map +0 -1
  131. package/dist/aspnet-7QL7EKM4.cjs +0 -13
  132. package/dist/aspnet-I623QV26.js +0 -7
  133. package/dist/chunk-4CMIWUZW.cjs.map +0 -1
  134. package/dist/chunk-4QN4CYSC.cjs.map +0 -1
  135. package/dist/chunk-4UHGGHI6.js.map +0 -1
  136. package/dist/chunk-6GCU5LM7.cjs.map +0 -1
  137. package/dist/chunk-CGVT7IFM.cjs.map +0 -1
  138. package/dist/chunk-IJMKS4XG.cjs.map +0 -1
  139. package/dist/chunk-IRIDGVV2.cjs.map +0 -1
  140. package/dist/chunk-JITR3QYC.js.map +0 -1
  141. package/dist/chunk-JSXAKNHQ.js.map +0 -1
  142. package/dist/chunk-JUVLHPQI.js.map +0 -1
  143. package/dist/chunk-NPMO67H6.js.map +0 -1
  144. package/dist/chunk-O5ACQLWB.js.map +0 -1
  145. package/dist/chunk-QTSTAWK3.cjs.map +0 -1
  146. package/dist/chunk-X4YCRWXO.cjs.map +0 -1
  147. package/dist/chunk-XRAO7JBH.js.map +0 -1
  148. package/dist/chunk-ZR6LRRN6.js.map +0 -1
  149. package/dist/cshtml-ETL7US3D.cjs +0 -13
  150. package/dist/cshtml-TVLCSBKU.js +0 -7
  151. package/dist/tsx-PN3P5NJP.cjs.map +0 -1
  152. package/dist/tsx-UJQQBLY4.js.map +0 -1
@@ -1,23 +1,26 @@
1
1
  import { refractor } from './chunk-FGY7QM3Y.js';
2
- import { notificationService, useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useSessionTenantGuard, useStatusFirstOnTabReturn, useStopImpersonation, useRecordClaimedTenant, useSignOut, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, impersonationService, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-ZR6LRRN6.js';
3
- import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-JSXAKNHQ.js';
4
- import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, subscribeToSignOut, subscribeToTenantClaims, holdTenant, iamClient, AUTH_ENDPOINTS, claimTenant, readCurrentOwner, TAB_ID, isTenantHeldElsewhere, isSameClaim, PROFILE_ENDPOINTS } from './chunk-O5ACQLWB.js';
5
- import { getRuntimeEnv, HttpError } from './chunk-JUVLHPQI.js';
6
- import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-XRAO7JBH.js';
2
+ import { notificationService, useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useSessionTenantGuard, useStatusFirstOnTabReturn, useStopImpersonation, useRecordClaimedTenant, useSignOut, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, impersonationService, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-3OO2YVXW.js';
3
+ import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-QHNZOBXR.js';
4
+ import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, subscribeToSignOut, subscribeToTenantClaims, holdTenant, iamClient, AUTH_ENDPOINTS, claimTenant, readCurrentOwner, TAB_ID, isTenantHeldElsewhere, isSameClaim, PROFILE_ENDPOINTS } from './chunk-UDFH7SJI.js';
5
+ import { HttpError } from './chunk-7ZZ3KLZD.js';
6
+ import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-ECDNFX6H.js';
7
7
  import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-AHCHUUXM.js';
8
+ import { useT, tStatic, useDocumentLanguage, useLanguagesStore } from './chunk-XYPSBVXL.js';
8
9
  import { cn } from './chunk-3MLPBMH2.js';
9
10
  import { getQueryClient } from './chunk-BRHE44FE.js';
10
- import { useLayoutSettingsStore, useLanguageViewStore, useImpersonateStore, useUserStore } from './chunk-JITR3QYC.js';
11
- import { CookieStorage, useProjectStore, useAuthStore } from './chunk-4UHGGHI6.js';
11
+ import { getRuntimeEnv } from './chunk-POJIHGRY.js';
12
+ import { useLayoutSettingsStore, useLanguageViewStore, useImpersonateStore, useUserStore } from './chunk-JYA5S4XN.js';
13
+ import { useProjectStore, useAuthStore } from './chunk-Z4ZDSA2A.js';
14
+ import { CookieStorage } from './chunk-3V7O45KN.js';
12
15
  import { __commonJS, __toESM } from './chunk-PL4HS6R6.js';
13
16
  import * as React8 from 'react';
14
- import React8__default, { createContext, forwardRef, useState, useCallback, useEffect, useRef, useContext, useMemo, Suspense, Fragment as Fragment$1, Component, createElement as createElement$1, isValidElement } from 'react';
17
+ import React8__default, { createContext, forwardRef, useState, useCallback, useEffect, useRef, useContext, useMemo, Fragment as Fragment$1, Suspense, Component, createElement as createElement$1, isValidElement } from 'react';
15
18
  import * as TabsPrimitive from '@radix-ui/react-tabs';
16
19
  import { motion, AnimatePresence } from 'framer-motion';
17
20
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
21
  import { Slot } from '@radix-ui/react-slot';
19
22
  import { cva } from 'class-variance-authority';
20
- import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, BookOpenText, SquareTerminal, Sparkles, Layers, Plus, UsersRound, LayoutGrid, List, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
23
+ import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, Layers, BookOpenText, Plus, UsersRound, LayoutGrid, List, SquareTerminal, Sparkles, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
21
24
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
22
25
  import * as SheetPrimitive from '@radix-ui/react-dialog';
23
26
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -60,6 +63,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
60
63
  import { useNavigate, Link, useLocation, useParams, Navigate, Outlet, useSearchParams } from 'react-router';
61
64
  import { useQueryClient, useQueries, useQuery } from '@tanstack/react-query';
62
65
  import { HubConnectionBuilder, HttpTransportType } from '@microsoft/signalr';
66
+ import { de } from 'date-fns/locale/de';
63
67
  import { createColumnHelper, flexRender, useReactTable, getCoreRowModel } from '@tanstack/react-table';
64
68
  import { zodResolver } from '@hookform/resolvers/zod';
65
69
  import { z } from 'zod';
@@ -373,6 +377,10 @@ var Separator = React8.forwardRef(
373
377
  )
374
378
  );
375
379
  Separator.displayName = SeparatorPrimitive.Root.displayName;
380
+ var SrClose = () => {
381
+ const { t } = useT("genesis.shared");
382
+ return /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("common:CLOSE") });
383
+ };
376
384
  var Sheet = SheetPrimitive.Root;
377
385
  var SheetTrigger = SheetPrimitive.Trigger;
378
386
  var SheetClose = SheetPrimitive.Close;
@@ -417,7 +425,7 @@ var SheetContent = React8.forwardRef(({ side = "right", className, hideClose, ch
417
425
  children,
418
426
  !hideClose && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-6 top-8 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
419
427
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
420
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
428
+ /* @__PURE__ */ jsx(SrClose, {})
421
429
  ] })
422
430
  ]
423
431
  }
@@ -508,6 +516,7 @@ function useSidebar() {
508
516
  }
509
517
  return context;
510
518
  }
519
+ var TOGGLE_KEY = "SIDEBAR.TOGGLE";
511
520
  var SIDEBAR_COOKIE_NAME = "sidebar_state";
512
521
  var SIDEBAR_WIDTH = "16rem";
513
522
  var SIDEBAR_WIDTH_MOBILE = "18rem";
@@ -609,6 +618,7 @@ var Sidebar = React8.forwardRef(
609
618
  ...props
610
619
  }, ref) => {
611
620
  const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
621
+ const { t } = useT("genesis.shared");
612
622
  if (collapsible === "none") {
613
623
  return /* @__PURE__ */ jsx(
614
624
  "div",
@@ -636,8 +646,8 @@ var Sidebar = React8.forwardRef(
636
646
  side,
637
647
  children: [
638
648
  /* @__PURE__ */ jsxs(SheetHeader, { className: "sr-only", children: [
639
- /* @__PURE__ */ jsx(SheetTitle, { children: "Sidebar" }),
640
- /* @__PURE__ */ jsx(SheetDescription, { children: "Displays the mobile sidebar." })
649
+ /* @__PURE__ */ jsx(SheetTitle, { children: t("SIDEBAR.TITLE") }),
650
+ /* @__PURE__ */ jsx(SheetDescription, { children: t("SIDEBAR.DESCRIPTION") })
641
651
  ] }),
642
652
  /* @__PURE__ */ jsx("div", { className: "flex h-full w-full flex-col", children })
643
653
  ]
@@ -703,6 +713,7 @@ var Sidebar = React8.forwardRef(
703
713
  );
704
714
  Sidebar.displayName = "Sidebar";
705
715
  var SidebarTrigger = React8.forwardRef(({ className, onClick, ...props }, ref) => {
716
+ const { t } = useT("genesis.shared");
706
717
  const { toggleSidebar } = useSidebar();
707
718
  const PanelLeftIcon = PanelLeft;
708
719
  return /* @__PURE__ */ jsxs(
@@ -720,23 +731,24 @@ var SidebarTrigger = React8.forwardRef(({ className, onClick, ...props }, ref) =
720
731
  ...props,
721
732
  children: [
722
733
  /* @__PURE__ */ jsx(PanelLeftIcon, {}),
723
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle Sidebar" })
734
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t(TOGGLE_KEY) })
724
735
  ]
725
736
  }
726
737
  );
727
738
  });
728
739
  SidebarTrigger.displayName = "SidebarTrigger";
729
740
  var SidebarRail = React8.forwardRef(({ className, ...props }, ref) => {
741
+ const { t } = useT("genesis.shared");
730
742
  const { toggleSidebar } = useSidebar();
731
743
  return /* @__PURE__ */ jsx(
732
744
  "button",
733
745
  {
734
746
  ref,
735
747
  "data-sidebar": "rail",
736
- "aria-label": "Toggle Sidebar",
748
+ "aria-label": t(TOGGLE_KEY),
737
749
  tabIndex: -1,
738
750
  onClick: toggleSidebar,
739
- title: "Toggle Sidebar",
751
+ title: t(TOGGLE_KEY),
740
752
  className: cn(
741
753
  "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
742
754
  "in-data-[side=left]:cursor-w-resize",
@@ -1104,6 +1116,7 @@ function RenderConditionally({
1104
1116
  function RightSidePanelResizer({
1105
1117
  onHandlePointerDown
1106
1118
  }) {
1119
+ const { t } = useT("genesis.shared");
1107
1120
  return /* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute inset-y-0 -left-0.5 w-1.5", children: [
1108
1121
  /* @__PURE__ */ jsx(
1109
1122
  "div",
@@ -1118,7 +1131,7 @@ function RightSidePanelResizer({
1118
1131
  "data-resize-handle": true,
1119
1132
  role: "separator",
1120
1133
  "aria-orientation": "vertical",
1121
- "aria-label": "Resize panel",
1134
+ "aria-label": t("RIGHT_SIDE_PANEL.RESIZE_PANEL"),
1122
1135
  onPointerDown: onHandlePointerDown,
1123
1136
  className: cn(
1124
1137
  "pointer-events-auto",
@@ -1352,13 +1365,14 @@ var RightSidePanelDescription = React8.forwardRef(({ className, ...props }, ref)
1352
1365
  RightSidePanelDescription.displayName = "RightSidePanelDescription";
1353
1366
  var RightSidePanelClose = React8.forwardRef(({ className, ...props }, ref) => {
1354
1367
  const { isMobile, close } = useRightSidePanel();
1368
+ const { t } = useT("genesis.shared");
1355
1369
  const Comp = isMobile ? Drawer$1.Close : SheetPrimitive.Close;
1356
1370
  return /* @__PURE__ */ jsxs(
1357
1371
  Comp,
1358
1372
  {
1359
1373
  ref,
1360
1374
  "data-slot": "right-side-panel-close",
1361
- "aria-label": "Close panel",
1375
+ "aria-label": t("RIGHT_SIDE_PANEL.CLOSE_PANEL"),
1362
1376
  className: cn(
1363
1377
  "ring-offset-background focus:ring-ring rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2",
1364
1378
  className
@@ -1370,7 +1384,7 @@ var RightSidePanelClose = React8.forwardRef(({ className, ...props }, ref) => {
1370
1384
  ...props,
1371
1385
  children: [
1372
1386
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4", "aria-hidden": true }),
1373
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
1387
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("common:CLOSE") })
1374
1388
  ]
1375
1389
  }
1376
1390
  );
@@ -1564,10 +1578,11 @@ var RightSidePanelTrigger = React8.forwardRef(
1564
1578
  type,
1565
1579
  ...props
1566
1580
  }, ref) => {
1581
+ const { t } = useT("genesis.shared");
1567
1582
  const { open, toggle, panelId } = useRightSidePanel();
1568
1583
  const Comp = asChild ? Slot : Button;
1569
1584
  const isFloating = position !== "inline";
1570
- const computedLabel = ariaLabel ?? label ?? "Toggle side panel";
1585
+ const computedLabel = ariaLabel ?? label ?? t("RIGHT_SIDE_PANEL.TOGGLE_PANEL");
1571
1586
  const handleClick = (event) => {
1572
1587
  onClick?.(event);
1573
1588
  if (!event.defaultPrevented) toggle();
@@ -1684,15 +1699,19 @@ var DrawerDescription = React8.forwardRef(({ className, ...props }, ref) => /* @
1684
1699
  }
1685
1700
  ));
1686
1701
  DrawerDescription.displayName = Drawer$1.Description.displayName;
1687
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx(
1688
- "nav",
1689
- {
1690
- role: "navigation",
1691
- "aria-label": "pagination",
1692
- className: cn("mx-auto flex w-full justify-center", className),
1693
- ...props
1694
- }
1695
- );
1702
+ var I18N_MODULE = "genesis.shared";
1703
+ var Pagination = ({ className, ...props }) => {
1704
+ const { t } = useT(I18N_MODULE);
1705
+ return /* @__PURE__ */ jsx(
1706
+ "nav",
1707
+ {
1708
+ role: "navigation",
1709
+ "aria-label": t("PAGINATION.NAV_ARIA"),
1710
+ className: cn("mx-auto flex w-full justify-center", className),
1711
+ ...props
1712
+ }
1713
+ );
1714
+ };
1696
1715
  Pagination.displayName = "Pagination";
1697
1716
  var PaginationContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1698
1717
  "ul",
@@ -1729,16 +1748,17 @@ var PaginationPrevious = ({
1729
1748
  className,
1730
1749
  ...props
1731
1750
  }) => {
1751
+ const { t } = useT(I18N_MODULE);
1732
1752
  return /* @__PURE__ */ jsxs(
1733
1753
  PaginationLink,
1734
1754
  {
1735
- "aria-label": "Go to previous page",
1755
+ "aria-label": t("PAGINATION.PREVIOUS_PAGE"),
1736
1756
  size: "default",
1737
1757
  className: cn("gap-1 pl-2.5", className),
1738
1758
  ...props,
1739
1759
  children: [
1740
1760
  /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
1741
- /* @__PURE__ */ jsx("span", { children: "Previous" })
1761
+ /* @__PURE__ */ jsx("span", { children: t("common:PREVIOUS") })
1742
1762
  ]
1743
1763
  }
1744
1764
  );
@@ -1748,15 +1768,16 @@ var PaginationNext = ({
1748
1768
  className,
1749
1769
  ...props
1750
1770
  }) => {
1771
+ const { t } = useT(I18N_MODULE);
1751
1772
  return /* @__PURE__ */ jsxs(
1752
1773
  PaginationLink,
1753
1774
  {
1754
- "aria-label": "Go to next page",
1775
+ "aria-label": t("PAGINATION.NEXT_PAGE"),
1755
1776
  size: "default",
1756
1777
  className: cn("gap-1 pr-2.5", className),
1757
1778
  ...props,
1758
1779
  children: [
1759
- /* @__PURE__ */ jsx("span", { children: "Next" }),
1780
+ /* @__PURE__ */ jsx("span", { children: t("common:NEXT") }),
1760
1781
  /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
1761
1782
  ]
1762
1783
  }
@@ -1767,6 +1788,7 @@ var PaginationEllipsis = ({
1767
1788
  className,
1768
1789
  ...props
1769
1790
  }) => {
1791
+ const { t } = useT(I18N_MODULE);
1770
1792
  return /* @__PURE__ */ jsxs(
1771
1793
  "span",
1772
1794
  {
@@ -1775,7 +1797,7 @@ var PaginationEllipsis = ({
1775
1797
  ...props,
1776
1798
  children: [
1777
1799
  /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
1778
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
1800
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("PAGINATION.MORE_PAGES") })
1779
1801
  ]
1780
1802
  }
1781
1803
  );
@@ -2073,6 +2095,7 @@ var DateRangePicker = React8.forwardRef(
2073
2095
  align = "start"
2074
2096
  }, ref) => {
2075
2097
  const [open, setOpen] = React8.useState(false);
2098
+ const { t } = useT("genesis.shared");
2076
2099
  const [draft, setDraft] = React8.useState(value);
2077
2100
  React8.useEffect(() => {
2078
2101
  if (open) setDraft(value);
@@ -2116,7 +2139,7 @@ var DateRangePicker = React8.forwardRef(
2116
2139
  onChange?.(void 0);
2117
2140
  setOpen(false);
2118
2141
  },
2119
- children: "Reset"
2142
+ children: t("common:RESET")
2120
2143
  }
2121
2144
  ),
2122
2145
  /* @__PURE__ */ jsx(
@@ -2128,7 +2151,7 @@ var DateRangePicker = React8.forwardRef(
2128
2151
  onChange?.(draft);
2129
2152
  setOpen(false);
2130
2153
  },
2131
- children: "Apply"
2154
+ children: t("common:APPLY")
2132
2155
  }
2133
2156
  )
2134
2157
  ] })
@@ -3275,7 +3298,7 @@ var DialogContent = React8.forwardRef(({ className, children, hideCloseButton, .
3275
3298
  children,
3276
3299
  !hideCloseButton && /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none", children: [
3277
3300
  /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
3278
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
3301
+ /* @__PURE__ */ jsx(SrClose, {})
3279
3302
  ] })
3280
3303
  ]
3281
3304
  }
@@ -3449,6 +3472,7 @@ function MultiSelect({
3449
3472
  value: selectedValues
3450
3473
  }) {
3451
3474
  const [buttonRef, popoverWidth] = usePopoverWidth();
3475
+ const { t } = useT("genesis.shared");
3452
3476
  const onSelectHandler = (value) => {
3453
3477
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
3454
3478
  onChange(nextValues);
@@ -3479,15 +3503,14 @@ function MultiSelect({
3479
3503
  className: "hidden h-4 sm:mx-2 sm:block"
3480
3504
  }
3481
3505
  ),
3482
- /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsxs(
3506
+ /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsx(
3483
3507
  Badge,
3484
3508
  {
3485
3509
  variant: "secondary",
3486
3510
  className: "rounded-sm px-1 font-normal",
3487
- children: [
3488
- selectedValues.length,
3489
- " selected"
3490
- ]
3511
+ children: t("MULTI_SELECT.SELECTED_COUNT", {
3512
+ count: selectedValues.length
3513
+ })
3491
3514
  }
3492
3515
  ) : options.filter((option) => selectedValues.includes(option.value)).map((option) => /* @__PURE__ */ jsx(
3493
3516
  Badge,
@@ -3511,7 +3534,7 @@ function MultiSelect({
3511
3534
  children: /* @__PURE__ */ jsxs(Command, { children: [
3512
3535
  /* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
3513
3536
  /* @__PURE__ */ jsxs(CommandList, { children: [
3514
- /* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
3537
+ /* @__PURE__ */ jsx(CommandEmpty, { children: t("MULTI_SELECT.NO_RESULTS") }),
3515
3538
  /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
3516
3539
  const isSelected = selectedValues.includes(option.value);
3517
3540
  return /* @__PURE__ */ jsxs(
@@ -3542,7 +3565,7 @@ function MultiSelect({
3542
3565
  {
3543
3566
  onSelect: () => onResetHandler(),
3544
3567
  className: "justify-center text-center",
3545
- children: "Clear"
3568
+ children: t("common:CLEAR")
3546
3569
  }
3547
3570
  ) })
3548
3571
  ] })
@@ -3897,11 +3920,12 @@ function StepperItem({
3897
3920
  }
3898
3921
  var Stepper = React8.forwardRef(
3899
3922
  ({ steps, currentStep, orientation = "horizontal", className, ...props }, ref) => {
3923
+ const { t } = useT("genesis.shared");
3900
3924
  return /* @__PURE__ */ jsx(
3901
3925
  "ol",
3902
3926
  {
3903
3927
  ref,
3904
- "aria-label": "Progress",
3928
+ "aria-label": t("STEPPER.PROGRESS"),
3905
3929
  className: cn(
3906
3930
  "flex w-full",
3907
3931
  orientation === "vertical" ? "flex-col gap-4" : "flex-row items-start gap-2",
@@ -4091,6 +4115,7 @@ var CarouselItem = React8.forwardRef(({ className, ...props }, ref) => {
4091
4115
  });
4092
4116
  CarouselItem.displayName = "CarouselItem";
4093
4117
  var CarouselPrevious = React8.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
4118
+ const { t } = useT("genesis.shared");
4094
4119
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
4095
4120
  return /* @__PURE__ */ jsxs(
4096
4121
  Button,
@@ -4108,13 +4133,14 @@ var CarouselPrevious = React8.forwardRef(({ className, variant = "outline", size
4108
4133
  ...props,
4109
4134
  children: [
4110
4135
  /* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
4111
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
4136
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("CAROUSEL.PREVIOUS_SLIDE") })
4112
4137
  ]
4113
4138
  }
4114
4139
  );
4115
4140
  });
4116
4141
  CarouselPrevious.displayName = "CarouselPrevious";
4117
4142
  var CarouselNext = React8.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
4143
+ const { t } = useT("genesis.shared");
4118
4144
  const { orientation, scrollNext, canScrollNext } = useCarousel();
4119
4145
  return /* @__PURE__ */ jsxs(
4120
4146
  Button,
@@ -4132,7 +4158,7 @@ var CarouselNext = React8.forwardRef(({ className, variant = "outline", size = "
4132
4158
  ...props,
4133
4159
  children: [
4134
4160
  /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4" }),
4135
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
4161
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("CAROUSEL.NEXT_SLIDE") })
4136
4162
  ]
4137
4163
  }
4138
4164
  );
@@ -4338,7 +4364,8 @@ var ContextMenuShortcut = ({
4338
4364
  };
4339
4365
  ContextMenuShortcut.displayName = "ContextMenuShortcut";
4340
4366
  var PasswordInput = React8.forwardRef(
4341
- ({ className, toggleAriaLabel = "Toggle password visibility", ...props }, ref) => {
4367
+ ({ className, toggleAriaLabel, ...props }, ref) => {
4368
+ const { t } = useT("genesis.shared");
4342
4369
  const [visible, setVisible] = React8.useState(false);
4343
4370
  const Icon2 = visible ? EyeOff : Eye;
4344
4371
  return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
@@ -4355,7 +4382,7 @@ var PasswordInput = React8.forwardRef(
4355
4382
  "button",
4356
4383
  {
4357
4384
  type: "button",
4358
- "aria-label": toggleAriaLabel,
4385
+ "aria-label": toggleAriaLabel ?? t("PASSWORD_INPUT.TOGGLE_VISIBILITY"),
4359
4386
  onClick: () => setVisible((v) => !v),
4360
4387
  className: "absolute inset-y-0 right-0 flex items-center px-3 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
4361
4388
  children: /* @__PURE__ */ jsx(Icon2, { className: "size-4" })
@@ -4536,6 +4563,7 @@ var CollapsibleContent2 = React8.forwardRef(({ className, children, ...props },
4536
4563
  });
4537
4564
  CollapsibleContent2.displayName = CollapsiblePrimitive.CollapsibleContent.displayName;
4538
4565
  var KanbanTaskCard = ({ task, isOverlay }) => {
4566
+ const { t } = useT("genesis.shared");
4539
4567
  const {
4540
4568
  setNodeRef,
4541
4569
  attributes,
@@ -4591,12 +4619,12 @@ var KanbanTaskCard = ({ task, isOverlay }) => {
4591
4619
  ...listeners,
4592
4620
  className: "-ml-2 h-auto cursor-grab p-1 text-muted-foreground hover:text-foreground",
4593
4621
  children: [
4594
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Move task" }),
4622
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("KANBAN_TASK_CARD.MOVE_TASK") }),
4595
4623
  /* @__PURE__ */ jsx(GripVertical, {})
4596
4624
  ]
4597
4625
  }
4598
4626
  ),
4599
- /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "ml-auto font-semibold", children: "Task" })
4627
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "ml-auto font-semibold", children: t("KANBAN_TASK_CARD.TASK") })
4600
4628
  ] }),
4601
4629
  /* @__PURE__ */ jsx(CardContent, { className: "whitespace-pre-wrap px-3 pb-6 pt-3 text-left", children: task.content })
4602
4630
  ]
@@ -5259,6 +5287,7 @@ var useFileUpload = () => {
5259
5287
  }
5260
5288
  return context;
5261
5289
  };
5290
+ var I18N_MODULE2 = "genesis.shared";
5262
5291
  var FileUploader = forwardRef(
5263
5292
  ({
5264
5293
  className,
@@ -5294,14 +5323,18 @@ var FileUploader = forwardRef(
5294
5323
  );
5295
5324
  useEffect(() => {
5296
5325
  if (isFileTooBig) {
5297
- showErrorToast({ errors: "The file size is more than 5MB" });
5326
+ showErrorToast({
5327
+ errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.TOO_BIG")
5328
+ });
5298
5329
  }
5299
5330
  }, [isFileTooBig]);
5300
5331
  const onDrop = useCallback(
5301
5332
  (acceptedFiles, rejectedFiles) => {
5302
5333
  const files = acceptedFiles;
5303
5334
  if (!files) {
5304
- showErrorToast({ errors: "file error , probably too big" });
5335
+ showErrorToast({
5336
+ errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.FILE_ERROR")
5337
+ });
5305
5338
  return;
5306
5339
  }
5307
5340
  const newValues = value ? [...value] : [];
@@ -5320,12 +5353,16 @@ var FileUploader = forwardRef(
5320
5353
  if (!firstError) continue;
5321
5354
  if (firstError.code === "file-too-large") {
5322
5355
  showErrorToast({
5323
- errors: `File is too large. Max size is ${maxSize / 1024 / 1024}MB`
5356
+ errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.TOO_LARGE", {
5357
+ size: maxSize / 1024 / 1024
5358
+ })
5324
5359
  });
5325
5360
  break;
5326
5361
  }
5327
5362
  if (firstError.code === "file-invalid-type") {
5328
- showErrorToast({ errors: "Invalid file type" });
5363
+ showErrorToast({
5364
+ errors: tStatic(I18N_MODULE2, "FILE_UPLOADER.INVALID_TYPE")
5365
+ });
5329
5366
  break;
5330
5367
  }
5331
5368
  if (firstError.message) {
@@ -5475,6 +5512,7 @@ var FileUploaderContent = forwardRef(({ children, className, ...props }, ref) =>
5475
5512
  });
5476
5513
  FileUploaderContent.displayName = "FileUploaderContent";
5477
5514
  var FileUploaderItem = forwardRef(({ className, index, children, ...props }, ref) => {
5515
+ const { t } = useT(I18N_MODULE2);
5478
5516
  const { removeFileFromSet, activeIndex, direction } = useFileUpload();
5479
5517
  const isSelected = index === activeIndex;
5480
5518
  return /* @__PURE__ */ jsxs(
@@ -5500,10 +5538,7 @@ var FileUploaderItem = forwardRef(({ className, index, children, ...props }, ref
5500
5538
  ),
5501
5539
  onClick: () => removeFileFromSet(index),
5502
5540
  children: [
5503
- /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
5504
- "remove item ",
5505
- index
5506
- ] }),
5541
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("FILE_UPLOADER.REMOVE_ITEM", { index }) }),
5507
5542
  /* @__PURE__ */ jsx(Trash2, { className: "h-4 w-4 duration-200 ease-in-out hover:stroke-destructive" })
5508
5543
  ]
5509
5544
  }
@@ -5716,7 +5751,10 @@ var SelectSeparator = React8.forwardRef(({ className, ...props }, ref) => /* @__
5716
5751
  }
5717
5752
  ));
5718
5753
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
5719
- var Breadcrumb = React8.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
5754
+ var Breadcrumb = React8.forwardRef(({ ...props }, ref) => {
5755
+ const { t } = useT("genesis.shared");
5756
+ return /* @__PURE__ */ jsx("nav", { ref, "aria-label": t("BREADCRUMB.NAV_ARIA"), ...props });
5757
+ });
5720
5758
  Breadcrumb.displayName = "Breadcrumb";
5721
5759
  var BreadcrumbList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
5722
5760
  "ol",
@@ -5781,19 +5819,21 @@ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
5781
5819
  var BreadcrumbEllipsis = ({
5782
5820
  className,
5783
5821
  ...props
5784
- }) => /* @__PURE__ */ jsxs(
5785
- "span",
5786
- {
5787
- role: "presentation",
5788
- "aria-hidden": "true",
5789
- className: cn("flex h-9 w-9 items-center justify-center", className),
5790
- ...props,
5791
- children: [
5792
- /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
5793
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
5794
- ]
5795
- }
5796
- );
5822
+ }) => {
5823
+ const { t } = useT("genesis.shared");
5824
+ return /* @__PURE__ */ jsxs(
5825
+ "span",
5826
+ {
5827
+ "aria-hidden": "true",
5828
+ className: cn("flex h-9 w-9 items-center justify-center", className),
5829
+ ...props,
5830
+ children: [
5831
+ /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }),
5832
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("BREADCRUMB.MORE") })
5833
+ ]
5834
+ }
5835
+ );
5836
+ };
5797
5837
  BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
5798
5838
  var Timeline = ({
5799
5839
  events,
@@ -5908,14 +5948,18 @@ var Timeline = ({
5908
5948
  };
5909
5949
  var DefaultDropzoneContent = ({
5910
5950
  acceptedFormatsLabel = "SVG, PNG, JPG or GIF"
5911
- }) => /* @__PURE__ */ jsxs(Fragment, { children: [
5912
- /* @__PURE__ */ jsx(CloudUpload, { className: "mb-3 size-8 text-muted-foreground", "aria-hidden": true }),
5913
- /* @__PURE__ */ jsxs("p", { className: "mb-1 text-sm text-foreground", children: [
5914
- /* @__PURE__ */ jsx("span", { className: "font-semibold text-primary", children: "Click to upload" }),
5915
- " or drag and drop"
5916
- ] }),
5917
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: acceptedFormatsLabel })
5918
- ] });
5951
+ }) => {
5952
+ const { t } = useT("genesis.shared");
5953
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
5954
+ /* @__PURE__ */ jsx(CloudUpload, { className: "mb-3 size-8 text-muted-foreground", "aria-hidden": true }),
5955
+ /* @__PURE__ */ jsxs("p", { className: "mb-1 text-sm text-foreground", children: [
5956
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-primary", children: t("IMPORT_FILE_MODAL.CLICK_TO_UPLOAD") }),
5957
+ " ",
5958
+ t("IMPORT_FILE_MODAL.OR_DRAG_AND_DROP")
5959
+ ] }),
5960
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: acceptedFormatsLabel })
5961
+ ] });
5962
+ };
5919
5963
  var ImportFileModalContent = ({
5920
5964
  dialogTitle,
5921
5965
  dialogDescription = "Upload a file using the template format.",
@@ -6425,6 +6469,7 @@ var AppTile = ({
6425
6469
  app,
6426
6470
  isLoading
6427
6471
  }) => {
6472
+ const { t } = useT("genesis.shared");
6428
6473
  return /* @__PURE__ */ jsxs(
6429
6474
  "a",
6430
6475
  {
@@ -6442,24 +6487,26 @@ var AppTile = ({
6442
6487
  ),
6443
6488
  children: [
6444
6489
  /* @__PURE__ */ jsx(AppIcon, { icon: app.icon, label: app.label }),
6445
- /* @__PURE__ */ jsx("span", { className: "text-foreground line-clamp-1 max-w-[90px] text-[12px] font-medium leading-tight", children: isLoading ? "Loading\u2026" : app.label })
6490
+ /* @__PURE__ */ jsx("span", { className: "text-foreground line-clamp-1 max-w-[90px] text-[12px] font-medium leading-tight", children: isLoading ? t("APP_SWITCHER_CONTENT.LOADING") : app.label })
6446
6491
  ]
6447
6492
  }
6448
6493
  );
6449
6494
  };
6450
6495
  function AppSwitcherContent({ apps }) {
6496
+ const { t } = useT("genesis.shared");
6451
6497
  if (!apps.length)
6452
- return /* @__PURE__ */ jsx("div", { className: "bg-muted/50 border-t p-3 flex h-12 items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs", children: "No apps found" }) });
6498
+ return /* @__PURE__ */ jsx("div", { className: "bg-muted/50 border-t p-3 flex h-12 items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs", children: t("APP_SWITCHER_CONTENT.NO_APPS") }) });
6453
6499
  return /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
6454
6500
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
6455
6501
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: apps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
6456
6502
  ] });
6457
6503
  }
6458
6504
  function AppSwitcherTrigger({ open }) {
6505
+ const { t } = useT("genesis.shared");
6459
6506
  return /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
6460
6507
  "button",
6461
6508
  {
6462
- "aria-label": "SELISE Blocks apps",
6509
+ "aria-label": t("APP_SWITCHER_TRIGGER.ARIA"),
6463
6510
  className: cn(
6464
6511
  "text-muted-foreground flex h-9 w-9 items-center justify-center rounded-full transition-colors",
6465
6512
  "hover:bg-accent hover:text-foreground focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2",
@@ -6717,9 +6764,19 @@ var AppSwitcher = ({ forwardedTo }) => {
6717
6764
  ] });
6718
6765
  };
6719
6766
  var OPTIONS = {
6720
- system: { Icon: Monitor, label: "Auto" },
6721
- light: { Icon: Sun, label: "Light" },
6722
- dark: { Icon: Moon, label: "Dark" }
6767
+ system: { Icon: Monitor },
6768
+ light: { Icon: Sun },
6769
+ dark: { Icon: Moon }
6770
+ };
6771
+ var getLabel = (t, option) => {
6772
+ switch (option) {
6773
+ case "system":
6774
+ return t("THEME_SWITCHER.AUTO");
6775
+ case "light":
6776
+ return t("THEME_SWITCHER.LIGHT");
6777
+ default:
6778
+ return t("THEME_SWITCHER.DARK");
6779
+ }
6723
6780
  };
6724
6781
  var OPTION_ORDER = ["system", "light", "dark"];
6725
6782
  var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-1 px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
@@ -6728,6 +6785,7 @@ function ThemeSwitcher({
6728
6785
  className,
6729
6786
  showChevron = true
6730
6787
  } = {}) {
6788
+ const { t } = useT("genesis.shared");
6731
6789
  const { theme, setTheme } = useTheme();
6732
6790
  const { Icon: ThemeIcon } = OPTIONS[theme];
6733
6791
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
@@ -6735,7 +6793,7 @@ function ThemeSwitcher({
6735
6793
  "button",
6736
6794
  {
6737
6795
  type: "button",
6738
- "aria-label": "Change theme",
6796
+ "aria-label": t("THEME_SWITCHER.CHANGE_THEME"),
6739
6797
  className: cn(
6740
6798
  TRIGGER_BASE_CLASSES,
6741
6799
  className ?? TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES
@@ -6753,14 +6811,15 @@ function ThemeSwitcher({
6753
6811
  }
6754
6812
  ) }),
6755
6813
  /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "min-w-40", children: [
6756
- /* @__PURE__ */ jsx(DropdownMenuLabel, { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: "Appearance" }),
6814
+ /* @__PURE__ */ jsx(DropdownMenuLabel, { className: "px-2 py-1.5 text-xs font-medium text-muted-foreground", children: t("THEME_SWITCHER.APPEARANCE") }),
6757
6815
  /* @__PURE__ */ jsx(
6758
6816
  DropdownMenuRadioGroup,
6759
6817
  {
6760
6818
  value: theme,
6761
6819
  onValueChange: (value) => setTheme(value),
6762
6820
  children: OPTION_ORDER.map((value) => {
6763
- const { Icon: Icon2, label } = OPTIONS[value];
6821
+ const { Icon: Icon2 } = OPTIONS[value];
6822
+ const label = getLabel(t, value);
6764
6823
  const isActive = value === theme;
6765
6824
  return /* @__PURE__ */ jsxs(
6766
6825
  DropdownMenuRadioItem,
@@ -6838,6 +6897,7 @@ function UserAvatar({ size = "sm" }) {
6838
6897
  );
6839
6898
  }
6840
6899
  function UserDropdownMenu() {
6900
+ const { t } = useT("genesis.shared");
6841
6901
  const { name } = useBlocksAppConfigStore((state) => state.config);
6842
6902
  const { data } = useGetUserInfo();
6843
6903
  const userData = data?.data;
@@ -6870,7 +6930,7 @@ function UserDropdownMenu() {
6870
6930
  variant: "link",
6871
6931
  size: "icon",
6872
6932
  className: "relative h-10 w-10 overflow-hidden rounded-full bg-[hsl(var(--avatar-surface-default))] p-0 text-base font-normal text-[hsl(var(--avatar-text-high-emphasis))] hover:no-underline focus-visible:ring-2 focus-visible:ring-offset-2",
6873
- "aria-label": "Open user menu",
6933
+ "aria-label": t("USER_DROPDOWN_MENU.OPEN_MENU"),
6874
6934
  children: /* @__PURE__ */ jsx(UserAvatar, { size: "sm" })
6875
6935
  }
6876
6936
  ) }),
@@ -6884,7 +6944,10 @@ function UserDropdownMenu() {
6884
6944
  /* @__PURE__ */ jsx(UserAvatar, { size: "lg" }),
6885
6945
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
6886
6946
  /* @__PURE__ */ jsxs("p", { className: "truncate text-sm font-semibold text-foreground", children: [
6887
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "User name: " }),
6947
+ /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
6948
+ t("USER_DROPDOWN_MENU.USER_NAME"),
6949
+ " "
6950
+ ] }),
6888
6951
  /* @__PURE__ */ jsx("span", { children: fullName })
6889
6952
  ] }),
6890
6953
  /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: email }),
@@ -6892,7 +6955,8 @@ function UserDropdownMenu() {
6892
6955
  roles.join(", "),
6893
6956
  userData?.lastUsedOrganizationId && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground/60", children: [
6894
6957
  " ",
6895
- "\u2022 Default"
6958
+ "\u2022 ",
6959
+ t("USER_DROPDOWN_MENU.DEFAULT")
6896
6960
  ] })
6897
6961
  ] })
6898
6962
  ] })
@@ -6906,7 +6970,7 @@ function UserDropdownMenu() {
6906
6970
  className: "cursor-pointer rounded-md px-4 py-3.5",
6907
6971
  children: /* @__PURE__ */ jsxs(Link, { to: "/app/profile", className: "flex items-center gap-4", children: [
6908
6972
  /* @__PURE__ */ jsx(UserRound, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
6909
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "My Profile" })
6973
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: t("USER_DROPDOWN_MENU.MY_PROFILE") })
6910
6974
  ] })
6911
6975
  }
6912
6976
  ) })
@@ -6916,7 +6980,7 @@ function UserDropdownMenu() {
6916
6980
  /* @__PURE__ */ jsxs(DropdownMenuGroup, { className: "p-1.5", children: [
6917
6981
  /* @__PURE__ */ jsxs(DropdownMenuLabel, { className: "flex items-center gap-4 px-4 py-3.5 text-sm font-medium text-muted-foreground/70", children: [
6918
6982
  /* @__PURE__ */ jsx(Building2, { className: "h-5 w-5 shrink-0 text-foreground/90" }),
6919
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: "Organizations" })
6983
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: t("USER_DROPDOWN_MENU.ORGANIZATIONS") })
6920
6984
  ] }),
6921
6985
  /* @__PURE__ */ jsx("div", { className: "max-h-56 overflow-y-auto", children: isOrgsLoading ? /* @__PURE__ */ jsxs("div", { className: "space-y-1.5 px-4 py-2", children: [
6922
6986
  /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-full rounded-md" }),
@@ -6960,7 +7024,7 @@ function UserDropdownMenu() {
6960
7024
  },
6961
7025
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
6962
7026
  /* @__PURE__ */ jsx(LogOut, { className: "h-5 w-5 shrink-0" }),
6963
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Log out" })
7027
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: t("USER_DROPDOWN_MENU.LOG_OUT") })
6964
7028
  ] })
6965
7029
  }
6966
7030
  ) })
@@ -6969,13 +7033,11 @@ function UserDropdownMenu() {
6969
7033
  )
6970
7034
  ] });
6971
7035
  }
6972
- var languages = [
6973
- { key: "en", title: "English" },
6974
- { key: "de", title: "German" },
6975
- { key: "fr", title: "French" }
6976
- ];
6977
7036
  function LanguageSelector() {
6978
- const { changeLanguage, language } = useLanguageSwitcher();
7037
+ const { changeLanguage } = useLanguageSwitcher();
7038
+ const language = useDocumentLanguage();
7039
+ const languages = useLanguagesStore((state) => state.languages);
7040
+ if (languages.length < 2) return null;
6979
7041
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
6980
7042
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
6981
7043
  "button",
@@ -6988,18 +7050,18 @@ function LanguageSelector() {
6988
7050
  ]
6989
7051
  }
6990
7052
  ) }),
6991
- /* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: languages.map((lang, index) => /* @__PURE__ */ jsxs("div", { children: [
7053
+ /* @__PURE__ */ jsx(DropdownMenuContent, { align: "end", children: languages.map((lang, index) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
6992
7054
  /* @__PURE__ */ jsx(
6993
7055
  DropdownMenuItem,
6994
7056
  {
6995
- className: lang.key === language ? "font-semibold" : "",
6996
- onClick: () => changeLanguage(lang.key),
6997
- disabled: lang.key !== "en",
7057
+ lang: lang.code,
7058
+ className: lang.code === language ? "font-semibold" : "",
7059
+ onClick: () => changeLanguage(lang.code),
6998
7060
  children: lang.title
6999
7061
  }
7000
7062
  ),
7001
7063
  index !== languages.length - 1 && /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
7002
- ] }, lang.key)) })
7064
+ ] }, lang.code)) })
7003
7065
  ] });
7004
7066
  }
7005
7067
 
@@ -7261,24 +7323,27 @@ function NotificationBell({ unreadCount }) {
7261
7323
  function NotificationHeader({
7262
7324
  onMarkAllAsRead
7263
7325
  }) {
7326
+ const { t } = useT("genesis.shared");
7264
7327
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b px-4 py-3", children: [
7265
- /* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-primary", children: "Notifications" }),
7328
+ /* @__PURE__ */ jsx("p", { className: "text-base font-semibold text-primary", children: t("NOTIFICATION_HEADER.TITLE") }),
7266
7329
  /* @__PURE__ */ jsx(
7267
7330
  "button",
7268
7331
  {
7269
7332
  onClick: onMarkAllAsRead,
7270
7333
  className: "text-xs text-muted-foreground hover:text-primary hover:underline",
7271
- children: "Mark all as read"
7334
+ children: t("NOTIFICATION_HEADER.MARK_ALL_READ")
7272
7335
  }
7273
7336
  )
7274
7337
  ] });
7275
7338
  }
7276
7339
 
7277
7340
  // src/components/common/notification/utils.ts
7278
- function formatKBTitle(str) {
7279
- if (!str) return "No Title";
7341
+ var MODULE = "genesis.shared";
7342
+ var defaultT = (key, values) => tStatic(MODULE, key, values);
7343
+ function formatKBTitle(str, t = defaultT) {
7344
+ if (!str) return t("NOTIFICATION_UTILS.NO_TITLE");
7280
7345
  if (str === "agent_kb_processing_status")
7281
- return "AI Agent Knowledge Update Status";
7346
+ return t("NOTIFICATION_UTILS.KB_STATUS_TITLE");
7282
7347
  return str.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
7283
7348
  }
7284
7349
  function getKBMetaInfo(meta) {
@@ -7290,20 +7355,23 @@ function getKBMetaInfo(meta) {
7290
7355
  }
7291
7356
  return {};
7292
7357
  }
7293
- function formatKBMetaDescription(meta, fallbackDescription) {
7358
+ function formatKBMetaDescription(meta, fallbackDescription, t = defaultT) {
7294
7359
  const { status, kb_id } = getKBMetaInfo(meta);
7295
- const formattedStatus = status ? `Status: ${status.charAt(0).toUpperCase() + status.slice(1)}` : null;
7296
- const formattedKbId = kb_id ? `KB Id: ${kb_id.split("-")[0]}` : null;
7360
+ const formattedStatus = status ? t("NOTIFICATION_UTILS.STATUS", {
7361
+ status: status.charAt(0).toUpperCase() + status.slice(1)
7362
+ }) : null;
7363
+ const formattedKbId = kb_id ? t("NOTIFICATION_UTILS.KB_ID", { id: kb_id.split("-")[0] ?? kb_id }) : null;
7297
7364
  if (formattedStatus && formattedKbId)
7298
7365
  return `${formattedStatus} | ${formattedKbId}`;
7299
7366
  if (formattedStatus) return formattedStatus;
7300
7367
  if (formattedKbId) return formattedKbId;
7301
- return fallbackDescription || "No Description";
7368
+ return fallbackDescription || t("NOTIFICATION_UTILS.NO_DESCRIPTION");
7302
7369
  }
7303
7370
  function NotificationItem({
7304
7371
  notification,
7305
7372
  onMarkAsRead
7306
7373
  }) {
7374
+ const { t, language } = useT("genesis.shared");
7307
7375
  let denorm = {
7308
7376
  title: "",
7309
7377
  description: "",
@@ -7329,9 +7397,9 @@ function NotificationItem({
7329
7397
  if (!notification.isRead) onMarkAsRead(notification.id);
7330
7398
  },
7331
7399
  children: /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
7332
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: formatKBTitle(denorm.title) }),
7333
- /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: formatKBMetaDescription(denorm.meta, denorm.description) }),
7334
- notification.createdTime && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-muted-foreground", children: new Date(notification.createdTime).toLocaleString() })
7400
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: formatKBTitle(denorm.title, t) }),
7401
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: formatKBMetaDescription(denorm.meta, denorm.description, t) }),
7402
+ notification.createdTime && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[11px] text-muted-foreground", children: new Date(notification.createdTime).toLocaleString(language) })
7335
7403
  ] })
7336
7404
  }
7337
7405
  );
@@ -7344,13 +7412,14 @@ function NotificationList({
7344
7412
  onScroll,
7345
7413
  onMarkAsRead
7346
7414
  }) {
7415
+ const { t } = useT("genesis.shared");
7347
7416
  const isEmpty = notifications.length === 0;
7348
7417
  const renderNotifications = () => {
7349
7418
  if (isLoading && isEmpty) {
7350
7419
  return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground" });
7351
7420
  }
7352
7421
  if (isEmpty) {
7353
- return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: "No notifications" });
7422
+ return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-muted-foreground", children: t("NOTIFICATION_LIST.EMPTY") });
7354
7423
  }
7355
7424
  return notifications.map((notification, idx) => /* @__PURE__ */ jsx(
7356
7425
  NotificationItem,
@@ -7369,7 +7438,7 @@ function NotificationList({
7369
7438
  onScroll,
7370
7439
  children: [
7371
7440
  renderNotifications(),
7372
- isFetching && !isEmpty && /* @__PURE__ */ jsx("div", { className: "p-2 text-center text-xs text-muted-foreground", children: "Loading..." })
7441
+ isFetching && !isEmpty && /* @__PURE__ */ jsx("div", { className: "p-2 text-center text-xs text-muted-foreground", children: t("common:LOADING") })
7373
7442
  ]
7374
7443
  }
7375
7444
  );
@@ -7539,54 +7608,87 @@ function DashboardHeader(props) {
7539
7608
  }
7540
7609
 
7541
7610
  // src/constants/environment-options.ts
7611
+ var MODULE2 = "genesis.shared";
7542
7612
  var environmentOptions = [
7543
7613
  {
7544
7614
  index: 0,
7545
- label: "Development",
7615
+ get label() {
7616
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.DEV_LABEL");
7617
+ },
7546
7618
  value: "dev",
7547
- subtext: "For day-to-day development and testing unstable changes."
7619
+ get subtext() {
7620
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.DEV_SUBTEXT");
7621
+ }
7548
7622
  },
7549
7623
  {
7550
7624
  index: 1,
7551
- label: "Testing",
7625
+ get label() {
7626
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.TEST_LABEL");
7627
+ },
7552
7628
  value: "test",
7553
- subtext: "For QA testing and validation of new features."
7629
+ get subtext() {
7630
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.TEST_SUBTEXT");
7631
+ }
7554
7632
  },
7555
7633
  {
7556
7634
  index: 2,
7557
- label: "Staging",
7635
+ get label() {
7636
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.STG_LABEL");
7637
+ },
7558
7638
  value: "stg",
7559
- subtext: "For final pre-prod validation in a near-production replica."
7639
+ get subtext() {
7640
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.STG_SUBTEXT");
7641
+ }
7560
7642
  },
7561
7643
  {
7562
7644
  index: 3,
7563
- label: "IAT",
7645
+ get label() {
7646
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.IAT_LABEL");
7647
+ },
7564
7648
  value: "iat",
7565
- subtext: "For testing service integrations across modules/systems."
7649
+ get subtext() {
7650
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.IAT_SUBTEXT");
7651
+ }
7566
7652
  },
7567
7653
  {
7568
7654
  index: 4,
7569
- label: "UAT",
7655
+ get label() {
7656
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.UAT_LABEL");
7657
+ },
7570
7658
  value: "uat",
7571
- subtext: "For end-user or stakeholder validation of new features."
7659
+ get subtext() {
7660
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.UAT_SUBTEXT");
7661
+ }
7572
7662
  },
7573
7663
  {
7574
7664
  index: 5,
7575
- label: "Prod Shadow",
7665
+ get label() {
7666
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SHADOW_LABEL");
7667
+ },
7576
7668
  value: "prod-shadow",
7577
- subtext: "For mirroring production data/traffic to validate changes invisibly."
7669
+ get subtext() {
7670
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SHADOW_SUBTEXT");
7671
+ }
7578
7672
  },
7579
7673
  {
7580
7674
  index: 6,
7581
- label: "Pre-Prod",
7675
+ get label() {
7676
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PRE_PROD_LABEL");
7677
+ },
7582
7678
  value: "pre-prod",
7583
- subtext: "For load testing, security checks, or final sanity tests before production."
7679
+ get subtext() {
7680
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PRE_PROD_SUBTEXT");
7681
+ }
7584
7682
  },
7585
7683
  {
7586
7684
  index: 7,
7587
- label: "Production",
7685
+ get label() {
7686
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_LABEL");
7687
+ },
7588
7688
  value: "prod",
7589
- subtext: "The live environment serving actual users."
7689
+ get subtext() {
7690
+ return tStatic(MODULE2, "ENVIRONMENT_OPTIONS.PROD_SUBTEXT");
7691
+ }
7590
7692
  }
7591
7693
  ];
7592
7694
  var EnvironmentCard = ({
@@ -7594,6 +7696,7 @@ var EnvironmentCard = ({
7594
7696
  isMigrationOngoing,
7595
7697
  className
7596
7698
  }) => {
7699
+ const { t } = useT("genesis.shared");
7597
7700
  const { setSelectedProject, setTenantGroup } = useProjectStore();
7598
7701
  const { mutateAsync } = useStartImpersonation();
7599
7702
  const navigate = useNavigate();
@@ -7620,7 +7723,7 @@ var EnvironmentCard = ({
7620
7723
  )?.label }),
7621
7724
  isMigrationOngoing && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
7622
7725
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(HourglassIcon, { className: "text-icon-warning h-4 w-4 cursor-pointer" }) }),
7623
- /* @__PURE__ */ jsx(TooltipContent, { className: "border-none bg-neutral-500 text-white shadow-none", children: "Migration in progress" })
7726
+ /* @__PURE__ */ jsx(TooltipContent, { className: "border-none bg-neutral-500 text-white shadow-none", children: t("ENVIRONMENT_CARD.MIGRATION") })
7624
7727
  ] }) })
7625
7728
  ] }) }),
7626
7729
  /* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4 opacity-0 transition-opacity duration-200 group-hover:opacity-100" })
@@ -7647,6 +7750,7 @@ function EnvironmentList({
7647
7750
  redirectPaths,
7648
7751
  collapsed = false
7649
7752
  }) {
7753
+ const { t } = useT("genesis.shared");
7650
7754
  const navigate = useNavigate();
7651
7755
  const { pathname } = useLocation();
7652
7756
  const { data: projectGroups = [], isLoading } = useGetProjects({
@@ -7690,7 +7794,7 @@ function EnvironmentList({
7690
7794
  const environment = projectData?.data?.environment || selectedProject?.environment;
7691
7795
  const applicationDomain = projectData?.data?.customDomain || selectedProject?.customDomain;
7692
7796
  const environmentDomainSuffix = applicationDomain ? ` \xB7 ${applicationDomain}` : "";
7693
- const environmentLabel = environment ? `${environment}${environmentDomainSuffix}` : "Select an Environment";
7797
+ const environmentLabel = environment ? `${environment}${environmentDomainSuffix}` : t("ENVIRONMENT_LIST.SELECT_ENVIRONMENT");
7694
7798
  const projects = useMemo(() => {
7695
7799
  if (!selectedProject) return [];
7696
7800
  const groupWithSelected = projectGroups.find(
@@ -7719,8 +7823,8 @@ function EnvironmentList({
7719
7823
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
7720
7824
  /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
7721
7825
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col items-start", children: [
7722
- /* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: "Environment" }),
7723
- environment ? /* @__PURE__ */ jsx("div", { className: "flex min-w-0 items-center gap-1 leading-tight", children: /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-sm bg-[hsl(var(--blocks-primary-50))] px-1.5 py-0.5 text-[11px] font-semibold leading-none text-[hsl(var(--high-emphasis))]", children: environment }) }) : /* @__PURE__ */ jsx("span", { className: "text-sm leading-tight", children: "Select an Environment" })
7826
+ /* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: t("ENVIRONMENT_LIST.ENVIRONMENT") }),
7827
+ environment ? /* @__PURE__ */ jsx("div", { className: "flex min-w-0 items-center gap-1 leading-tight", children: /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-sm bg-[hsl(var(--blocks-primary-50))] px-1.5 py-0.5 text-[11px] font-semibold leading-none text-[hsl(var(--high-emphasis))]", children: environment }) }) : /* @__PURE__ */ jsx("span", { className: "text-sm leading-tight", children: t("ENVIRONMENT_LIST.SELECT_ENVIRONMENT") })
7724
7828
  ] })
7725
7829
  ] })
7726
7830
  }
@@ -7733,11 +7837,11 @@ function EnvironmentList({
7733
7837
  sideOffset: collapsed ? 8 : 4,
7734
7838
  className: collapsed ? "min-w-48" : "w-[--radix-dropdown-menu-trigger-width]",
7735
7839
  children: [
7736
- /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Your Environments" }),
7840
+ /* @__PURE__ */ jsx(DropdownMenuLabel, { children: t("ENVIRONMENT_LIST.YOUR_ENVIRONMENTS") }),
7737
7841
  (() => {
7738
7842
  const others = projects.filter((project) => project.itemId !== selectedProject?.itemId).slice(0, 5);
7739
7843
  if (others.length === 0) {
7740
- return /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "No other environments available" }) });
7844
+ return /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: t("ENVIRONMENT_LIST.NO_OTHERS") }) });
7741
7845
  }
7742
7846
  return others.map((project) => /* @__PURE__ */ jsx(
7743
7847
  DropdownMenuItem,
@@ -7749,21 +7853,22 @@ function EnvironmentList({
7749
7853
  ));
7750
7854
  })(),
7751
7855
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
7752
- /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: "Environment overview is not part of this client" })
7856
+ /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: t("ENVIRONMENT_LIST.OVERVIEW_UNAVAILABLE") })
7753
7857
  ]
7754
7858
  }
7755
7859
  )
7756
7860
  ] });
7757
7861
  }
7758
7862
  function BackToConsoleNavigator() {
7863
+ const { t } = useT("genesis.shared");
7759
7864
  return /* @__PURE__ */ jsx(Link, { to: "console", children: /* @__PURE__ */ jsxs(
7760
7865
  Button,
7761
7866
  {
7762
7867
  variant: "outline",
7763
7868
  className: "bg-transparent hover:bg-slate-200 dark:hover:bg-gray-800",
7764
7869
  children: [
7765
- /* @__PURE__ */ jsx("div", { className: "hidden flex-row items-center md:flex", children: "Back to console" }),
7766
- /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center text-xs md:hidden", children: "Console" })
7870
+ /* @__PURE__ */ jsx("div", { className: "hidden flex-row items-center md:flex", children: t("BACK_TO_CONSOLE_NAVIGATOR.BACK") }),
7871
+ /* @__PURE__ */ jsx("div", { className: "flex flex-row items-center text-xs md:hidden", children: t("BACK_TO_CONSOLE_NAVIGATOR.CONSOLE") })
7767
7872
  ]
7768
7873
  }
7769
7874
  ) });
@@ -7916,6 +8021,7 @@ var AppLoadingSpinner = ({ size = 64 }) => /* @__PURE__ */ jsxs(Fragment, { chil
7916
8021
  ` }),
7917
8022
  /* @__PURE__ */ jsx("div", { className: "bg-background fixed inset-0 z-50 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "animate-breathe", children: /* @__PURE__ */ jsx(BlocksIcon, { size }) }) })
7918
8023
  ] });
8024
+ var GENESIS_SHARED_MODULE = "genesis.shared";
7919
8025
  var projectNameFor = (projects, tenantId) => tenantId && projects.find((p) => p.tenantId === tenantId)?.name || null;
7920
8026
  var claimKeyOf = (claim) => claim ? `${claim.tabId}|${claim.tenantId}|${claim.ts}` : null;
7921
8027
  var SESSION_ENDED_CODES = /* @__PURE__ */ new Set([
@@ -7986,6 +8092,7 @@ function ImpersonationBlocked({
7986
8092
  onSecondary,
7987
8093
  consolePath
7988
8094
  }) {
8095
+ const { t } = useT(GENESIS_SHARED_MODULE);
7989
8096
  const navigate = useNavigate();
7990
8097
  return /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
7991
8098
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
@@ -8000,7 +8107,7 @@ function ImpersonationBlocked({
8000
8107
  {
8001
8108
  variant: primaryLabel && onPrimary ? "outline" : "default",
8002
8109
  onClick: () => navigate(consolePath),
8003
- children: "Go to console"
8110
+ children: t("IMPERSONATION_GUARD.GO_TO_CONSOLE")
8004
8111
  }
8005
8112
  )
8006
8113
  ] })
@@ -8052,6 +8159,7 @@ function ImpersonationTerminator({
8052
8159
  const [returnFailure, setReturnFailure] = useState(
8053
8160
  null
8054
8161
  );
8162
+ const { t } = useT(GENESIS_SHARED_MODULE);
8055
8163
  const signOut = useSignOut();
8056
8164
  useEffect(() => {
8057
8165
  if (!isImpersonated) setReturnFailure(null);
@@ -8098,9 +8206,9 @@ function ImpersonationTerminator({
8098
8206
  return /* @__PURE__ */ jsx(
8099
8207
  ImpersonationBlocked,
8100
8208
  {
8101
- title: name ? `Your session is in ${name}` : "Your session is in a project",
8102
- description: "The project is open in another window. A session can only be in one place at a time.",
8103
- primaryLabel: name ? `Leave ${name}` : "Leave the project",
8209
+ title: name ? t("IMPERSONATION_GUARD.DETACHED_TITLE_NAMED", { name }) : t("IMPERSONATION_GUARD.DETACHED_TITLE"),
8210
+ description: t("IMPERSONATION_GUARD.DETACHED_DESCRIPTION"),
8211
+ primaryLabel: name ? t("IMPERSONATION_GUARD.LEAVE_NAMED", { name }) : t("IMPERSONATION_GUARD.LEAVE"),
8104
8212
  onPrimary: () => {
8105
8213
  setReturnFailure(null);
8106
8214
  setDetached(null);
@@ -8112,9 +8220,9 @@ function ImpersonationTerminator({
8112
8220
  return /* @__PURE__ */ jsx(
8113
8221
  ImpersonationBlocked,
8114
8222
  {
8115
- title: "Your session has ended",
8116
- description: "Sign in again to continue.",
8117
- primaryLabel: "Sign in again",
8223
+ title: t("IMPERSONATION_GUARD.SESSION_ENDED_TITLE"),
8224
+ description: t("IMPERSONATION_GUARD.SESSION_ENDED_DESCRIPTION"),
8225
+ primaryLabel: t("IMPERSONATION_GUARD.SIGN_IN_AGAIN"),
8118
8226
  onPrimary: signOut
8119
8227
  }
8120
8228
  );
@@ -8124,17 +8232,17 @@ function ImpersonationTerminator({
8124
8232
  return /* @__PURE__ */ jsx(
8125
8233
  ImpersonationBlocked,
8126
8234
  {
8127
- title: "Couldn't return to the console",
8128
- description: name ? `Your session is still in ${name}. Try again, or sign out.` : "Your session is still in a project. Try again, or sign out.",
8129
- primaryLabel: "Try again",
8235
+ title: t("IMPERSONATION_GUARD.RETURN_FAILED_TITLE"),
8236
+ description: name ? t("IMPERSONATION_GUARD.RETURN_FAILED_NAMED", { name }) : t("IMPERSONATION_GUARD.RETURN_FAILED"),
8237
+ primaryLabel: t("IMPERSONATION_GUARD.TRY_AGAIN"),
8130
8238
  onPrimary: () => setReturnFailure(null),
8131
- secondaryLabel: "Sign out",
8239
+ secondaryLabel: t("IMPERSONATION_GUARD.SIGN_OUT"),
8132
8240
  onSecondary: signOut
8133
8241
  }
8134
8242
  );
8135
8243
  }
8136
8244
  if (isImpersonated || isTerminating) {
8137
- return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: "Returning to the console\u2026" });
8245
+ return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: t("IMPERSONATION_GUARD.RETURNING") });
8138
8246
  }
8139
8247
  return /* @__PURE__ */ jsx(Fragment, { children });
8140
8248
  }
@@ -8152,6 +8260,7 @@ function ImpersonationSynchronizer({
8152
8260
  setImpersonationError,
8153
8261
  setDetached
8154
8262
  } = useImpersonateStore();
8263
+ const { t } = useT(GENESIS_SHARED_MODULE);
8155
8264
  const { mutateAsync } = useStartImpersonation();
8156
8265
  const recordClaimedTenant = useRecordClaimedTenant();
8157
8266
  const { data: _data } = useGetProjects({ enabled: true });
@@ -8291,7 +8400,7 @@ function ImpersonationSynchronizer({
8291
8400
  return /* @__PURE__ */ jsx(
8292
8401
  ImpersonationWaiting,
8293
8402
  {
8294
- label: thisProjectName ? `Opening ${thisProjectName}\u2026` : "Opening project\u2026"
8403
+ label: thisProjectName ? t("IMPERSONATION_GUARD.OPENING_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.OPENING")
8295
8404
  }
8296
8405
  );
8297
8406
  }
@@ -8303,7 +8412,7 @@ function ImpersonationSynchronizer({
8303
8412
  return /* @__PURE__ */ jsx(
8304
8413
  ImpersonationWaiting,
8305
8414
  {
8306
- label: thisProjectName ? `Opening ${thisProjectName}\u2026` : "Opening project\u2026"
8415
+ label: thisProjectName ? t("IMPERSONATION_GUARD.OPENING_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.OPENING")
8307
8416
  }
8308
8417
  );
8309
8418
  }
@@ -8312,16 +8421,20 @@ function ImpersonationSynchronizer({
8312
8421
  return accessDenied ? /* @__PURE__ */ jsx(
8313
8422
  ImpersonationBlocked,
8314
8423
  {
8315
- title: thisProjectName ? `You don't have access to ${thisProjectName}` : "You don't have access to this project",
8316
- description: "Your access to this project may have been removed. Pick another project from the console.",
8424
+ title: thisProjectName ? t("IMPERSONATION_GUARD.NO_ACCESS_NAMED", {
8425
+ name: thisProjectName
8426
+ }) : t("IMPERSONATION_GUARD.NO_ACCESS"),
8427
+ description: t("IMPERSONATION_GUARD.NO_ACCESS_DESCRIPTION"),
8317
8428
  consolePath
8318
8429
  }
8319
8430
  ) : /* @__PURE__ */ jsx(
8320
8431
  ImpersonationBlocked,
8321
8432
  {
8322
- title: thisProjectName ? `Couldn't open ${thisProjectName}` : "Couldn't open this project",
8323
- description: "Something went wrong switching to this project. Try again, or pick a different one from the console.",
8324
- primaryLabel: "Try again",
8433
+ title: thisProjectName ? t("IMPERSONATION_GUARD.OPEN_FAILED_NAMED", {
8434
+ name: thisProjectName
8435
+ }) : t("IMPERSONATION_GUARD.OPEN_FAILED"),
8436
+ description: t("IMPERSONATION_GUARD.OPEN_FAILED_DESCRIPTION"),
8437
+ primaryLabel: t("IMPERSONATION_GUARD.TRY_AGAIN"),
8325
8438
  onPrimary: takeSession,
8326
8439
  consolePath
8327
8440
  }
@@ -8331,9 +8444,11 @@ function ImpersonationSynchronizer({
8331
8444
  return /* @__PURE__ */ jsx(
8332
8445
  ImpersonationBlocked,
8333
8446
  {
8334
- title: "Your session returned to the console",
8335
- description: thisProjectName ? `You went back to the console in another window, so ${thisProjectName} is no longer open here.` : "You went back to the console in another window, so this project is no longer open here.",
8336
- primaryLabel: thisProjectName ? `Reopen ${thisProjectName}` : "Reopen this project",
8447
+ title: t("IMPERSONATION_GUARD.CONSOLE_RETURNED_TITLE"),
8448
+ description: thisProjectName ? t("IMPERSONATION_GUARD.CONSOLE_RETURNED_NAMED", {
8449
+ name: thisProjectName
8450
+ }) : t("IMPERSONATION_GUARD.CONSOLE_RETURNED"),
8451
+ primaryLabel: thisProjectName ? t("IMPERSONATION_GUARD.REOPEN_NAMED", { name: thisProjectName }) : t("IMPERSONATION_GUARD.REOPEN"),
8337
8452
  onPrimary: takeSession,
8338
8453
  consolePath
8339
8454
  }
@@ -8344,21 +8459,27 @@ function ImpersonationSynchronizer({
8344
8459
  return /* @__PURE__ */ jsx(
8345
8460
  ImpersonationBlocked,
8346
8461
  {
8347
- title: "Another project is open in this browser",
8348
- description: otherName ? `Your session moved to ${otherName} in another window. A session can only be in one project at a time.` : "Your session moved to another project in a different window. A session can only be in one project at a time.",
8349
- primaryLabel: thisProjectName ? `Continue in ${thisProjectName}` : "Continue in this project",
8462
+ title: t("IMPERSONATION_GUARD.ANOTHER_PROJECT_TITLE"),
8463
+ description: otherName ? t("IMPERSONATION_GUARD.ANOTHER_PROJECT_NAMED", {
8464
+ name: otherName
8465
+ }) : t("IMPERSONATION_GUARD.ANOTHER_PROJECT"),
8466
+ primaryLabel: thisProjectName ? t("IMPERSONATION_GUARD.CONTINUE_NAMED", {
8467
+ name: thisProjectName
8468
+ }) : t("IMPERSONATION_GUARD.CONTINUE"),
8350
8469
  onPrimary: takeSession,
8351
8470
  consolePath
8352
8471
  }
8353
8472
  );
8354
8473
  }
8355
8474
  if (!routeTenantId)
8356
- return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: "Loading your projects\u2026" });
8475
+ return /* @__PURE__ */ jsx(ImpersonationWaiting, { label: t("IMPERSONATION_GUARD.LOADING_PROJECTS") });
8357
8476
  if (routeTenantId !== impersonatedTenantId) {
8358
8477
  return /* @__PURE__ */ jsx(
8359
8478
  ImpersonationWaiting,
8360
8479
  {
8361
- label: thisProjectName ? `Switching to ${thisProjectName}\u2026` : "Switching projects\u2026"
8480
+ label: thisProjectName ? t("IMPERSONATION_GUARD.SWITCHING_NAMED", {
8481
+ name: thisProjectName
8482
+ }) : t("IMPERSONATION_GUARD.SWITCHING")
8362
8483
  }
8363
8484
  );
8364
8485
  }
@@ -8468,6 +8589,7 @@ var LoginHeader = ({
8468
8589
  blocksUrl = "https://seliseblocks.com",
8469
8590
  githubUrl = "https://github.com/SELISEdigitalplatforms"
8470
8591
  }) => {
8592
+ const { t } = useT("genesis.shared");
8471
8593
  const {
8472
8594
  config: { appLogoUrl }
8473
8595
  } = useBlocksAppConfigStore((state) => state);
@@ -8490,7 +8612,7 @@ var LoginHeader = ({
8490
8612
  }
8491
8613
  ),
8492
8614
  /* @__PURE__ */ jsxs("div", { className: "nav-right", children: [
8493
- /* @__PURE__ */ jsx("a", { href: docsUrl, target: "_blank", rel: "noreferrer", className: "nav-link", children: "Docs" }),
8615
+ /* @__PURE__ */ jsx("a", { href: docsUrl, target: "_blank", rel: "noreferrer", className: "nav-link", children: t("LOGIN_HEADER.DOCS") }),
8494
8616
  /* @__PURE__ */ jsx(
8495
8617
  "a",
8496
8618
  {
@@ -9131,32 +9253,35 @@ function useAtmosphericCanvas(canvasRef) {
9131
9253
  }
9132
9254
 
9133
9255
  // src/pages/login/login.constant.ts
9134
- var BLOCKS_PRODUCTS = [
9256
+ var VISIT_KEY = "LOGIN_CONSTANT.VISIT";
9257
+ var getBlocksProducts = (t) => [
9135
9258
  {
9136
9259
  name: "blocks-os",
9137
9260
  appName: "blocks OS",
9138
- badge: "Platform Core",
9139
- tagline: "Enterprise application operating system.",
9140
- descriptionTitle: "Your application control plane",
9261
+ badge: t("LOGIN_CONSTANT.OS_BADGE"),
9262
+ tagline: t("LOGIN_CONSTANT.OS_TAGLINE"),
9263
+ descriptionTitle: t("LOGIN_CONSTANT.OS_TITLE"),
9264
+ // Not shown in the UI.
9141
9265
  keywords: ["secure", "isolated", "auditable"],
9142
- shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
9143
- description: "Blocks OS is a secure, isolated, and fully auditable tenant-level core operating layer. It handles multi-tenant isolation, secrets management, audit trails, and sensitive log and trace handling while automatically logging every authentication decision, data access event, and configuration change.",
9266
+ shortDescription: t("LOGIN_CONSTANT.OS_SHORT"),
9267
+ description: t("LOGIN_CONSTANT.OS_DESCRIPTION"),
9144
9268
  featureChips: [
9145
- "Multi-tenant isolation",
9146
- "Scoped secrets",
9147
- "Audit trails",
9148
- "Log & trace handling",
9149
- "Role-based access"
9269
+ t("LOGIN_CONSTANT.OS_CHIP_1"),
9270
+ t("LOGIN_CONSTANT.OS_CHIP_2"),
9271
+ t("LOGIN_CONSTANT.OS_CHIP_3"),
9272
+ t("LOGIN_CONSTANT.OS_CHIP_4"),
9273
+ t("LOGIN_CONSTANT.OS_CHIP_5")
9150
9274
  ],
9151
9275
  url: "",
9152
- cta: "Visit blocks OS"
9276
+ cta: t(VISIT_KEY, { name: "blocks OS" })
9153
9277
  },
9154
9278
  {
9155
9279
  name: "blocks-localization",
9156
9280
  appName: "blocks Localization",
9157
- badge: "i18n",
9158
- tagline: "Localization infrastructure for modern teams.",
9159
- descriptionTitle: "Translate without the overhead",
9281
+ badge: t("LOGIN_CONSTANT.LOCALIZATION_BADGE"),
9282
+ tagline: t("LOGIN_CONSTANT.LOCALIZATION_TAGLINE"),
9283
+ descriptionTitle: t("LOGIN_CONSTANT.LOCALIZATION_TITLE"),
9284
+ // Not shown in the UI.
9160
9285
  keywords: [
9161
9286
  "multilingual",
9162
9287
  "contextual",
@@ -9164,42 +9289,44 @@ var BLOCKS_PRODUCTS = [
9164
9289
  "instant",
9165
9290
  "scalable"
9166
9291
  ],
9167
- shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
9168
- description: "Blocks Localization is a key-based and context-aware translation service. Manage multilingual interfaces, edit translations in-browser in real time through the extension, and run bulk operations across thousands of keys.",
9292
+ shortDescription: t("LOGIN_CONSTANT.LOCALIZATION_SHORT"),
9293
+ description: t("LOGIN_CONSTANT.LOCALIZATION_DESCRIPTION"),
9169
9294
  featureChips: [
9170
- "Browser extension",
9171
- "Bulk key operations",
9172
- "Context-aware translations",
9173
- "Real-time publishing"
9295
+ t("LOGIN_CONSTANT.LOCALIZATION_CHIP_1"),
9296
+ t("LOGIN_CONSTANT.LOCALIZATION_CHIP_2"),
9297
+ t("LOGIN_CONSTANT.LOCALIZATION_CHIP_3"),
9298
+ t("LOGIN_CONSTANT.LOCALIZATION_CHIP_4")
9174
9299
  ],
9175
9300
  url: "",
9176
- cta: "Visit blocks Localization"
9301
+ cta: t(VISIT_KEY, { name: "blocks Localization" })
9177
9302
  },
9178
9303
  {
9179
9304
  name: "blocks-iam",
9180
9305
  appName: "blocks IAM",
9181
- badge: "Identity",
9182
- tagline: "Enterprise identity, handled end-to-end.",
9183
- descriptionTitle: "One identity layer for every app",
9306
+ badge: t("LOGIN_CONSTANT.IAM_BADGE"),
9307
+ tagline: t("LOGIN_CONSTANT.IAM_TAGLINE"),
9308
+ descriptionTitle: t("LOGIN_CONSTANT.IAM_TITLE"),
9309
+ // Not shown in the UI.
9184
9310
  keywords: ["secure", "unified", "seamless"],
9185
- shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
9186
- description: "Blocks IAM is the unified identity layer for your entire application ecosystem. Configure enterprise SSO, connect external identity providers like Keycloak, Okta, or Azure AD, and enforce MFA from a single secure dashboard.",
9311
+ shortDescription: t("LOGIN_CONSTANT.IAM_SHORT"),
9312
+ description: t("LOGIN_CONSTANT.IAM_DESCRIPTION"),
9187
9313
  featureChips: [
9188
- "SSO & IdP integration",
9189
- "Multi-factor auth",
9190
- "Role-based access",
9191
- "CAPTCHA & client credentials",
9192
- "Magic links"
9314
+ t("LOGIN_CONSTANT.IAM_CHIP_1"),
9315
+ t("LOGIN_CONSTANT.IAM_CHIP_2"),
9316
+ t("LOGIN_CONSTANT.IAM_CHIP_3"),
9317
+ t("LOGIN_CONSTANT.IAM_CHIP_4"),
9318
+ t("LOGIN_CONSTANT.IAM_CHIP_5")
9193
9319
  ],
9194
9320
  url: "",
9195
- cta: "Visit blocks IAM"
9321
+ cta: t(VISIT_KEY, { name: "blocks IAM" })
9196
9322
  },
9197
9323
  {
9198
9324
  name: "blocks-data",
9199
9325
  appName: "blocks Data",
9200
- badge: "Secure Storage",
9201
- tagline: "Instant APIs over any data operations.",
9202
- descriptionTitle: "Your data, API-ready",
9326
+ badge: t("LOGIN_CONSTANT.DATA_BADGE"),
9327
+ tagline: t("LOGIN_CONSTANT.DATA_TAGLINE"),
9328
+ descriptionTitle: t("LOGIN_CONSTANT.DATA_TITLE"),
9329
+ // Not shown in the UI.
9203
9330
  keywords: [
9204
9331
  "queryable",
9205
9332
  "structured",
@@ -9207,43 +9334,45 @@ var BLOCKS_PRODUCTS = [
9207
9334
  "versioned",
9208
9335
  "accessible"
9209
9336
  ],
9210
- shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
9211
- description: "Blocks Data gives you instant GraphQL endpoints over managed or bring-your-own databases. Define schemas visually, enforce column-level validation and access control, and perform CRUD operations through the Data Playground.",
9337
+ shortDescription: t("LOGIN_CONSTANT.DATA_SHORT"),
9338
+ description: t("LOGIN_CONSTANT.DATA_DESCRIPTION"),
9212
9339
  featureChips: [
9213
- "GraphQL APIs",
9214
- "Column-level access",
9215
- "CRUD playground",
9216
- "Multi-provider storage",
9217
- "Bring your own database"
9340
+ t("LOGIN_CONSTANT.DATA_CHIP_1"),
9341
+ t("LOGIN_CONSTANT.DATA_CHIP_2"),
9342
+ t("LOGIN_CONSTANT.DATA_CHIP_3"),
9343
+ t("LOGIN_CONSTANT.DATA_CHIP_4"),
9344
+ t("LOGIN_CONSTANT.DATA_CHIP_5")
9218
9345
  ],
9219
9346
  url: "",
9220
- cta: "Visit blocks Data"
9347
+ cta: t(VISIT_KEY, { name: "blocks Data" })
9221
9348
  },
9222
9349
  {
9223
9350
  name: "blocks-logic",
9224
9351
  appName: "blocks Logic",
9225
- badge: "Worflow Engine",
9226
- tagline: "Automate without writing code.",
9227
- descriptionTitle: "Build workflows on a canvas",
9352
+ badge: t("LOGIN_CONSTANT.LOGIC_BADGE"),
9353
+ tagline: t("LOGIN_CONSTANT.LOGIC_TAGLINE"),
9354
+ descriptionTitle: t("LOGIN_CONSTANT.LOGIC_TITLE"),
9355
+ // Not shown in the UI.
9228
9356
  keywords: ["visual", "automated", "event-driven", "codeless"],
9229
- shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
9230
- description: "Blocks Logic is a visual workflow engine for orchestrating complex operations without code. Drag triggers, conditions, and actions onto a canvas, fire workflows through webhooks or email, execute AI reasoning nodes, and push data through HTTP requests.",
9357
+ shortDescription: t("LOGIN_CONSTANT.LOGIC_SHORT"),
9358
+ description: t("LOGIN_CONSTANT.LOGIC_DESCRIPTION"),
9231
9359
  featureChips: [
9232
- "Drag-and-drop builder",
9233
- "Webhook & email triggers",
9234
- "AI agent node",
9235
- "HTTP & database actions",
9236
- "Conditional branching"
9360
+ t("LOGIN_CONSTANT.LOGIC_CHIP_1"),
9361
+ t("LOGIN_CONSTANT.LOGIC_CHIP_2"),
9362
+ t("LOGIN_CONSTANT.LOGIC_CHIP_3"),
9363
+ t("LOGIN_CONSTANT.LOGIC_CHIP_4"),
9364
+ t("LOGIN_CONSTANT.LOGIC_CHIP_5")
9237
9365
  ],
9238
9366
  url: "",
9239
- cta: "Visit blocks Logic"
9367
+ cta: t(VISIT_KEY, { name: "blocks Logic" })
9240
9368
  },
9241
9369
  {
9242
9370
  name: "blocks-studio",
9243
9371
  appName: "blocks Studio",
9244
- badge: "AI Studio",
9245
- tagline: "Generate AI-powered apps within Blocks context.",
9246
- descriptionTitle: "Generate anything with AI",
9372
+ badge: t("LOGIN_CONSTANT.STUDIO_BADGE"),
9373
+ tagline: t("LOGIN_CONSTANT.STUDIO_TAGLINE"),
9374
+ descriptionTitle: t("LOGIN_CONSTANT.STUDIO_TITLE"),
9375
+ // Not shown in the UI.
9247
9376
  keywords: [
9248
9377
  "intelligent",
9249
9378
  "generative",
@@ -9251,24 +9380,25 @@ var BLOCKS_PRODUCTS = [
9251
9380
  "instant",
9252
9381
  "adaptive"
9253
9382
  ],
9254
- shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
9255
- description: "Blocks Studio is an AI engine that transforms natural language prompts into working applications and reports within the Blocks ecosystem. It uses the same agent infrastructure to convert prompts into functional interfaces.",
9383
+ shortDescription: t("LOGIN_CONSTANT.STUDIO_SHORT"),
9384
+ description: t("LOGIN_CONSTANT.STUDIO_DESCRIPTION"),
9256
9385
  featureChips: [
9257
- "Natural language prompts",
9258
- "AI app generation",
9259
- "Blocks-aware context",
9260
- "Instant prototyping",
9261
- "Internal tool scaffolding"
9386
+ t("LOGIN_CONSTANT.STUDIO_CHIP_1"),
9387
+ t("LOGIN_CONSTANT.STUDIO_CHIP_2"),
9388
+ t("LOGIN_CONSTANT.STUDIO_CHIP_3"),
9389
+ t("LOGIN_CONSTANT.STUDIO_CHIP_4"),
9390
+ t("LOGIN_CONSTANT.STUDIO_CHIP_5")
9262
9391
  ],
9263
9392
  url: "",
9264
- cta: "Visit blocks Studio"
9393
+ cta: t(VISIT_KEY, { name: "blocks Studio" })
9265
9394
  },
9266
9395
  {
9267
9396
  name: "blocks-agents",
9268
9397
  appName: "Blocks Agents",
9269
- badge: "AI Gateway",
9270
- tagline: "Reasoning agents for every frontend.",
9271
- descriptionTitle: "AI agents that understand your product",
9398
+ badge: t("LOGIN_CONSTANT.AGENTS_BADGE"),
9399
+ tagline: t("LOGIN_CONSTANT.AGENTS_TAGLINE"),
9400
+ descriptionTitle: t("LOGIN_CONSTANT.AGENTS_TITLE"),
9401
+ // Not shown in the UI.
9272
9402
  keywords: [
9273
9403
  "reasoning",
9274
9404
  "autonomous",
@@ -9276,95 +9406,99 @@ var BLOCKS_PRODUCTS = [
9276
9406
  "intelligent",
9277
9407
  "adaptive"
9278
9408
  ],
9279
- shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
9280
- description: "Blocks Agents lets you create, configure, and deploy intelligent assistants without complex technical setup. Equip agents with RAG-powered knowledge bases, connect custom LLMs through MCP, define tools and guardrails, and embed agents into any frontend with a single script tag.",
9409
+ shortDescription: t("LOGIN_CONSTANT.AGENTS_SHORT"),
9410
+ description: t("LOGIN_CONSTANT.AGENTS_DESCRIPTION"),
9281
9411
  featureChips: [
9282
- "RAG knowledge bases",
9283
- "Custom LLM & MCP",
9284
- "Embeddable script tag",
9285
- "Standard APIs"
9412
+ t("LOGIN_CONSTANT.AGENTS_CHIP_1"),
9413
+ t("LOGIN_CONSTANT.AGENTS_CHIP_2"),
9414
+ t("LOGIN_CONSTANT.AGENTS_CHIP_3"),
9415
+ t("LOGIN_CONSTANT.AGENTS_CHIP_4")
9286
9416
  ],
9287
9417
  url: "",
9288
- cta: "Visit Blocks Agents"
9418
+ cta: t(VISIT_KEY, { name: "Blocks Agents" })
9289
9419
  },
9290
9420
  {
9291
9421
  name: "blocks-release",
9292
9422
  appName: "blocks Release",
9293
- badge: "CI/CD",
9294
- tagline: "Secure releases with faster pace.",
9295
- descriptionTitle: "Deployment with built-in guardrails",
9423
+ badge: t("LOGIN_CONSTANT.RELEASE_BADGE"),
9424
+ tagline: t("LOGIN_CONSTANT.RELEASE_TAGLINE"),
9425
+ descriptionTitle: t("LOGIN_CONSTANT.RELEASE_TITLE"),
9426
+ // Not shown in the UI.
9296
9427
  keywords: ["secure", "compliant", "automated", "fast"],
9297
- shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
9298
- description: "Blocks Release provides end-to-end deployment infrastructure with security and compliance built in. Connect your repositories and the platform handles builds, runtime, scaling, and observability automatically.",
9428
+ shortDescription: t("LOGIN_CONSTANT.RELEASE_SHORT"),
9429
+ description: t("LOGIN_CONSTANT.RELEASE_DESCRIPTION"),
9299
9430
  featureChips: [
9300
- "Git-based deployment",
9301
- "Branch-environment mapping",
9302
- "SCA, SAST & DAST",
9303
- "CI/CD pipelines",
9304
- "ISO compliance"
9431
+ t("LOGIN_CONSTANT.RELEASE_CHIP_1"),
9432
+ t("LOGIN_CONSTANT.RELEASE_CHIP_2"),
9433
+ t("LOGIN_CONSTANT.RELEASE_CHIP_3"),
9434
+ t("LOGIN_CONSTANT.RELEASE_CHIP_4"),
9435
+ t("LOGIN_CONSTANT.RELEASE_CHIP_5")
9305
9436
  ],
9306
9437
  url: "",
9307
- cta: "Visit blocks Release"
9438
+ cta: t(VISIT_KEY, { name: "blocks Release" })
9308
9439
  },
9309
9440
  {
9310
9441
  name: "blocks-monitor",
9311
9442
  appName: "blocks Monitor",
9312
- badge: "Uptime",
9313
- tagline: "Full visibility from day one.",
9314
- descriptionTitle: "Observability with zero integration time",
9443
+ badge: t("LOGIN_CONSTANT.MONITOR_BADGE"),
9444
+ tagline: t("LOGIN_CONSTANT.MONITOR_TAGLINE"),
9445
+ descriptionTitle: t("LOGIN_CONSTANT.MONITOR_TITLE"),
9446
+ // Not shown in the UI.
9315
9447
  keywords: ["observable", "traceable", "real-time", "intelligent"],
9316
- shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
9317
- description: "Blocks Monitor delivers built-in observability without requiring external tooling or complex setup. Access real-time logs, distributed tracing, uptime monitoring, health checks, usage metrics, and AI-assisted diagnostics.",
9448
+ shortDescription: t("LOGIN_CONSTANT.MONITOR_SHORT"),
9449
+ description: t("LOGIN_CONSTANT.MONITOR_DESCRIPTION"),
9318
9450
  featureChips: [
9319
- "Real-time logs with AI",
9320
- "Distributed tracing",
9321
- "Usage metrics",
9322
- "Health monitoring",
9323
- "Zero external tooling"
9451
+ t("LOGIN_CONSTANT.MONITOR_CHIP_1"),
9452
+ t("LOGIN_CONSTANT.MONITOR_CHIP_2"),
9453
+ t("LOGIN_CONSTANT.MONITOR_CHIP_3"),
9454
+ t("LOGIN_CONSTANT.MONITOR_CHIP_4"),
9455
+ t("LOGIN_CONSTANT.MONITOR_CHIP_5")
9324
9456
  ],
9325
9457
  url: "",
9326
- cta: "Visit blocks Monitor"
9458
+ cta: t(VISIT_KEY, { name: "blocks Monitor" })
9327
9459
  },
9328
9460
  {
9329
9461
  name: "blocks-utilities",
9330
9462
  appName: "blocks Utilities",
9331
- badge: "Toolkit",
9332
- tagline: "Communication services for modern applications.",
9333
- descriptionTitle: "Communication services, ready to use",
9463
+ badge: t("LOGIN_CONSTANT.UTILITIES_BADGE"),
9464
+ tagline: t("LOGIN_CONSTANT.UTILITIES_TAGLINE"),
9465
+ descriptionTitle: t("LOGIN_CONSTANT.UTILITIES_TITLE"),
9466
+ // Not shown in the UI.
9334
9467
  keywords: ["reliable", "real-time", "automated", "scalable"],
9335
- shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
9336
- description: "Blocks Utilities provides powerful communication services for your applications. Send branded emails, deliver real-time in-app notifications via SignalR, and create secure time-limited magic links\u2014both redirect and action-based\u2014to power automated workflows.",
9468
+ shortDescription: t("LOGIN_CONSTANT.UTILITIES_SHORT"),
9469
+ description: t("LOGIN_CONSTANT.UTILITIES_DESCRIPTION"),
9337
9470
  featureChips: [
9338
- "Branded email",
9339
- "Real-time notifications",
9340
- "Redirect magic links",
9341
- "Action magic links",
9342
- "Workflow automation"
9471
+ t("LOGIN_CONSTANT.UTILITIES_CHIP_1"),
9472
+ t("LOGIN_CONSTANT.UTILITIES_CHIP_2"),
9473
+ t("LOGIN_CONSTANT.UTILITIES_CHIP_3"),
9474
+ t("LOGIN_CONSTANT.UTILITIES_CHIP_4"),
9475
+ t("LOGIN_CONSTANT.UTILITIES_CHIP_5")
9343
9476
  ],
9344
9477
  url: "",
9345
- cta: "Visit blocks Utilities"
9478
+ cta: t(VISIT_KEY, { name: "blocks Utilities" })
9346
9479
  }
9347
9480
  ];
9348
- var DEFAULT_BLOCKS_PRODUCTS = [
9481
+ var getDefaultBlocksProducts = (t) => [
9349
9482
  {
9350
9483
  name: "blocks-os",
9351
9484
  appName: "blocks OS Platform",
9352
- badge: "Platform Core",
9353
- tagline: "Enterprise platform for secure, scalable applications",
9354
- descriptionTitle: "Backends that are",
9485
+ badge: t("LOGIN_CONSTANT.DEFAULT_OS_BADGE"),
9486
+ tagline: t("LOGIN_CONSTANT.DEFAULT_OS_TAGLINE"),
9487
+ descriptionTitle: t("LOGIN_CONSTANT.DEFAULT_OS_TITLE"),
9488
+ // Not shown in the UI.
9355
9489
  keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
9356
- shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
9357
- description: "Blocks OS is a modern platform for building and deploying secure, scalable applications with built-in observability, AI capabilities, and comprehensive identity management. Focus on your application logic while Blocks OS handles infrastructure, auth, and ops.",
9490
+ shortDescription: t("LOGIN_CONSTANT.DEFAULT_OS_SHORT"),
9491
+ description: t("LOGIN_CONSTANT.DEFAULT_OS_DESCRIPTION"),
9358
9492
  featureChips: [
9359
- "Authentication",
9360
- "Secrets Management",
9361
- "Configuration",
9362
- "API Console",
9363
- "Usage",
9364
- "Logs & Tracing"
9493
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_1"),
9494
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_2"),
9495
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_3"),
9496
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_4"),
9497
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_5"),
9498
+ t("LOGIN_CONSTANT.DEFAULT_OS_CHIP_6")
9365
9499
  ],
9366
9500
  url: "",
9367
- cta: "Visit blocks OS"
9501
+ cta: t(VISIT_KEY, { name: "blocks OS" })
9368
9502
  }
9369
9503
  ];
9370
9504
 
@@ -9381,13 +9515,15 @@ function useLoginCarousel({
9381
9515
  name,
9382
9516
  carouselItems
9383
9517
  }) {
9518
+ const { t } = useT("genesis.login");
9519
+ const defaultProducts = useMemo(() => getDefaultBlocksProducts(t), [t]);
9384
9520
  const active = useMemo(() => {
9385
- const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
9521
+ const products = carouselItems?.filter(isBlocksProduct) ?? defaultProducts;
9386
9522
  return products.find((p) => p.name === name) ?? products[0];
9387
- }, [name, carouselItems]);
9523
+ }, [name, carouselItems, defaultProducts]);
9388
9524
  const otherProducts = useMemo(
9389
- () => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
9390
- [active?.name]
9525
+ () => defaultProducts.filter((p) => p.name !== active?.name),
9526
+ [defaultProducts, active?.name]
9391
9527
  );
9392
9528
  const carouselSource = carouselItems ?? otherProducts;
9393
9529
  const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
@@ -9412,15 +9548,20 @@ var BlocksLoginPage = ({
9412
9548
  name,
9413
9549
  onLogin,
9414
9550
  isLoading = false,
9415
- eyebrow = "Blocks \xB7 Core Services",
9416
- loginLabel = "Log in to your account",
9551
+ eyebrow,
9552
+ loginLabel,
9417
9553
  docsUrl = "https://docs.seliseblocks.com/",
9418
- footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
9554
+ footerLink,
9419
9555
  showSignUp = false,
9420
9556
  onSignUp,
9421
9557
  isSignUpLoading = false,
9422
9558
  carouselItems
9423
9559
  }) => {
9560
+ const { t } = useT("genesis.login");
9561
+ const footer = footerLink ?? {
9562
+ label: t("BLOCKS_LOGIN_PAGE.FOOTER_LINK"),
9563
+ url: "https://seliseblocks.com"
9564
+ };
9424
9565
  const canvasRef = useRef(null);
9425
9566
  useAtmosphericCanvas(canvasRef);
9426
9567
  const {
@@ -9542,7 +9683,7 @@ var BlocksLoginPage = ({
9542
9683
  /* @__PURE__ */ jsx(LoginHeader, {}),
9543
9684
  /* @__PURE__ */ jsxs("main", { className: "main", children: [
9544
9685
  /* @__PURE__ */ jsxs("div", { className: "col-left", children: [
9545
- /* @__PURE__ */ jsx("p", { className: "eyebrow", children: eyebrow }),
9686
+ /* @__PURE__ */ jsx("p", { className: "eyebrow", children: eyebrow ?? t("BLOCKS_LOGIN_PAGE.EYEBROW") }),
9546
9687
  /* @__PURE__ */ jsxs("h1", { className: "title-main", children: [
9547
9688
  titleHead,
9548
9689
  titleTail && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -9563,7 +9704,7 @@ var BlocksLoginPage = ({
9563
9704
  className: "launch-btn blocks-gradient",
9564
9705
  disabled: isLoading,
9565
9706
  onClick: onLogin,
9566
- children: isLoading ? "Redirecting\u2026" : loginLabel
9707
+ children: isLoading ? t("BLOCKS_LOGIN_PAGE.REDIRECTING") : loginLabel ?? t("BLOCKS_LOGIN_PAGE.LOGIN_LABEL")
9567
9708
  }
9568
9709
  )
9569
9710
  ] }),
@@ -9575,7 +9716,7 @@ var BlocksLoginPage = ({
9575
9716
  rel: "noreferrer",
9576
9717
  className: "cta-docs",
9577
9718
  children: [
9578
- "View documentation",
9719
+ t("BLOCKS_LOGIN_PAGE.VIEW_DOCUMENTATION"),
9579
9720
  /* @__PURE__ */ jsx(
9580
9721
  "svg",
9581
9722
  {
@@ -9593,7 +9734,7 @@ var BlocksLoginPage = ({
9593
9734
  )
9594
9735
  ] }),
9595
9736
  showSignUp && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
9596
- "Not a member?",
9737
+ t("BLOCKS_LOGIN_PAGE.NOT_A_MEMBER"),
9597
9738
  " ",
9598
9739
  /* @__PURE__ */ jsxs(
9599
9740
  "button",
@@ -9603,7 +9744,7 @@ var BlocksLoginPage = ({
9603
9744
  disabled: isSignUpLoading,
9604
9745
  className: "cta-signup-link",
9605
9746
  children: [
9606
- isSignUpLoading ? "Redirecting\u2026" : "Sign up",
9747
+ isSignUpLoading ? t("BLOCKS_LOGIN_PAGE.REDIRECTING") : t("BLOCKS_LOGIN_PAGE.SIGN_UP"),
9607
9748
  /* @__PURE__ */ jsx(
9608
9749
  "svg",
9609
9750
  {
@@ -9623,11 +9764,10 @@ var BlocksLoginPage = ({
9623
9764
  ] }),
9624
9765
  /* @__PURE__ */ jsxs("div", { className: "col-right", children: [
9625
9766
  /* @__PURE__ */ jsxs("div", { className: "sdk-header-row", children: [
9626
- /* @__PURE__ */ jsx("p", { className: "sdk-header-label", children: "Core Services \u2014 Blocks Platform" }),
9627
- /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "sdk-count-badge", children: [
9628
- carouselSource.length,
9629
- " services"
9630
- ] })
9767
+ /* @__PURE__ */ jsx("p", { className: "sdk-header-label", children: t("BLOCKS_LOGIN_PAGE.SERVICES_HEADER") }),
9768
+ /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "sdk-count-badge", children: t("BLOCKS_LOGIN_PAGE.SERVICES_COUNT", {
9769
+ count: carouselSource.length
9770
+ }) })
9631
9771
  ] }),
9632
9772
  /* @__PURE__ */ jsx("div", { className: "carousel-track", children: /* @__PURE__ */ jsx("div", { className: "carousel-inner", children: carouselCards.map((item, i) => {
9633
9773
  const isBlocksProductItem = isBlocksProduct(item);
@@ -9707,12 +9847,12 @@ var BlocksLoginPage = ({
9707
9847
  /* @__PURE__ */ jsxs(
9708
9848
  "a",
9709
9849
  {
9710
- href: footerLink.url,
9850
+ href: footer.url,
9711
9851
  target: "_blank",
9712
9852
  rel: "noreferrer",
9713
9853
  className: "visit-construct",
9714
9854
  children: [
9715
- footerLink.label,
9855
+ footer.label,
9716
9856
  /* @__PURE__ */ jsx(
9717
9857
  "svg",
9718
9858
  {
@@ -9728,13 +9868,15 @@ var BlocksLoginPage = ({
9728
9868
  ]
9729
9869
  }
9730
9870
  ),
9731
- /* @__PURE__ */ jsx("span", { className: "sdk-open-source", children: "Open source" })
9871
+ /* @__PURE__ */ jsx("span", { className: "sdk-open-source", children: t("BLOCKS_LOGIN_PAGE.OPEN_SOURCE") })
9732
9872
  ] })
9733
9873
  ] })
9734
9874
  ] })
9735
9875
  ] });
9736
9876
  };
9737
9877
  var LoginPage = () => {
9878
+ const { t } = useT("genesis.login");
9879
+ const products = useMemo(() => getBlocksProducts(t), [t]);
9738
9880
  const config = useBlocksAppConfigStore((state) => state.getConfig());
9739
9881
  const { start, isLoading } = useLogin();
9740
9882
  const { canSignUp } = useSignUpAffordance();
@@ -9748,7 +9890,7 @@ var LoginPage = () => {
9748
9890
  showSignUp: canSignUp,
9749
9891
  onSignUp: startSignUp,
9750
9892
  isSignUpLoading,
9751
- carouselItems: BLOCKS_PRODUCTS
9893
+ carouselItems: products
9752
9894
  }
9753
9895
  );
9754
9896
  };
@@ -9761,33 +9903,33 @@ var resource_cli_default = 'data:image/svg+xml,<svg width="160" height="120" vie
9761
9903
 
9762
9904
  // src/assets/images/console/resource-skills.svg
9763
9905
  var resource_skills_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="skills-top" x1="48" y1="30" x2="113" y2="68" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 75%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 58%)"/>%0A </linearGradient>%0A <linearGradient id="skills-left" x1="43" y1="49" x2="80" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="skills-right" x1="80" y1="62" x2="119" y2="97" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <filter id="skills-shadow" x="28" y="17" width="111" height="99" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="101" rx="43" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23skills-shadow)">%0A <path d="M42 52L80 31L118 52L80 74L42 52Z" fill="url(%23skills-top)"/>%0A <path d="M42 52L80 74V100L42 78V52Z" fill="url(%23skills-left)"/>%0A <path d="M80 74L118 52V78L80 100V74Z" fill="url(%23skills-right)"/>%0A <path d="M61 41.5L99 63.5L110 57L72 35L61 41.5Z" fill="hsl(218 78% 90%)" fill-opacity="0.7"/>%0A <path d="M99 63.5V76.5L110 70V57L99 63.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M61 41.5V54.5L99 76.5V63.5L61 41.5Z" fill="hsl(218 78% 58%)"/>%0A <path d="M52 65L69 74.8M52 72L65 79.5" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M90 85L107 75" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A </g>%0A <g transform="rotate(-12 111 34)">%0A <rect x="108" y="30" width="7" height="43" rx="3.5" fill="hsl(218 78% 44%)"/>%0A <rect x="108" y="30" width="7" height="13" rx="3.5" fill="hsl(218 78% 75%)"/>%0A </g>%0A <path d="M111 28C110 20.9 107.1 18 100 17C107.1 16 110 13.1 111 6C112 13.1 114.9 16 122 17C114.9 18 112 20.9 111 28Z" fill="hsl(218 78% 58%)"/>%0A <path d="M133 44C132.4 39.7 130.3 37.6 126 37C130.3 36.4 132.4 34.3 133 30C133.6 34.3 135.7 36.4 140 37C135.7 37.6 133.6 39.7 133 44Z" fill="hsl(218 78% 75%)"/>%0A <circle cx="128" cy="57" r="3" fill="hsl(218 78% 90%)"/>%0A</svg>%0A';
9764
- var resources = [
9906
+ var getResources = (t) => [
9765
9907
  {
9766
- eyebrow: "Learn",
9767
- label: "Read Docs",
9768
- description: "Established standards and guides that help teams minimize project risk and ship consistently. Learn the possibilities that you can unlock with Selise Blocks.",
9908
+ eyebrow: t("DEFAULT_DOC.LEARN_EYEBROW"),
9909
+ label: t("DEFAULT_DOC.LEARN_LABEL"),
9910
+ description: t("DEFAULT_DOC.LEARN_DESCRIPTION"),
9769
9911
  image: resource_docs_default,
9770
9912
  url: "https://docs.seliseblocks.com",
9771
9913
  icon: BookOpenText,
9772
- actionLabel: "Start Reading"
9914
+ actionLabel: t("DEFAULT_DOC.LEARN_ACTION")
9773
9915
  },
9774
9916
  {
9775
- eyebrow: "Build",
9776
- label: "Install CLI",
9777
- description: "Public npm packages for building with Blocks: a CLI for project setup plus a framework-neutral frontend SDK. Blocks CLI tool unlocks all the configurations of Blocks project without having to leave your IDE.",
9917
+ eyebrow: t("DEFAULT_DOC.BUILD_EYEBROW"),
9918
+ label: t("DEFAULT_DOC.BUILD_LABEL"),
9919
+ description: t("DEFAULT_DOC.BUILD_DESCRIPTION"),
9778
9920
  image: resource_cli_default,
9779
9921
  url: "https://github.com/SELISEdigitalplatforms/blocks-cli",
9780
9922
  icon: SquareTerminal,
9781
- actionLabel: "See Installation Steps"
9923
+ actionLabel: t("DEFAULT_DOC.BUILD_ACTION")
9782
9924
  },
9783
9925
  {
9784
- eyebrow: "Automate",
9785
- label: "Bootstrap",
9786
- description: "Describe what you want in plain language and an agent maps it to a focused, ready-to-run Blocks workflow. Quick start for your coding agent to initialize your blocks project, install the cli and the necessary skills.",
9926
+ eyebrow: t("DEFAULT_DOC.AUTOMATE_EYEBROW"),
9927
+ label: t("DEFAULT_DOC.AUTOMATE_LABEL"),
9928
+ description: t("DEFAULT_DOC.AUTOMATE_DESCRIPTION"),
9787
9929
  image: resource_skills_default,
9788
9930
  url: "https://github.com/SELISEdigitalplatforms/blocks-skills",
9789
9931
  icon: Sparkles,
9790
- actionLabel: "Set Up Your Agent"
9932
+ actionLabel: t("DEFAULT_DOC.AUTOMATE_ACTION")
9791
9933
  }
9792
9934
  ];
9793
9935
  var BentoGrid = ({
@@ -9851,7 +9993,10 @@ var BentoCard = ({
9851
9993
  ]
9852
9994
  }
9853
9995
  );
9854
- var DefaultDoc = () => /* @__PURE__ */ jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsx(BentoCard, { ...resource }, resource.url)) });
9996
+ var DefaultDoc = () => {
9997
+ const { t } = useT("genesis.console");
9998
+ return /* @__PURE__ */ jsx(BentoGrid, { children: getResources(t).map((resource) => /* @__PURE__ */ jsx(BentoCard, { ...resource }, resource.url)) });
9999
+ };
9855
10000
  function useCreateProjectRedirect() {
9856
10001
  const { name } = useBlocksAppConfigStore((state) => state.config);
9857
10002
  const navigate = useNavigate();
@@ -9877,6 +10022,7 @@ function useCreateProjectRedirect() {
9877
10022
  };
9878
10023
  }
9879
10024
  var AddProjectCard = () => {
10025
+ const { t } = useT("genesis.console");
9880
10026
  const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
9881
10027
  if (isFetching) {
9882
10028
  return /* @__PURE__ */ jsx(ProjectCardLoadingSkeleton, {});
@@ -9892,12 +10038,13 @@ var AddProjectCard = () => {
9892
10038
  style: { pointerEvents: isDisabled ? "none" : "auto" },
9893
10039
  children: /* @__PURE__ */ jsxs(CardContent, { className: "p-0 text-center", children: [
9894
10040
  /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(Plus, { className: "text-primary", strokeWidth: 2, size: 50 }) }),
9895
- /* @__PURE__ */ jsx("p", { className: "text-primary mt-2 font-bold", children: "Add Project" })
10041
+ /* @__PURE__ */ jsx("p", { className: "text-primary mt-2 font-bold", children: t("ADD_PROJECT_CARD.ADD_PROJECT") })
9896
10042
  ] })
9897
10043
  }
9898
10044
  );
9899
10045
  };
9900
10046
  function ConsoleCreateProject() {
10047
+ const { t } = useT("genesis.console");
9901
10048
  const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
9902
10049
  return /* @__PURE__ */ jsxs(
9903
10050
  motion.div,
@@ -9912,10 +10059,10 @@ function ConsoleCreateProject() {
9912
10059
  /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute -left-10 bottom-0 h-32 w-32 rounded-full bg-white/[0.03]" }),
9913
10060
  /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 bg-[radial-gradient(hsl(210_100%_100%/0.07)_1px,transparent_1px)] [background-size:22px_22px]" }),
9914
10061
  /* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center gap-5 px-8 py-14 text-center sm:px-12 sm:py-20", children: [
9915
- /* @__PURE__ */ jsx("p", { className: "text-[10px] font-semibold uppercase tracking-[0.15em] text-primary-foreground/60", children: "Blocks OS Platform" }),
10062
+ /* @__PURE__ */ jsx("p", { className: "text-[10px] font-semibold uppercase tracking-[0.15em] text-primary-foreground/60", children: t("CONSOLE_CREATE.EYEBROW") }),
9916
10063
  /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-xl border border-white/15 bg-white/10", children: /* @__PURE__ */ jsx(Layers, { className: "h-6 w-6 text-primary-foreground" }) }),
9917
- /* @__PURE__ */ jsx("h3", { className: "text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl", children: "Welcome to SELISE Blocks" }),
9918
- /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm leading-relaxed text-primary-foreground/70", children: "Explore and manage all your projects in one place. With SELISE Blocks, building and scaling applications has never been easier. Start by creating a project." }),
10064
+ /* @__PURE__ */ jsx("h3", { className: "text-3xl font-bold tracking-tight text-primary-foreground sm:text-4xl", children: t("CONSOLE_CREATE.TITLE") }),
10065
+ /* @__PURE__ */ jsx("p", { className: "max-w-md text-sm leading-relaxed text-primary-foreground/70", children: t("CONSOLE_CREATE.DESCRIPTION") }),
9919
10066
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap justify-center gap-3 pt-1", children: [
9920
10067
  /* @__PURE__ */ jsx(
9921
10068
  Button,
@@ -9923,7 +10070,7 @@ function ConsoleCreateProject() {
9923
10070
  onClick: handleClick,
9924
10071
  disabled: isDisabled,
9925
10072
  className: "inline-flex items-center rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-primary shadow-sm transition-colors hover:bg-white/90",
9926
- children: isFetching ? "Redirecting..." : "Create a project"
10073
+ children: isFetching ? t("CONSOLE_CREATE.REDIRECTING") : t("CONSOLE_CREATE.CREATE_PROJECT")
9927
10074
  }
9928
10075
  ),
9929
10076
  /* @__PURE__ */ jsxs(
@@ -9934,7 +10081,7 @@ function ConsoleCreateProject() {
9934
10081
  className: "inline-flex items-center gap-2 rounded-lg bg-white/15 px-4 py-2.5 text-sm font-semibold text-white backdrop-blur-sm transition-colors hover:bg-white/25",
9935
10082
  children: [
9936
10083
  /* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4" }),
9937
- "View documentation"
10084
+ t("CONSOLE_CREATE.VIEW_DOCUMENTATION")
9938
10085
  ]
9939
10086
  }
9940
10087
  )
@@ -9971,16 +10118,19 @@ function useProjectOverviewRedirect({
9971
10118
  isFetching
9972
10119
  };
9973
10120
  }
9974
- var getActionLabels = (canOpen, isShared) => {
10121
+ var getActionLabels = (t, canOpen, isShared) => {
9975
10122
  if (canOpen) {
9976
- return isShared ? { accessibleLabel: "Open shared project", tooltipLabel: "Open Project" } : {
9977
- accessibleLabel: "Configure project",
9978
- tooltipLabel: "Configure Project"
10123
+ return isShared ? {
10124
+ accessibleLabel: t("PROJECT_ACTION_BUTTON.OPEN_SHARED_ARIA"),
10125
+ tooltipLabel: t("PROJECT_ACTION_BUTTON.OPEN_SHARED_TOOLTIP")
10126
+ } : {
10127
+ accessibleLabel: t("PROJECT_ACTION_BUTTON.CONFIGURE_ARIA"),
10128
+ tooltipLabel: t("PROJECT_ACTION_BUTTON.CONFIGURE_TOOLTIP")
9979
10129
  };
9980
10130
  }
9981
10131
  return {
9982
- accessibleLabel: "Project access unavailable",
9983
- tooltipLabel: "Project access unavailable"
10132
+ accessibleLabel: t("PROJECT_ACTION_BUTTON.ACCESS_UNAVAILABLE"),
10133
+ tooltipLabel: t("PROJECT_ACTION_BUTTON.ACCESS_UNAVAILABLE")
9984
10134
  };
9985
10135
  };
9986
10136
  var ProjectActionButton = ({
@@ -9988,12 +10138,17 @@ var ProjectActionButton = ({
9988
10138
  isShared,
9989
10139
  canOpen = true
9990
10140
  }) => {
10141
+ const { t } = useT("genesis.console");
9991
10142
  const { setTenantGroup } = useProjectStore();
9992
10143
  const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
9993
10144
  tenantGroupId: project.tenantGroupId
9994
10145
  });
9995
10146
  const isActionDisabled = !canOpen || isDisabled || isFetching;
9996
- const { accessibleLabel, tooltipLabel } = getActionLabels(canOpen, isShared);
10147
+ const { accessibleLabel, tooltipLabel } = getActionLabels(
10148
+ t,
10149
+ canOpen,
10150
+ isShared
10151
+ );
9997
10152
  const onClick = () => {
9998
10153
  setTenantGroup(project.tenantGroupId);
9999
10154
  handleClick();
@@ -10028,6 +10183,7 @@ var getLatestProjectUpdate = (group) => group.projects.reduce((latest, project)
10028
10183
  var getEnvironmentLabel = (environment) => environmentOptions.find((option) => option.value === environment)?.label ?? environment;
10029
10184
  var INLINE_LIMIT = 3;
10030
10185
  var ProjectEnvironments = ({ projects }) => {
10186
+ const { t } = useT("genesis.console");
10031
10187
  const navigate = useNavigate();
10032
10188
  const { setTenantGroup, setSelectedProject } = useProjectStore();
10033
10189
  const onEnvironmentClick = async (event, project) => {
@@ -10054,7 +10210,7 @@ var ProjectEnvironments = ({ projects }) => {
10054
10210
  project.environment
10055
10211
  );
10056
10212
  if (projects.length === 0) {
10057
- return /* @__PURE__ */ jsx("span", { className: "border-border/60 bg-muted/40 text-muted-foreground inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs", children: "No environments" });
10213
+ return /* @__PURE__ */ jsx("span", { className: "border-border/60 bg-muted/40 text-muted-foreground inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs", children: t("PROJECT_ENVIRONMENTS.NO_ENVIRONMENTS") });
10058
10214
  }
10059
10215
  const hasOverflow = projects.length > INLINE_LIMIT;
10060
10216
  const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
@@ -10062,17 +10218,13 @@ var ProjectEnvironments = ({ projects }) => {
10062
10218
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
10063
10219
  visibleProjects.map(renderEnvironmentChip),
10064
10220
  hasOverflow && /* @__PURE__ */ jsxs(Popover, { children: [
10065
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
10221
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
10066
10222
  "button",
10067
10223
  {
10068
10224
  type: "button",
10069
10225
  onClick: (event) => event.stopPropagation(),
10070
10226
  className: "border-border/60 bg-muted/40 text-muted-foreground hover:bg-muted hover:text-foreground inline-flex cursor-pointer items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors",
10071
- children: [
10072
- "+",
10073
- overflowCount,
10074
- " more"
10075
- ]
10227
+ children: t("PROJECT_ENVIRONMENTS.MORE", { count: overflowCount })
10076
10228
  }
10077
10229
  ) }),
10078
10230
  /* @__PURE__ */ jsxs(
@@ -10082,7 +10234,7 @@ var ProjectEnvironments = ({ projects }) => {
10082
10234
  align: "start",
10083
10235
  onClick: (event) => event.stopPropagation(),
10084
10236
  children: [
10085
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: "All environments" }),
10237
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-2 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wider", children: t("PROJECT_ENVIRONMENTS.ALL_ENVIRONMENTS") }),
10086
10238
  projects.map((project) => /* @__PURE__ */ jsxs(
10087
10239
  "button",
10088
10240
  {
@@ -10108,6 +10260,7 @@ var ProjectCard = ({
10108
10260
  isShared,
10109
10261
  canOpen = true
10110
10262
  }) => {
10263
+ const { t } = useT("genesis.console");
10111
10264
  return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card hover:border-primary/30 group flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm transition-all duration-200 hover:shadow-md", children: [
10112
10265
  /* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
10113
10266
  /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
@@ -10123,7 +10276,7 @@ var ProjectCard = ({
10123
10276
  className: "flex items-center gap-1 shrink-0",
10124
10277
  children: [
10125
10278
  /* @__PURE__ */ jsx(UsersRound, { size: 16 }),
10126
- "Shared"
10279
+ t("PROJECT_CARD.SHARED")
10127
10280
  ]
10128
10281
  }
10129
10282
  ),
@@ -10143,13 +10296,18 @@ var ProjectCard = ({
10143
10296
  /* @__PURE__ */ jsx("div", { className: "mt-auto", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects }) })
10144
10297
  ] });
10145
10298
  };
10146
- var getLastUpdatedLabel = (group) => {
10299
+ var MODULE3 = "genesis.console";
10300
+ var timeAgo = (timestamp, language) => formatDistanceToNow(timestamp, {
10301
+ addSuffix: true,
10302
+ locale: language === "de" ? de : void 0
10303
+ });
10304
+ var getLastUpdatedLabel = (group, t, language) => {
10147
10305
  const timestamp = getLatestProjectUpdate(group);
10148
- return timestamp === 0 ? "Unknown" : formatDistanceToNow(timestamp, { addSuffix: true });
10306
+ return timestamp === 0 ? t("PROJECT_LIST.UNKNOWN") : timeAgo(timestamp, language);
10149
10307
  };
10150
- var getLastUpdatedCellLabel = (group) => {
10308
+ var getLastUpdatedCellLabel = (group, t, language) => {
10151
10309
  const timestamp = getLatestProjectUpdate(group);
10152
- return timestamp === 0 ? "Not updated yet" : `Updated ${formatDistanceToNow(timestamp, { addSuffix: true })}`;
10310
+ return timestamp === 0 ? t("PROJECT_LIST.NOT_UPDATED_YET") : t("PROJECT_LIST.UPDATED", { time: timeAgo(timestamp, language) });
10153
10311
  };
10154
10312
  var CARD_RADIUS = "0.75rem";
10155
10313
  var ROW_SPACING = "0 0.5rem";
@@ -10163,11 +10321,15 @@ var cardCorners = {
10163
10321
  borderBottomRightRadius: CARD_RADIUS
10164
10322
  }
10165
10323
  };
10166
- var SharedStatus = ({ isShared }) => isShared ? /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "flex w-fit items-center gap-1", children: [
10167
- /* @__PURE__ */ jsx(UsersRound, { size: 16 }),
10168
- "Shared"
10169
- ] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" });
10324
+ var SharedStatus = ({ isShared }) => {
10325
+ const { t } = useT(MODULE3);
10326
+ return isShared ? /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "flex w-fit items-center gap-1", children: [
10327
+ /* @__PURE__ */ jsx(UsersRound, { size: 16 }),
10328
+ t("PROJECT_LIST.SHARED")
10329
+ ] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" });
10330
+ };
10170
10331
  var AddProjectListAction = ({ mobile = false }) => {
10332
+ const { t } = useT(MODULE3);
10171
10333
  const { handleClick, isDisabled, isFetching } = useCreateProjectRedirect();
10172
10334
  const action = /* @__PURE__ */ jsxs(
10173
10335
  Button,
@@ -10179,7 +10341,7 @@ var AddProjectListAction = ({ mobile = false }) => {
10179
10341
  onClick: handleClick,
10180
10342
  children: [
10181
10343
  /* @__PURE__ */ jsx(Plus, { className: "h-4 w-4" }),
10182
- "Add Project"
10344
+ t("PROJECT_LIST.ADD_PROJECT")
10183
10345
  ]
10184
10346
  }
10185
10347
  );
@@ -10206,46 +10368,49 @@ var AddProjectListAction = ({ mobile = false }) => {
10206
10368
  var ProjectMobileList = ({
10207
10369
  projectGroups,
10208
10370
  showAddProject
10209
- }) => /* @__PURE__ */ jsxs("div", { className: "grid gap-3", "data-testid": "project-list-mobile", children: [
10210
- showAddProject && /* @__PURE__ */ jsx(AddProjectListAction, { mobile: true }),
10211
- projectGroups.map((group) => {
10212
- const project = group.projects[0];
10213
- return /* @__PURE__ */ jsxs(
10214
- Card,
10215
- {
10216
- "data-testid": "project-list-row",
10217
- className: "border-border/60 space-y-3 rounded-xl border p-4 shadow-sm",
10218
- children: [
10219
- /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
10220
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-2", children: [
10221
- /* @__PURE__ */ jsx(CardTitle, { className: "break-all text-base", children: getProjectGroupName(group) || "Unnamed project" }),
10222
- /* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared })
10371
+ }) => {
10372
+ const { t, language } = useT(MODULE3);
10373
+ return /* @__PURE__ */ jsxs("div", { className: "grid gap-3", "data-testid": "project-list-mobile", children: [
10374
+ showAddProject && /* @__PURE__ */ jsx(AddProjectListAction, { mobile: true }),
10375
+ projectGroups.map((group) => {
10376
+ const project = group.projects[0];
10377
+ return /* @__PURE__ */ jsxs(
10378
+ Card,
10379
+ {
10380
+ "data-testid": "project-list-row",
10381
+ className: "border-border/60 space-y-3 rounded-xl border p-4 shadow-sm",
10382
+ children: [
10383
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
10384
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-2", children: [
10385
+ /* @__PURE__ */ jsx(CardTitle, { className: "break-all text-base", children: getProjectGroupName(group) || t("PROJECT_LIST.UNNAMED_PROJECT") }),
10386
+ /* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared })
10387
+ ] }),
10388
+ project && /* @__PURE__ */ jsx(
10389
+ ProjectActionButton,
10390
+ {
10391
+ project,
10392
+ isShared: group.isShared,
10393
+ canOpen: canOpenProject(group)
10394
+ }
10395
+ )
10223
10396
  ] }),
10224
- project && /* @__PURE__ */ jsx(
10225
- ProjectActionButton,
10226
- {
10227
- project,
10228
- isShared: group.isShared,
10229
- canOpen: canOpenProject(group)
10230
- }
10231
- )
10232
- ] }),
10233
- /* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }),
10234
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs", children: [
10235
- "Last updated ",
10236
- getLastUpdatedLabel(group)
10237
- ] })
10238
- ]
10239
- },
10240
- group.tenantGroupId
10241
- );
10242
- })
10243
- ] });
10397
+ /* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }),
10398
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: t("PROJECT_LIST.LAST_UPDATED", {
10399
+ time: getLastUpdatedLabel(group, t, language)
10400
+ }) })
10401
+ ]
10402
+ },
10403
+ group.tenantGroupId
10404
+ );
10405
+ })
10406
+ ] });
10407
+ };
10244
10408
  var ProjectList = ({
10245
10409
  projectGroups,
10246
10410
  showAddProject
10247
10411
  }) => {
10248
10412
  const isMobile = useIsMobile();
10413
+ const { t, language } = useT(MODULE3);
10249
10414
  if (isMobile) {
10250
10415
  return /* @__PURE__ */ jsx(
10251
10416
  ProjectMobileList,
@@ -10275,12 +10440,12 @@ var ProjectList = ({
10275
10440
  {
10276
10441
  className: "bg-card max-w-64 break-all py-2 font-medium",
10277
10442
  style: cardCorners.left,
10278
- children: getProjectGroupName(group) || "Unnamed project"
10443
+ children: getProjectGroupName(group) || t("PROJECT_LIST.UNNAMED_PROJECT")
10279
10444
  }
10280
10445
  ),
10281
10446
  /* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(ProjectEnvironments, { projects: group.projects }) }),
10282
10447
  /* @__PURE__ */ jsx(TableCell, { className: "bg-card py-2", children: /* @__PURE__ */ jsx(SharedStatus, { isShared: group.isShared }) }),
10283
- /* @__PURE__ */ jsx(TableCell, { className: "bg-card whitespace-nowrap py-2 text-muted-foreground", children: getLastUpdatedCellLabel(group) }),
10448
+ /* @__PURE__ */ jsx(TableCell, { className: "bg-card whitespace-nowrap py-2 text-muted-foreground", children: getLastUpdatedCellLabel(group, t, language) }),
10284
10449
  /* @__PURE__ */ jsx(
10285
10450
  TableCell,
10286
10451
  {
@@ -10311,6 +10476,7 @@ function MultiSelect2({
10311
10476
  onChange,
10312
10477
  value: selectedValues
10313
10478
  }) {
10479
+ const { t } = useT("genesis.shared");
10314
10480
  const [buttonRef, popoverWidth] = usePopoverWidth();
10315
10481
  const onSelectHandler = (value) => {
10316
10482
  const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
@@ -10342,15 +10508,14 @@ function MultiSelect2({
10342
10508
  className: "hidden h-4 sm:mx-2 sm:block"
10343
10509
  }
10344
10510
  ),
10345
- /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsxs(
10511
+ /* @__PURE__ */ jsx("div", { className: "flex space-x-1", children: selectedValues.length > 2 ? /* @__PURE__ */ jsx(
10346
10512
  Badge,
10347
10513
  {
10348
10514
  variant: "outline",
10349
10515
  className: "rounded-sm px-1 font-normal",
10350
- children: [
10351
- selectedValues.length,
10352
- " selected"
10353
- ]
10516
+ children: t("MULTI_SELECT.SELECTED_COUNT", {
10517
+ count: selectedValues.length
10518
+ })
10354
10519
  }
10355
10520
  ) : options.filter((option) => selectedValues.includes(option.value)).map((option) => /* @__PURE__ */ jsx(
10356
10521
  Badge,
@@ -10374,7 +10539,7 @@ function MultiSelect2({
10374
10539
  children: /* @__PURE__ */ jsxs(Command, { children: [
10375
10540
  /* @__PURE__ */ jsx(CommandInput, { placeholder: label }),
10376
10541
  /* @__PURE__ */ jsxs(CommandList, { children: [
10377
- /* @__PURE__ */ jsx(CommandEmpty, { children: "No results found." }),
10542
+ /* @__PURE__ */ jsx(CommandEmpty, { children: t("MULTI_SELECT.NO_RESULTS") }),
10378
10543
  /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => {
10379
10544
  const isSelected = selectedValues.includes(option.value);
10380
10545
  return /* @__PURE__ */ jsxs(
@@ -10405,7 +10570,7 @@ function MultiSelect2({
10405
10570
  {
10406
10571
  onSelect: () => onResetHandler(),
10407
10572
  className: "justify-center text-center",
10408
- children: "Clear"
10573
+ children: t("common:CLEAR")
10409
10574
  }
10410
10575
  ) })
10411
10576
  ] })
@@ -10416,6 +10581,7 @@ function MultiSelect2({
10416
10581
  ] });
10417
10582
  }
10418
10583
  var ResetButton = ({ onClick }) => {
10584
+ const { t } = useT("genesis.shared");
10419
10585
  return /* @__PURE__ */ jsxs(
10420
10586
  Button,
10421
10587
  {
@@ -10424,7 +10590,7 @@ var ResetButton = ({ onClick }) => {
10424
10590
  onClick,
10425
10591
  className: "h-8 rounded-md px-2 lg:px-3",
10426
10592
  children: [
10427
- "Reset",
10593
+ t("common:RESET"),
10428
10594
  /* @__PURE__ */ jsx(X, { className: "ml-2 h-4 w-4" })
10429
10595
  ]
10430
10596
  }
@@ -10432,10 +10598,11 @@ var ResetButton = ({ onClick }) => {
10432
10598
  };
10433
10599
  var SearchInput = ({
10434
10600
  onChange,
10435
- placeholder = "Search...",
10601
+ placeholder,
10436
10602
  value,
10437
10603
  className = ""
10438
10604
  }) => {
10605
+ const { t } = useT("genesis.shared");
10439
10606
  const [state, setState] = useState(value);
10440
10607
  const inputRef = useRef(null);
10441
10608
  useEffect(() => {
@@ -10467,7 +10634,7 @@ var SearchInput = ({
10467
10634
  Input,
10468
10635
  {
10469
10636
  ref: inputRef,
10470
- placeholder,
10637
+ placeholder: placeholder ?? t("SEARCH_INPUT.PLACEHOLDER"),
10471
10638
  value: state,
10472
10639
  onChange: handleChange,
10473
10640
  className: cn(
@@ -10501,12 +10668,13 @@ var ProjectToolbar = ({
10501
10668
  searchText,
10502
10669
  viewMode
10503
10670
  }) => {
10671
+ const { t } = useT("genesis.console");
10504
10672
  const hasActiveFilters = searchText.trim().length > 0 || environmentFilter.length > 0;
10505
10673
  return /* @__PURE__ */ jsxs(
10506
10674
  "div",
10507
10675
  {
10508
10676
  className: "flex flex-wrap items-center justify-between gap-3",
10509
- "aria-label": "Project filters and view",
10677
+ "aria-label": t("PROJECT_TOOLBAR.FILTERS_ARIA"),
10510
10678
  children: [
10511
10679
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
10512
10680
  /* @__PURE__ */ jsx(
@@ -10514,13 +10682,13 @@ var ProjectToolbar = ({
10514
10682
  {
10515
10683
  value: searchText,
10516
10684
  onChange: onSearchTextChange,
10517
- placeholder: "Search projects..."
10685
+ placeholder: t("PROJECT_TOOLBAR.SEARCH_PLACEHOLDER")
10518
10686
  }
10519
10687
  ),
10520
10688
  /* @__PURE__ */ jsx(
10521
10689
  MultiSelect2,
10522
10690
  {
10523
- label: "Environment",
10691
+ label: t("PROJECT_TOOLBAR.ENVIRONMENT"),
10524
10692
  options: availableEnvironmentOptions,
10525
10693
  value: environmentFilter,
10526
10694
  onChange: onEnvironmentFilterChange
@@ -10538,14 +10706,14 @@ var ProjectToolbar = ({
10538
10706
  onValueChange: (value) => {
10539
10707
  if (value === "grid" || value === "list") onViewModeChange(value);
10540
10708
  },
10541
- "aria-label": "Project view",
10709
+ "aria-label": t("PROJECT_TOOLBAR.VIEW_ARIA"),
10542
10710
  className: "h-8 rounded-md border bg-background p-0.5",
10543
10711
  children: [
10544
10712
  /* @__PURE__ */ jsx(
10545
10713
  ToggleGroupItem,
10546
10714
  {
10547
10715
  value: "grid",
10548
- "aria-label": "Grid view",
10716
+ "aria-label": t("PROJECT_TOOLBAR.GRID_VIEW"),
10549
10717
  className: "h-7 w-7 min-w-0 border-0 px-0",
10550
10718
  children: /* @__PURE__ */ jsx(LayoutGrid, { className: "h-4 w-4" })
10551
10719
  }
@@ -10554,7 +10722,7 @@ var ProjectToolbar = ({
10554
10722
  ToggleGroupItem,
10555
10723
  {
10556
10724
  value: "list",
10557
- "aria-label": "List view",
10725
+ "aria-label": t("PROJECT_TOOLBAR.LIST_VIEW"),
10558
10726
  className: "h-7 w-7 min-w-0 border-0 px-0",
10559
10727
  children: /* @__PURE__ */ jsx(List, { className: "h-4 w-4" })
10560
10728
  }
@@ -10662,6 +10830,7 @@ var SelfProjectLoading = ({ viewMode }) => {
10662
10830
  ) });
10663
10831
  };
10664
10832
  var SelfProject = ({ canCreateProject = false }) => {
10833
+ const { t } = useT("genesis.console");
10665
10834
  const { data, isLoading } = useGetProjects({ enabled: true });
10666
10835
  const isPending = isLoading;
10667
10836
  const projectGroups = data || [];
@@ -10728,10 +10897,10 @@ var SelfProject = ({ canCreateProject = false }) => {
10728
10897
  return /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", children: [
10729
10898
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-3", children: [
10730
10899
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-3", children: [
10731
- /* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: "Your Blocks Projects" }),
10900
+ /* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: t("SELF_PROJECT.YOUR_PROJECTS") }),
10732
10901
  isPending ? /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-8 rounded-full" }) : /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold", children: projectGroups.length })
10733
10902
  ] }),
10734
- !isPending && canCreateProject && hasReachedProjectLimit && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: "Please delete an existing project to create a new one." })
10903
+ !isPending && canCreateProject && hasReachedProjectLimit && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: t("SELF_PROJECT.DELETE_TO_CREATE") })
10735
10904
  ] }),
10736
10905
  (isPending || projectGroups.length > 0) && /* @__PURE__ */ jsx(
10737
10906
  ProjectToolbar,
@@ -10748,7 +10917,7 @@ var SelfProject = ({ canCreateProject = false }) => {
10748
10917
  ),
10749
10918
  projectsContent,
10750
10919
  hasNoMatches && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed px-6 py-10 text-center", children: [
10751
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: searchText.trim() ? "No projects match your search" : "No projects match the selected filters" }),
10920
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: searchText.trim() ? t("SELF_PROJECT.NO_SEARCH_MATCH") : t("SELF_PROJECT.NO_FILTER_MATCH") }),
10752
10921
  /* @__PURE__ */ jsx(
10753
10922
  Button,
10754
10923
  {
@@ -10759,13 +10928,14 @@ var SelfProject = ({ canCreateProject = false }) => {
10759
10928
  if (searchText.trim()) setSearchText("");
10760
10929
  else setEnvironmentFilter([]);
10761
10930
  },
10762
- children: searchText.trim() ? "Clear search" : "Clear filters"
10931
+ children: searchText.trim() ? t("SELF_PROJECT.CLEAR_SEARCH") : t("SELF_PROJECT.CLEAR_FILTERS")
10763
10932
  }
10764
10933
  )
10765
10934
  ] })
10766
10935
  ] });
10767
10936
  };
10768
10937
  var ConsolePage = ({ canCreateProject = false }) => {
10938
+ const { t } = useT("genesis.console");
10769
10939
  const { resetSelectedProject, resetTenantGroup } = useProjectStore();
10770
10940
  useEffect(() => {
10771
10941
  resetSelectedProject();
@@ -10777,7 +10947,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
10777
10947
  /* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
10778
10948
  /* @__PURE__ */ jsx(SelfProject, { canCreateProject }),
10779
10949
  /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-5", children: [
10780
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }) }),
10950
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: t("CONSOLE_PAGE.RESOURCES") }) }),
10781
10951
  /* @__PURE__ */ jsx(DefaultDoc, {})
10782
10952
  ] })
10783
10953
  ] })
@@ -10853,6 +11023,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
10853
11023
  return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx(Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
10854
11024
  };
10855
11025
  function ProfilePage() {
11026
+ const { t } = useT("genesis.profile");
10856
11027
  const { isLoading, error } = useInitiateRedirect({
10857
11028
  clientId: getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
10858
11029
  redirectUri: getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
@@ -10860,11 +11031,11 @@ function ProfilePage() {
10860
11031
  });
10861
11032
  if (error)
10862
11033
  return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
10863
- /* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-destructive", children: "Failed to redirect to profile page" }),
10864
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: "Please check your console for more details" })
11034
+ /* @__PURE__ */ jsx("p", { className: "text-lg font-medium text-destructive", children: t("PROFILE_PAGE.REDIRECT_FAILED") }),
11035
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: t("PROFILE_PAGE.CHECK_CONSOLE") })
10865
11036
  ] }) });
10866
11037
  if (isLoading)
10867
- return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Redirecting to profile page\u2026" }) });
11038
+ return /* @__PURE__ */ jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t("PROFILE_PAGE.REDIRECTING") }) });
10868
11039
  return null;
10869
11040
  }
10870
11041
 
@@ -10907,6 +11078,7 @@ var CoreApiEndpointRow = ({
10907
11078
  endpoint,
10908
11079
  xBlocksKey
10909
11080
  }) => {
11081
+ const { t } = useT("genesis.dashboard");
10910
11082
  const curlCommand = buildCurlCommand(endpoint, xBlocksKey);
10911
11083
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1 rounded-md border border-border-default px-3 py-2 sm:flex-row sm:items-center sm:gap-3", children: [
10912
11084
  endpoint.method && /* @__PURE__ */ jsx(
@@ -10925,7 +11097,7 @@ var CoreApiEndpointRow = ({
10925
11097
  ] }),
10926
11098
  /* @__PURE__ */ jsx(CopyToClipboardButton, { textToCopy: curlCommand, isHoverable: true, children: /* @__PURE__ */ jsxs("span", { className: "flex shrink-0 items-center gap-1 whitespace-nowrap text-xs text-muted-foreground", children: [
10927
11099
  /* @__PURE__ */ jsx(Terminal, { className: "h-3.5 w-3.5" }),
10928
- "Copy as cURL"
11100
+ t("CORE_API_ENDPOINT_ROW.COPY_CURL")
10929
11101
  ] }) })
10930
11102
  ] });
10931
11103
  };
@@ -10992,30 +11164,27 @@ var CoreApiLoadingSkeleton = () => /* @__PURE__ */ jsxs("div", { className: "rou
10992
11164
  /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5 border-t border-border px-2 py-2 sm:px-4 sm:py-3", children: ["sk-1", "sk-2", "sk-3", "sk-4"].map((itemKey) => /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }, itemKey)) })
10993
11165
  ] });
10994
11166
  var CoreApiCard = ({
10995
- title = "Core APIs",
10996
- description = "Available endpoints for this module",
11167
+ title,
11168
+ description,
10997
11169
  endpoints,
10998
11170
  xBlocksKey,
10999
11171
  isLoading,
11000
11172
  error
11001
11173
  }) => {
11174
+ const { t } = useT("genesis.dashboard");
11002
11175
  if (isLoading) return /* @__PURE__ */ jsx(CoreApiLoadingSkeleton, {});
11003
11176
  const groups = groupEndpointsByTag(endpoints);
11004
11177
  return /* @__PURE__ */ jsx(
11005
11178
  DashboardSectionCard,
11006
11179
  {
11007
- title,
11008
- description,
11180
+ title: title ?? t("CORE_API_CARD.TITLE"),
11181
+ description: description ?? t("CORE_API_CARD.DESCRIPTION"),
11009
11182
  contentClassName: "flex flex-col gap-2",
11010
11183
  headerRight: /* @__PURE__ */ jsxs(Fragment, { children: [
11011
- /* @__PURE__ */ jsxs(Badge, { className: "hidden rounded-full bg-primary/10 font-mono text-xs text-primary pointer-events-none sm:flex", children: [
11012
- endpoints.length,
11013
- " Endpoint",
11014
- endpoints.length !== 1 ? "s" : ""
11015
- ] }),
11184
+ /* @__PURE__ */ jsx(Badge, { className: "hidden rounded-full bg-primary/10 font-mono text-xs text-primary pointer-events-none sm:flex", children: t("CORE_API_CARD.ENDPOINTS", { count: endpoints.length }) }),
11016
11185
  /* @__PURE__ */ jsx("span", { className: "flex rounded-full bg-primary/10 px-1.5 py-0.5 text-[10px] font-mono font-medium text-primary pointer-events-none sm:hidden", children: endpoints.length })
11017
11186
  ] }),
11018
- children: groups.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-3 text-center text-sm text-muted-foreground", children: error ? "Couldn't load endpoints for this module." : "No endpoints available for this module." }) : groups.map((group) => /* @__PURE__ */ jsx(
11187
+ children: groups.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-1 py-3 text-center text-sm text-muted-foreground", children: error ? t("CORE_API_CARD.LOAD_ERROR") : t("CORE_API_CARD.EMPTY") }) : groups.map((group) => /* @__PURE__ */ jsx(
11019
11188
  CoreApiGroupSection,
11020
11189
  {
11021
11190
  tag: group.tag,
@@ -11112,24 +11281,27 @@ var ConfirmationModal = ({
11112
11281
  data,
11113
11282
  onConfirm,
11114
11283
  buttonState
11115
- }) => /* @__PURE__ */ jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
11116
- /* @__PURE__ */ jsxs(DialogHeader, { children: [
11117
- /* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
11118
- /* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
11119
- ] }),
11120
- /* @__PURE__ */ jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
11121
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || "Cancel" }) }),
11122
- /* @__PURE__ */ jsx(
11123
- Button,
11124
- {
11125
- size: "sm",
11126
- onClick: onConfirm,
11127
- disabled: buttonState?.confirm.disable,
11128
- children: data.confirmButton || "Yes"
11129
- }
11130
- )
11131
- ] })
11132
- ] });
11284
+ }) => {
11285
+ const { t } = useT("genesis.shared");
11286
+ return /* @__PURE__ */ jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
11287
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
11288
+ /* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
11289
+ /* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
11290
+ ] }),
11291
+ /* @__PURE__ */ jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
11292
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || t("common:CANCEL") }) }),
11293
+ /* @__PURE__ */ jsx(
11294
+ Button,
11295
+ {
11296
+ size: "sm",
11297
+ onClick: onConfirm,
11298
+ disabled: buttonState?.confirm.disable,
11299
+ children: data.confirmButton || t("common:YES")
11300
+ }
11301
+ )
11302
+ ] })
11303
+ ] });
11304
+ };
11133
11305
  var DashboardOverview = () => {
11134
11306
  const { name } = useBlocksAppConfigStore((state) => state.config);
11135
11307
  const { data, isFetching } = useGetProject();
@@ -11167,22 +11339,23 @@ var ProjectDetail = ({
11167
11339
  project,
11168
11340
  isLoading
11169
11341
  }) => {
11342
+ const { t } = useT("genesis.shared");
11170
11343
  if (isLoading) return /* @__PURE__ */ jsx(LoadingSkeleton, {});
11171
11344
  if (!project)
11172
11345
  return /* @__PURE__ */ jsx(
11173
11346
  ErrorDisplayWithCard,
11174
11347
  {
11175
- text: "Error loading project data",
11348
+ text: t("PROJECT_DETAIL.ERROR"),
11176
11349
  containerClassName: "min-h-[20dvh]"
11177
11350
  }
11178
11351
  );
11179
11352
  return /* @__PURE__ */ jsx(
11180
11353
  DashboardSectionCard,
11181
11354
  {
11182
- title: "Project Details",
11183
- description: "Core configuration and metadata for this project",
11355
+ title: t("PROJECT_DETAIL.TITLE"),
11356
+ description: t("PROJECT_DETAIL.DESCRIPTION"),
11184
11357
  children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6", children: [
11185
- /* @__PURE__ */ jsx(ProjectDetailItem, { label: "Name", children: project?.name }),
11358
+ /* @__PURE__ */ jsx(ProjectDetailItem, { label: t("common:NAME"), children: project?.name }),
11186
11359
  /* @__PURE__ */ jsx(ProjectDetailItem, { label: "X-Blocks-Key", children: /* @__PURE__ */ jsx("div", { className: "flex h-6 items-center gap-2", children: /* @__PURE__ */ jsx(
11187
11360
  CopyToClipboardButton,
11188
11361
  {
@@ -11199,7 +11372,7 @@ var ProjectDetail = ({
11199
11372
  )
11200
11373
  }
11201
11374
  ) }) }),
11202
- /* @__PURE__ */ jsx(ProjectDetailItem, { label: "Environment", children: project?.environment === "prod" ? /* @__PURE__ */ jsx(Button, { className: "h-6 rounded-xl", size: "sm", variant: "default", children: "Production" }) : /* @__PURE__ */ jsx(
11375
+ /* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.ENVIRONMENT"), children: project?.environment === "prod" ? /* @__PURE__ */ jsx(Button, { className: "h-6 rounded-xl", size: "sm", variant: "default", children: t("ENVIRONMENT_OPTIONS.PROD_LABEL") }) : /* @__PURE__ */ jsx(
11203
11376
  Button,
11204
11377
  {
11205
11378
  className: "h-6 rounded-xl bg-blocks-btn-secondary hover:bg-blocks-btn-secondary/80",
@@ -11210,8 +11383,8 @@ var ProjectDetail = ({
11210
11383
  )?.label
11211
11384
  }
11212
11385
  ) }),
11213
- /* @__PURE__ */ jsx(ProjectDetailItem, { label: "Last updated Date", children: project?.lastUpdatedDate && formatFullDate(new Date(project.lastUpdatedDate)) }),
11214
- /* @__PURE__ */ jsx(ProjectDetailItem, { label: "Created Date", children: project?.createdDate && formatFullDate(new Date(project.createdDate)) })
11386
+ /* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.LAST_UPDATED"), children: project?.lastUpdatedDate && formatFullDate(new Date(project.lastUpdatedDate)) }),
11387
+ /* @__PURE__ */ jsx(ProjectDetailItem, { label: t("PROJECT_DETAIL.CREATED"), children: project?.createdDate && formatFullDate(new Date(project.createdDate)) })
11215
11388
  ] })
11216
11389
  }
11217
11390
  );
@@ -11224,6 +11397,7 @@ function ProjectList2({
11224
11397
  redirectPaths,
11225
11398
  collapsed = false
11226
11399
  }) {
11400
+ const { t } = useT("genesis.shared");
11227
11401
  const navigate = useNavigate();
11228
11402
  const { pathname } = useLocation();
11229
11403
  const { data: projectGroups = [], isLoading } = useGetProjects({
@@ -11270,7 +11444,7 @@ function ProjectList2({
11270
11444
  className: "group relative flex h-10 w-full items-center justify-center rounded-lg",
11271
11445
  children: [
11272
11446
  /* @__PURE__ */ jsx(FolderOpen, { className: "h-5 w-5 text-muted-foreground" }),
11273
- /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-full top-0 z-20 ml-2 min-w-max whitespace-nowrap rounded bg-gray-300 px-2 py-1 text-xs text-primary opacity-0 transition-opacity group-hover:opacity-100", children: name || "Select a Project" })
11447
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-full top-0 z-20 ml-2 min-w-max whitespace-nowrap rounded bg-gray-300 px-2 py-1 text-xs text-primary opacity-0 transition-opacity group-hover:opacity-100", children: name || t("PROJECT_LIST.SELECT_PROJECT") })
11274
11448
  ]
11275
11449
  }
11276
11450
  ) : /* @__PURE__ */ jsx(
@@ -11281,8 +11455,8 @@ function ProjectList2({
11281
11455
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
11282
11456
  /* @__PURE__ */ jsx(FolderOpen, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
11283
11457
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
11284
- /* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: "Project" }),
11285
- /* @__PURE__ */ jsx("div", { className: "break-all text-sm font-medium leading-tight", children: name || "Select a Project" })
11458
+ /* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground", children: t("PROJECT_LIST.PROJECT") }),
11459
+ /* @__PURE__ */ jsx("div", { className: "break-all text-sm font-medium leading-tight", children: name || t("PROJECT_LIST.SELECT_PROJECT") })
11286
11460
  ] })
11287
11461
  ] })
11288
11462
  }
@@ -11295,7 +11469,7 @@ function ProjectList2({
11295
11469
  sideOffset: collapsed ? 8 : 4,
11296
11470
  className: collapsed ? "min-w-48" : "w-[--radix-dropdown-menu-trigger-width]",
11297
11471
  children: [
11298
- /* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Your Projects" }),
11472
+ /* @__PURE__ */ jsx(DropdownMenuLabel, { children: t("PROJECT_LIST.YOUR_PROJECTS") }),
11299
11473
  isLoading ? /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: /* @__PURE__ */ jsx("div", { className: "flex w-full items-center justify-center py-1", children: /* @__PURE__ */ jsx(Loader, { size: 16, className: "animate-spin text-gray-400" }) }) }) : projects?.filter((project) => project?.itemId !== selectedProject?.itemId).slice(0, 5).map((project) => /* @__PURE__ */ jsx(
11300
11474
  DropdownMenuItem,
11301
11475
  {
@@ -11305,14 +11479,16 @@ function ProjectList2({
11305
11479
  project?.itemId
11306
11480
  )),
11307
11481
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
11308
- /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: "Project overview is not part of this client" })
11482
+ /* @__PURE__ */ jsx(DropdownMenuItem, { disabled: true, children: t("PROJECT_LIST.OVERVIEW_UNAVAILABLE") })
11309
11483
  ]
11310
11484
  }
11311
11485
  )
11312
11486
  ] });
11313
11487
  }
11314
11488
  var formSchema = z.object({
11315
- domain: z.string().min(1, "Please select a domain")
11489
+ domain: z.string().min(1, {
11490
+ error: () => tStatic("genesis.shared", "SET_CUSTOM_DOMAIN_FORM.REQUIRED")
11491
+ })
11316
11492
  });
11317
11493
  var SetCustomDomainForm = ({
11318
11494
  defaultDomain,
@@ -11321,6 +11497,7 @@ var SetCustomDomainForm = ({
11321
11497
  onSubmit,
11322
11498
  onCancel
11323
11499
  }) => {
11500
+ const { t } = useT("genesis.shared");
11324
11501
  const form = useForm({
11325
11502
  resolver: zodResolver(formSchema),
11326
11503
  defaultValues: { domain: defaultDomain }
@@ -11345,7 +11522,7 @@ var SetCustomDomainForm = ({
11345
11522
  /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(SelectTrigger, { className: "[&>span]:truncate [&>span]:text-left", children: /* @__PURE__ */ jsx(
11346
11523
  SelectValue,
11347
11524
  {
11348
- placeholder: verifiedDomains.length === 0 ? "No verified domains available" : "Select a domain"
11525
+ placeholder: verifiedDomains.length === 0 ? t("SET_CUSTOM_DOMAIN_FORM.NO_VERIFIED") : t("SET_CUSTOM_DOMAIN_FORM.SELECT")
11349
11526
  }
11350
11527
  ) }) }),
11351
11528
  /* @__PURE__ */ jsx(SelectContent, { className: "max-w-[calc(100vw-2rem)]", children: verifiedDomains.map((domain) => /* @__PURE__ */ jsx(
@@ -11365,8 +11542,8 @@ var SetCustomDomainForm = ({
11365
11542
  }
11366
11543
  ),
11367
11544
  /* @__PURE__ */ jsxs("div", { className: "mt-4 flex justify-end gap-2", children: [
11368
- /* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, children: "Cancel" }),
11369
- /* @__PURE__ */ jsx(Button, { type: "submit", disabled: isPending, children: "Set" })
11545
+ /* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", onClick: onCancel, children: t("common:CANCEL") }),
11546
+ /* @__PURE__ */ jsx(Button, { type: "submit", disabled: isPending, children: t("SET_CUSTOM_DOMAIN_FORM.SET") })
11370
11547
  ] })
11371
11548
  ] }) });
11372
11549
  };
@@ -11379,6 +11556,7 @@ var SetCustomDomainDialog = ({
11379
11556
  projectKey,
11380
11557
  projectEnv
11381
11558
  }) => {
11559
+ const { t } = useT("genesis.shared");
11382
11560
  const { mutateAsync, isPending } = useUpdateRepositories();
11383
11561
  const verifiedDomains = useMemo(
11384
11562
  () => Array.from(
@@ -11406,7 +11584,9 @@ var SetCustomDomainDialog = ({
11406
11584
  ]
11407
11585
  });
11408
11586
  if (res.isSuccess) {
11409
- showSuccessToast({ description: "Custom domain updated successfully" });
11587
+ showSuccessToast({
11588
+ description: t("SET_CUSTOM_DOMAIN_DIALOG.UPDATED")
11589
+ });
11410
11590
  onOpenChange(false);
11411
11591
  } else {
11412
11592
  showErrorToast({ errors: res.errors });
@@ -11419,12 +11599,10 @@ var SetCustomDomainDialog = ({
11419
11599
  };
11420
11600
  return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
11421
11601
  /* @__PURE__ */ jsxs(DialogHeader, { children: [
11422
- /* @__PURE__ */ jsx(DialogTitle, { children: "Set custom domain" }),
11423
- /* @__PURE__ */ jsxs(DialogDescription, { children: [
11424
- "Choose a verified domain to assign to",
11425
- " ",
11426
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: repo?.repoName })
11427
- ] })
11602
+ /* @__PURE__ */ jsx(DialogTitle, { children: t("SET_CUSTOM_DOMAIN_DIALOG.TITLE") }),
11603
+ /* @__PURE__ */ jsx(DialogDescription, { children: t("SET_CUSTOM_DOMAIN_DIALOG.DESCRIPTION", {
11604
+ name: repo?.repoName ?? ""
11605
+ }) })
11428
11606
  ] }),
11429
11607
  /* @__PURE__ */ jsx(
11430
11608
  SetCustomDomainForm,
@@ -11440,34 +11618,34 @@ var SetCustomDomainDialog = ({
11440
11618
  ] }) });
11441
11619
  };
11442
11620
  var columnHelper = createColumnHelper();
11443
- var buildColumns = (onSet) => [
11621
+ var buildColumns = (t, onSet) => [
11444
11622
  columnHelper.accessor("repoName", {
11445
- header: "Name",
11623
+ header: t("common:NAME"),
11446
11624
  cell: (info) => /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-high-emphasis", children: info.getValue() })
11447
11625
  }),
11448
11626
  columnHelper.accessor("defaultDeploymentUrl", {
11449
- header: "Deployment Domain",
11627
+ header: t("PROJECT_REPO_TABLE.COLUMN_DEPLOYMENT_DOMAIN"),
11450
11628
  cell: (info) => /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: info.getValue() })
11451
11629
  }),
11452
11630
  columnHelper.accessor("customDeploymentUrl", {
11453
- header: "Custom Domain",
11631
+ header: t("PROJECT_REPO_TABLE.COLUMN_CUSTOM_DOMAIN"),
11454
11632
  cell: ({ row }) => {
11455
11633
  const repo = row.original;
11456
- return repo.customDeploymentUrl ? /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: repo.customDeploymentUrl }) : /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xxs", onClick: () => onSet(repo), children: /* @__PURE__ */ jsx("span", { className: "px-2", children: "Set" }) });
11634
+ return repo.customDeploymentUrl ? /* @__PURE__ */ jsx("span", { className: "text-sm text-medium-emphasis", children: repo.customDeploymentUrl }) : /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xxs", onClick: () => onSet(repo), children: /* @__PURE__ */ jsx("span", { className: "px-2", children: t("PROJECT_REPO_TABLE.SET") }) });
11457
11635
  }
11458
11636
  }),
11459
11637
  columnHelper.display({
11460
11638
  id: "lastDeploymentDate",
11461
- header: "Last Deployment Date",
11639
+ header: t("PROJECT_REPO_TABLE.COLUMN_LAST_DEPLOYMENT"),
11462
11640
  cell: ({ row }) => {
11463
11641
  const repo = row.original;
11464
11642
  const isDefaultDate = repo.lastDeploymentDate === "0001-01-01T00:00:00";
11465
- return /* @__PURE__ */ jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? "Not deployed" : formatFullDate(new Date(repo.lastDeploymentDate)) });
11643
+ return /* @__PURE__ */ jsx("div", { className: "text-sm text-medium-emphasis", children: !repo.lastDeploymentDate || isDefaultDate ? t("PROJECT_REPO_TABLE.NOT_DEPLOYED") : formatFullDate(new Date(repo.lastDeploymentDate)) });
11466
11644
  }
11467
11645
  }),
11468
11646
  columnHelper.display({
11469
11647
  id: "actions",
11470
- header: "Actions",
11648
+ header: t("common:ACTIONS"),
11471
11649
  cell: ({ row }) => {
11472
11650
  const repo = row.original;
11473
11651
  const hasCustomDomain = !!repo.customDeploymentUrl;
@@ -11476,7 +11654,7 @@ var buildColumns = (onSet) => [
11476
11654
  {
11477
11655
  variant: "ghost",
11478
11656
  size: "icon",
11479
- title: "Edit custom domain",
11657
+ title: t("PROJECT_REPO_TABLE.EDIT_CUSTOM_DOMAIN"),
11480
11658
  disabled: !hasCustomDomain,
11481
11659
  onClick: () => onSet(repo),
11482
11660
  children: /* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4 text-muted-foreground" })
@@ -11491,13 +11669,14 @@ var ProjectRepoTable = ({
11491
11669
  projectKey,
11492
11670
  projectEnv
11493
11671
  }) => {
11672
+ const { t } = useT("genesis.shared");
11494
11673
  const [setTarget, setSetTarget] = useState(null);
11495
11674
  const [setDialogOpen, setSetDialogOpen] = useState(false);
11496
11675
  const handleSet = (repo) => {
11497
11676
  setSetTarget(repo);
11498
11677
  setSetDialogOpen(true);
11499
11678
  };
11500
- const columns = buildColumns(handleSet);
11679
+ const columns = buildColumns(t, handleSet);
11501
11680
  const table = useReactTable({
11502
11681
  data,
11503
11682
  columns,
@@ -11538,7 +11717,7 @@ var ProjectRepoTable = ({
11538
11717
  {
11539
11718
  colSpan: columns.length,
11540
11719
  className: "py-10 text-center text-sm text-muted-foreground",
11541
- children: "No repositories found for this project."
11720
+ children: t("PROJECT_REPO_TABLE.EMPTY")
11542
11721
  }
11543
11722
  ) }) : table.getRowModel().rows.map((row) => /* @__PURE__ */ jsx(
11544
11723
  "tr",
@@ -11558,6 +11737,7 @@ var ProjectRepoList = ({
11558
11737
  project,
11559
11738
  isLoading
11560
11739
  }) => {
11740
+ const { t } = useT("genesis.shared");
11561
11741
  const { applications } = project;
11562
11742
  const {
11563
11743
  data: envRepositoriesResponse,
@@ -11573,8 +11753,8 @@ var ProjectRepoList = ({
11573
11753
  return /* @__PURE__ */ jsx(
11574
11754
  DashboardSectionCard,
11575
11755
  {
11576
- title: "Repositories",
11577
- description: "Repositories deployed for this project",
11756
+ title: t("PROJECT_REPO_LIST.TITLE"),
11757
+ description: t("PROJECT_REPO_LIST.DESCRIPTION"),
11578
11758
  contentClassName: "p-0",
11579
11759
  children: /* @__PURE__ */ jsx(
11580
11760
  ProjectRepoTable,
@@ -11652,7 +11832,9 @@ var ProjectOverviewSkeleton = () => {
11652
11832
  ] });
11653
11833
  };
11654
11834
  var editProjectFormSchema = z.object({
11655
- name: z.string().min(1, "Project name is required")
11835
+ name: z.string().min(1, {
11836
+ error: () => tStatic("genesis.shared", "EDIT_PROJECT_FORM_SCHEMA.NAME_REQUIRED")
11837
+ })
11656
11838
  });
11657
11839
  var editProjectFormDefaultValues = {
11658
11840
  name: ""
@@ -11662,6 +11844,7 @@ var EditProjectForm = ({
11662
11844
  currentName,
11663
11845
  onAfterSubmit
11664
11846
  }) => {
11847
+ const { t } = useT("genesis.shared");
11665
11848
  const queryClient = useQueryClient();
11666
11849
  const { mutateAsync, isPending } = useUpdateTenantGroup();
11667
11850
  const form = useForm({
@@ -11680,8 +11863,8 @@ var EditProjectForm = ({
11680
11863
  });
11681
11864
  if (res.isSuccess) {
11682
11865
  showSuccessToast({
11683
- title: "Project updated",
11684
- description: "Project name updated successfully"
11866
+ title: t("EDIT_PROJECT_FORM.TOAST_TITLE"),
11867
+ description: t("EDIT_PROJECT_FORM.TOAST_DESCRIPTION")
11685
11868
  });
11686
11869
  queryClient.invalidateQueries({ queryKey: ["identifier", "project"] });
11687
11870
  queryClient.invalidateQueries({ queryKey: ["identifier", "projects"] });
@@ -11708,14 +11891,20 @@ var EditProjectForm = ({
11708
11891
  control: form.control,
11709
11892
  name: "name",
11710
11893
  render: ({ field }) => /* @__PURE__ */ jsxs(FormItem, { className: "space-y-1.5", children: [
11711
- /* @__PURE__ */ jsx(FormLabel, { className: "text-sm font-medium text-medium-emphasis", children: "Project Name" }),
11712
- /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(Input, { ...field, placeholder: "Enter project name" }) }),
11894
+ /* @__PURE__ */ jsx(FormLabel, { className: "text-sm font-medium text-medium-emphasis", children: t("EDIT_PROJECT_FORM.NAME_LABEL") }),
11895
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
11896
+ Input,
11897
+ {
11898
+ ...field,
11899
+ placeholder: t("EDIT_PROJECT_FORM.NAME_PLACEHOLDER")
11900
+ }
11901
+ ) }),
11713
11902
  /* @__PURE__ */ jsx(FormMessage, {})
11714
11903
  ] })
11715
11904
  }
11716
11905
  ),
11717
11906
  /* @__PURE__ */ jsxs(DialogFooter, { className: "mt-2 flex flex-row justify-end gap-2", children: [
11718
- /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-20", children: "Cancel" }) }),
11907
+ /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", className: "w-20", children: t("common:CANCEL") }) }),
11719
11908
  /* @__PURE__ */ jsx(
11720
11909
  Button,
11721
11910
  {
@@ -11723,7 +11912,7 @@ var EditProjectForm = ({
11723
11912
  className: "w-20",
11724
11913
  type: "submit",
11725
11914
  disabled: !form.formState.isValid || isPending || !form.formState.isDirty,
11726
- children: "Save"
11915
+ children: t("common:SAVE")
11727
11916
  }
11728
11917
  )
11729
11918
  ] })
@@ -11737,10 +11926,11 @@ var EditProjectDialog = ({
11737
11926
  tenantGroupId,
11738
11927
  currentName
11739
11928
  }) => {
11929
+ const { t } = useT("genesis.shared");
11740
11930
  return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(DialogContent, { className: "max-w-md", children: [
11741
11931
  /* @__PURE__ */ jsxs(DialogHeader, { children: [
11742
- /* @__PURE__ */ jsx(DialogTitle, { children: "Edit Project" }),
11743
- /* @__PURE__ */ jsx(DialogDescription, { children: "Update the project name." })
11932
+ /* @__PURE__ */ jsx(DialogTitle, { children: t("EDIT_PROJECT_DIALOG.TITLE") }),
11933
+ /* @__PURE__ */ jsx(DialogDescription, { children: t("EDIT_PROJECT_DIALOG.DESCRIPTION") })
11744
11934
  ] }),
11745
11935
  /* @__PURE__ */ jsx(
11746
11936
  EditProjectForm,
@@ -11753,13 +11943,14 @@ var EditProjectDialog = ({
11753
11943
  ] }) });
11754
11944
  };
11755
11945
  function EditProject() {
11946
+ const { t } = useT("genesis.shared");
11756
11947
  const [openEditDialog, setOpenEditDialog] = useState(false);
11757
11948
  const { selectedProject } = useProjectStore();
11758
11949
  const { tenantGroupId, name } = selectedProject || {};
11759
11950
  return /* @__PURE__ */ jsxs(Dialog, { open: openEditDialog, onOpenChange: setOpenEditDialog, children: [
11760
11951
  /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center gap-2", children: [
11761
11952
  /* @__PURE__ */ jsx(Edit, { className: "h-4 w-4" }),
11762
- /* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: "Edit" })
11953
+ /* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: t("common:EDIT") })
11763
11954
  ] }) }),
11764
11955
  /* @__PURE__ */ jsx(
11765
11956
  EditProjectDialog,
@@ -11799,13 +11990,14 @@ function SidebarMobileView({
11799
11990
  redirectPaths,
11800
11991
  navigationMenus
11801
11992
  }) {
11993
+ const { t } = useT("genesis.shared");
11802
11994
  const [open, setOpen] = useState(false);
11803
11995
  const { appLightLogo, appDarkLogo } = useLogo();
11804
11996
  const allowedMenu = useFilteredMenus(navigationMenus);
11805
11997
  return /* @__PURE__ */ jsxs(Sheet, { open, onOpenChange: setOpen, children: [
11806
11998
  /* @__PURE__ */ jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
11807
11999
  /* @__PURE__ */ jsx(Menu, { className: "h-5 w-5" }),
11808
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle navigation menu" })
12000
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: t("SIDEBAR_MOBILE_VIEW.TOGGLE_MENU") })
11809
12001
  ] }) }),
11810
12002
  /* @__PURE__ */ jsxs(
11811
12003
  SheetContent,
@@ -11824,18 +12016,18 @@ function SidebarMobileView({
11824
12016
  className: "h-9 w-auto",
11825
12017
  lightSrc: appLightLogo,
11826
12018
  darkSrc: appDarkLogo,
11827
- alt: "Logo"
12019
+ alt: t("SIDEBAR.LOGO_ALT")
11828
12020
  }
11829
12021
  ) }),
11830
12022
  /* @__PURE__ */ jsx(SheetClose, { className: "mt-0!", children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }) })
11831
12023
  ] }) }),
11832
12024
  /* @__PURE__ */ jsx(Separator, {}),
11833
12025
  /* @__PURE__ */ jsxs("div", { className: "mt-3 flex w-full flex-col items-start px-6", children: [
11834
- /* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Project" }),
12026
+ /* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: t("SIDEBAR_MOBILE_VIEW.PROJECT") }),
11835
12027
  /* @__PURE__ */ jsx(ProjectList2, { redirectPaths })
11836
12028
  ] }),
11837
12029
  /* @__PURE__ */ jsxs("div", { className: "my-3 flex w-full flex-col items-start px-6", children: [
11838
- /* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: "Environment" }),
12030
+ /* @__PURE__ */ jsx("div", { className: "ml-1 text-sm text-low-emphasis", children: t("SIDEBAR_MOBILE_VIEW.ENVIRONMENT") }),
11839
12031
  /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths })
11840
12032
  ] }),
11841
12033
  /* @__PURE__ */ jsx(Separator, {}),
@@ -11849,6 +12041,7 @@ function SidebarMenuDesktop({
11849
12041
  redirectPaths,
11850
12042
  navigationMenus
11851
12043
  }) {
12044
+ const { t } = useT("genesis.shared");
11852
12045
  const { isSidebarOpen, toggleSidebar } = useContext(SidebarContext);
11853
12046
  const { appLightLogo, appDarkLogo } = useLogo();
11854
12047
  const icon = useIcon();
@@ -11877,7 +12070,7 @@ function SidebarMenuDesktop({
11877
12070
  {
11878
12071
  lightSrc: appLightLogo,
11879
12072
  darkSrc: appDarkLogo,
11880
- alt: "Logo",
12073
+ alt: t("SIDEBAR.LOGO_ALT"),
11881
12074
  className: "h-full w-full object-contain"
11882
12075
  }
11883
12076
  ),
@@ -11898,7 +12091,7 @@ function SidebarMenuDesktop({
11898
12091
  ) })
11899
12092
  ] }),
11900
12093
  isSidebarOpen ? /* @__PURE__ */ jsxs("div", { className: "border-b px-2 pb-2 pt-2", children: [
11901
- /* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: "Workspace" }),
12094
+ /* @__PURE__ */ jsx("p", { className: "mb-1 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: t("SIDEBAR_DESKTOP_VIEW.WORKSPACE") }),
11902
12095
  /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
11903
12096
  /* @__PURE__ */ jsx(ProjectList2, { redirectPaths }),
11904
12097
  /* @__PURE__ */ jsx(RenderConditionally, { condition: !isProjectOverviewRoute, children: /* @__PURE__ */ jsx(EnvironmentList, { redirectPaths }) })
@@ -11969,7 +12162,7 @@ var ErrorBoundary = class extends Component {
11969
12162
  ErrorDisplay,
11970
12163
  {
11971
12164
  icon: AlertCircle,
11972
- text: this.state.error?.message ?? "Something went wrong",
12165
+ text: this.state.error?.message ?? tStatic("genesis.shared", "ERROR_BOUNDARY.DEFAULT"),
11973
12166
  containerClassName: "h-full w-full min-h-100"
11974
12167
  }
11975
12168
  );
@@ -11978,6 +12171,7 @@ var ErrorBoundary = class extends Component {
11978
12171
  }
11979
12172
  };
11980
12173
  var ArchiveProject = () => {
12174
+ const { t } = useT("genesis.shared");
11981
12175
  const navigate = useNavigate();
11982
12176
  const projectKey = useProjectStore().selectedProject?.tenantId || "";
11983
12177
  const { mutateAsync, isPending } = useDisableProject({ projectKey });
@@ -11986,8 +12180,8 @@ var ArchiveProject = () => {
11986
12180
  const res = await mutateAsync();
11987
12181
  if (res.isSuccess) {
11988
12182
  showSuccessToast({
11989
- title: "Project delete",
11990
- description: "Successfully deleted"
12183
+ title: t("ARCHIVE_PROJECT.TOAST_TITLE"),
12184
+ description: t("ARCHIVE_PROJECT.TOAST_DESCRIPTION")
11991
12185
  });
11992
12186
  navigate("/app/console");
11993
12187
  } else {
@@ -12009,7 +12203,7 @@ var ArchiveProject = () => {
12009
12203
  className: "flex items-center gap-2",
12010
12204
  children: [
12011
12205
  /* @__PURE__ */ jsx(Archive, { className: "h-4 w-4" }),
12012
- /* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: "Delete" })
12206
+ /* @__PURE__ */ jsx("span", { className: "sr-only sm:not-sr-only", children: t("common:DELETE") })
12013
12207
  ]
12014
12208
  }
12015
12209
  ) }),
@@ -12019,12 +12213,12 @@ var ArchiveProject = () => {
12019
12213
  onCancel: () => setOpen(false),
12020
12214
  onConfirm: onClickHandler,
12021
12215
  data: {
12022
- dialogTitle: "Delete this environment?",
12216
+ dialogTitle: t("ARCHIVE_PROJECT.DIALOG_TITLE"),
12023
12217
  dialogSubtitle: /* @__PURE__ */ jsxs(Fragment, { children: [
12024
- /* @__PURE__ */ jsx("p", { children: "Are you sure you want to delete this environment?" }),
12025
- /* @__PURE__ */ jsx("p", { children: "This will permanently delete the environment and you'll need to contact support to recover it." })
12218
+ /* @__PURE__ */ jsx("p", { children: t("ARCHIVE_PROJECT.CONFIRM") }),
12219
+ /* @__PURE__ */ jsx("p", { children: t("ARCHIVE_PROJECT.WARNING") })
12026
12220
  ] }),
12027
- confirmButton: "Delete"
12221
+ confirmButton: t("common:DELETE")
12028
12222
  },
12029
12223
  buttonState: { confirm: { disable: isPending } }
12030
12224
  }
@@ -12711,6 +12905,7 @@ var CopyableSnippet = ({
12711
12905
  language = "bash",
12712
12906
  isCopyable = true
12713
12907
  }) => {
12908
+ const { t } = useT("genesis.shared");
12714
12909
  const [copied, setCopied] = useState(false);
12715
12910
  const handleCopy = async () => {
12716
12911
  try {
@@ -12740,7 +12935,7 @@ var CopyableSnippet = ({
12740
12935
  {
12741
12936
  onClick: handleCopy,
12742
12937
  className: "absolute -top-[28px] right-2 z-10 text-muted-foreground transition hover:text-foreground",
12743
- "aria-label": "Copy code",
12938
+ "aria-label": t("COPYABLE_SNIPPET.COPY_CODE"),
12744
12939
  children: copied ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-green-500" }) : /* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" })
12745
12940
  }
12746
12941
  ),
@@ -12778,6 +12973,7 @@ function InfoTooltip({ content, side = "top" }) {
12778
12973
  ] });
12779
12974
  }
12780
12975
  function DateRange({ label, value, onChange }) {
12976
+ const { t } = useT("genesis.shared");
12781
12977
  const isMobile = useIsMobile();
12782
12978
  const [open, setOpen] = useState(false);
12783
12979
  const [date, setDate] = useState(value);
@@ -12848,10 +13044,10 @@ function DateRange({ label, value, onChange }) {
12848
13044
  variant: "outline",
12849
13045
  className: "w-full",
12850
13046
  onClick: resetBtnHandler,
12851
- children: "Reset"
13047
+ children: t("common:RESET")
12852
13048
  }
12853
13049
  ),
12854
- /* @__PURE__ */ jsx(Button, { type: "button", className: "w-full", onClick: applyBtnHandler, children: "Apply" })
13050
+ /* @__PURE__ */ jsx(Button, { type: "button", className: "w-full", onClick: applyBtnHandler, children: t("common:APPLY") })
12855
13051
  ] })
12856
13052
  ] })
12857
13053
  ]
@@ -12860,11 +13056,12 @@ function DateRange({ label, value, onChange }) {
12860
13056
  }
12861
13057
  var DropdownSearchInput = ({
12862
13058
  onChange,
12863
- placeholder = "Search...",
13059
+ placeholder,
12864
13060
  value,
12865
13061
  className = {},
12866
13062
  options = []
12867
13063
  }) => {
13064
+ const { t } = useT("genesis.shared");
12868
13065
  const [state, setState] = useState(value);
12869
13066
  const inputRef = useRef(null);
12870
13067
  useEffect(() => {
@@ -12913,7 +13110,7 @@ var DropdownSearchInput = ({
12913
13110
  Input,
12914
13111
  {
12915
13112
  ref: inputRef,
12916
- placeholder,
13113
+ placeholder: placeholder ?? t("DROPDOWN_SEARCH_INPUT.PLACEHOLDER"),
12917
13114
  value: state.value,
12918
13115
  onChange: handleChange,
12919
13116
  className: cn(
@@ -12938,17 +13135,19 @@ var DropdownSearchInput = ({
12938
13135
  ] });
12939
13136
  };
12940
13137
  var ClearButton = ({ onClear }) => {
13138
+ const { t } = useT("genesis.shared");
12941
13139
  return /* @__PURE__ */ jsx("div", { className: "p-1", children: /* @__PURE__ */ jsx(
12942
13140
  Button,
12943
13141
  {
12944
13142
  variant: "ghost",
12945
13143
  className: "h-auto w-full rounded-sm px-2 py-1.5 font-medium text-accent-foreground hover:bg-accent",
12946
13144
  onClick: onClear,
12947
- children: "Clear"
13145
+ children: t("common:CLEAR")
12948
13146
  }
12949
13147
  ) });
12950
13148
  };
12951
13149
  function Radio({ label, options, onChange, value }) {
13150
+ const { t } = useT("genesis.shared");
12952
13151
  const [search, setSearch] = useState("");
12953
13152
  const [buttonRef, popoverWidth] = usePopoverWidth();
12954
13153
  const isMobile = useIsMobile();
@@ -13035,7 +13234,7 @@ function Radio({ label, options, onChange, value }) {
13035
13234
  option.value
13036
13235
  ))
13037
13236
  }
13038
- ) : /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm !text-popover-foreground", children: "No results found." }) }),
13237
+ ) : /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm !text-popover-foreground", children: t("RADIO.NO_RESULTS") }) }),
13039
13238
  value ? /* @__PURE__ */ jsxs(Fragment, { children: [
13040
13239
  /* @__PURE__ */ jsx(Separator, {}),
13041
13240
  /* @__PURE__ */ jsx(ClearButton, { onClear: () => onChange(null) })
@@ -13125,6 +13324,7 @@ var TablePagination = React8.forwardRef(
13125
13324
  className,
13126
13325
  ...props
13127
13326
  }, ref) => {
13327
+ const { t } = useT("genesis.shared");
13128
13328
  const canPrev = pageIndex > 0;
13129
13329
  const canNext = pageIndex < pageCount - 1;
13130
13330
  return /* @__PURE__ */ jsxs(
@@ -13140,7 +13340,7 @@ var TablePagination = React8.forwardRef(
13140
13340
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: summary }),
13141
13341
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
13142
13342
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
13143
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Rows per page" }),
13343
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("TABLE_PAGINATION.ROWS_PER_PAGE") }),
13144
13344
  /* @__PURE__ */ jsxs(
13145
13345
  Select,
13146
13346
  {
@@ -13153,12 +13353,10 @@ var TablePagination = React8.forwardRef(
13153
13353
  }
13154
13354
  )
13155
13355
  ] }),
13156
- /* @__PURE__ */ jsxs("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: [
13157
- "Page ",
13158
- pageIndex + 1,
13159
- " of ",
13160
- Math.max(pageCount, 1)
13161
- ] }),
13356
+ /* @__PURE__ */ jsx("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: t("TABLE_PAGINATION.PAGE_OF", {
13357
+ page: pageIndex + 1,
13358
+ total: Math.max(pageCount, 1)
13359
+ }) }),
13162
13360
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
13163
13361
  /* @__PURE__ */ jsx(
13164
13362
  Button,
@@ -13168,7 +13366,7 @@ var TablePagination = React8.forwardRef(
13168
13366
  className: "hidden size-8 lg:flex",
13169
13367
  onClick: () => onPageChange(0),
13170
13368
  disabled: !canPrev,
13171
- "aria-label": "Go to first page",
13369
+ "aria-label": t("TABLE_PAGINATION.FIRST_PAGE"),
13172
13370
  children: /* @__PURE__ */ jsx(ChevronsLeft, { className: "size-4" })
13173
13371
  }
13174
13372
  ),
@@ -13180,7 +13378,7 @@ var TablePagination = React8.forwardRef(
13180
13378
  className: "size-8",
13181
13379
  onClick: () => onPageChange(pageIndex - 1),
13182
13380
  disabled: !canPrev,
13183
- "aria-label": "Go to previous page",
13381
+ "aria-label": t("TABLE_PAGINATION.PREVIOUS_PAGE"),
13184
13382
  children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
13185
13383
  }
13186
13384
  ),
@@ -13192,7 +13390,7 @@ var TablePagination = React8.forwardRef(
13192
13390
  className: "size-8",
13193
13391
  onClick: () => onPageChange(pageIndex + 1),
13194
13392
  disabled: !canNext,
13195
- "aria-label": "Go to next page",
13393
+ "aria-label": t("TABLE_PAGINATION.NEXT_PAGE"),
13196
13394
  children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
13197
13395
  }
13198
13396
  ),
@@ -13204,7 +13402,7 @@ var TablePagination = React8.forwardRef(
13204
13402
  className: "hidden size-8 lg:flex",
13205
13403
  onClick: () => onPageChange(pageCount - 1),
13206
13404
  disabled: !canNext,
13207
- "aria-label": "Go to last page",
13405
+ "aria-label": t("TABLE_PAGINATION.LAST_PAGE"),
13208
13406
  children: /* @__PURE__ */ jsx(ChevronsRight, { className: "size-4" })
13209
13407
  }
13210
13408
  )
@@ -13282,6 +13480,7 @@ var FilterToolBarMobileView = ({
13282
13480
  showReset,
13283
13481
  onReset
13284
13482
  }) => {
13483
+ const { t } = useT("genesis.shared");
13285
13484
  return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 md:hidden", children: [
13286
13485
  /* @__PURE__ */ jsx("div", { className: "min-w-0 max-w-72 flex-1", children: Components[0] }),
13287
13486
  Components.length > 1 && /* @__PURE__ */ jsxs(Sheet, { children: [
@@ -13301,11 +13500,11 @@ var FilterToolBarMobileView = ({
13301
13500
  className: "w-full",
13302
13501
  "aria-describedby": "filter-description",
13303
13502
  children: [
13304
- /* @__PURE__ */ jsx(SheetTitle, { className: "mb-4", children: "Filter" }),
13503
+ /* @__PURE__ */ jsx(SheetTitle, { className: "mb-4", children: t("FILTER_TOOLBAR.TITLE") }),
13305
13504
  /* @__PURE__ */ jsx(SheetDescription, {}),
13306
13505
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-4", children: [
13307
13506
  Components.slice(1).map((item) => item),
13308
- /* @__PURE__ */ jsx(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { className: "mt-4", size: "sm", children: "Show Results" }) }),
13507
+ /* @__PURE__ */ jsx(SheetClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { className: "mt-4", size: "sm", children: t("FILTER_TOOLBAR.SHOW_RESULTS") }) }),
13309
13508
  showReset && /* @__PURE__ */ jsx(
13310
13509
  ResetButton,
13311
13510
  {
@@ -13413,6 +13612,7 @@ function DataTable(props) {
13413
13612
  tableOptions,
13414
13613
  renderHeaderCell
13415
13614
  } = props;
13615
+ const { t } = useT("genesis.shared");
13416
13616
  const sortNamespace = "sortNamespace" in props ? props.sortNamespace : void 0;
13417
13617
  const defaultSortValue = "defaultSortValue" in props ? props.defaultSortValue : void 0;
13418
13618
  const ns = sortNamespace ?? "dt";
@@ -13473,7 +13673,7 @@ function DataTable(props) {
13473
13673
  {
13474
13674
  colSpan: table.getAllColumns().length,
13475
13675
  className: "h-24 text-center text-muted-foreground",
13476
- children: renderEmptyState ?? "No results."
13676
+ children: renderEmptyState ?? t("DATA_TABLE.NO_RESULTS")
13477
13677
  }
13478
13678
  ) }) });
13479
13679
  const tableNode = /* @__PURE__ */ jsxs(Table, { className: "text-sm", children: [
@@ -13510,6 +13710,7 @@ var TablePagination2 = React8.forwardRef(
13510
13710
  className,
13511
13711
  ...props
13512
13712
  }, ref) => {
13713
+ const { t } = useT("genesis.shared");
13513
13714
  const canPrev = pageIndex > 0;
13514
13715
  const canNext = pageIndex < pageCount - 1;
13515
13716
  return /* @__PURE__ */ jsxs(
@@ -13525,7 +13726,7 @@ var TablePagination2 = React8.forwardRef(
13525
13726
  /* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: summary }),
13526
13727
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
13527
13728
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
13528
- /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: "Rows per page" }),
13729
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t("DATA_TABLE_PAGINATION.ROWS_PER_PAGE") }),
13529
13730
  /* @__PURE__ */ jsxs(
13530
13731
  Select,
13531
13732
  {
@@ -13538,12 +13739,10 @@ var TablePagination2 = React8.forwardRef(
13538
13739
  }
13539
13740
  )
13540
13741
  ] }),
13541
- /* @__PURE__ */ jsxs("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: [
13542
- "Page ",
13543
- pageIndex + 1,
13544
- " of ",
13545
- Math.max(pageCount, 1)
13546
- ] }),
13742
+ /* @__PURE__ */ jsx("div", { className: "flex w-[120px] items-center justify-center text-sm font-medium", children: t("DATA_TABLE_PAGINATION.PAGE_OF", {
13743
+ page: pageIndex + 1,
13744
+ total: Math.max(pageCount, 1)
13745
+ }) }),
13547
13746
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
13548
13747
  /* @__PURE__ */ jsx(
13549
13748
  Button,
@@ -13553,7 +13752,7 @@ var TablePagination2 = React8.forwardRef(
13553
13752
  className: "hidden size-8 lg:flex",
13554
13753
  onClick: () => onPageChange(0),
13555
13754
  disabled: !canPrev,
13556
- "aria-label": "Go to first page",
13755
+ "aria-label": t("DATA_TABLE_PAGINATION.FIRST_PAGE"),
13557
13756
  children: /* @__PURE__ */ jsx(ChevronsLeft, { className: "size-4" })
13558
13757
  }
13559
13758
  ),
@@ -13565,7 +13764,7 @@ var TablePagination2 = React8.forwardRef(
13565
13764
  className: "size-8",
13566
13765
  onClick: () => onPageChange(pageIndex - 1),
13567
13766
  disabled: !canPrev,
13568
- "aria-label": "Go to previous page",
13767
+ "aria-label": t("DATA_TABLE_PAGINATION.PREVIOUS_PAGE"),
13569
13768
  children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" })
13570
13769
  }
13571
13770
  ),
@@ -13577,7 +13776,7 @@ var TablePagination2 = React8.forwardRef(
13577
13776
  className: "size-8",
13578
13777
  onClick: () => onPageChange(pageIndex + 1),
13579
13778
  disabled: !canNext,
13580
- "aria-label": "Go to next page",
13779
+ "aria-label": t("DATA_TABLE_PAGINATION.NEXT_PAGE"),
13581
13780
  children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" })
13582
13781
  }
13583
13782
  ),
@@ -13589,7 +13788,7 @@ var TablePagination2 = React8.forwardRef(
13589
13788
  className: "hidden size-8 lg:flex",
13590
13789
  onClick: () => onPageChange(pageCount - 1),
13591
13790
  disabled: !canNext,
13592
- "aria-label": "Go to last page",
13791
+ "aria-label": t("DATA_TABLE_PAGINATION.LAST_PAGE"),
13593
13792
  children: /* @__PURE__ */ jsx(ChevronsRight, { className: "size-4" })
13594
13793
  }
13595
13794
  )
@@ -13603,5 +13802,5 @@ var TablePagination2 = React8.forwardRef(
13603
13802
  TablePagination2.displayName = "TablePagination";
13604
13803
 
13605
13804
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppLoadingSpinner, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, AuthResolver, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImpersonationChecker, ImpersonationSynchronizer, ImpersonationTerminator, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, ProtectedGuard, PublicGuard, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
13606
- //# sourceMappingURL=chunk-NPMO67H6.js.map
13607
- //# sourceMappingURL=chunk-NPMO67H6.js.map
13805
+ //# sourceMappingURL=chunk-KA2OOMCU.js.map
13806
+ //# sourceMappingURL=chunk-KA2OOMCU.js.map