@@ -32,6 +32,7 @@ import {
32
32
import { cn } from "@/lib/utils" ;
33
33
import { appRouter } from "@/server/api/root" ;
34
34
import { api } from "@/utils/api" ;
35
+ import { getLocale , serverSideTranslations } from "@/utils/i18n" ;
35
36
import { validateRequest } from "@dokploy/server/lib/auth" ;
36
37
import { createServerSideHelpers } from "@trpc/react-query/server" ;
37
38
import { HelpCircle , ServerOff } from "lucide-react" ;
@@ -301,6 +302,7 @@ export async function getServerSideProps(
301
302
ctx : GetServerSidePropsContext < { mariadbId : string ; activeTab : TabState } > ,
302
303
) {
303
304
const { query, params, req, res } = ctx ;
305
+ const locale = getLocale ( req . cookies ) ;
304
306
const activeTab = query . tab ;
305
307
306
308
const { user, session } = await validateRequest ( req ) ;
@@ -336,6 +338,7 @@ export async function getServerSideProps(
336
338
trpcState : helpers . dehydrate ( ) ,
337
339
mariadbId : params ?. mariadbId ,
338
340
activeTab : ( activeTab || "general" ) as TabState ,
341
+ ...( await serverSideTranslations ( locale ) ) ,
339
342
} ,
340
343
} ;
341
344
} catch ( _error ) {
0 commit comments