i18n
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { Outlet, redirect, createFileRoute } from "@tanstack/react-router";
|
||||
import { msg } from "@lingui/core/macro";
|
||||
import type { HeaderConfig } from "@/features/core/types/header-config";
|
||||
|
||||
export const Route = createFileRoute("/_authed/admin")({
|
||||
component: Outlet,
|
||||
@@ -7,12 +9,12 @@ export const Route = createFileRoute("/_authed/admin")({
|
||||
throw redirect({ to: "/" });
|
||||
}
|
||||
|
||||
return {
|
||||
header: {
|
||||
...context.header,
|
||||
title: "Admin",
|
||||
withBackButton: true,
|
||||
},
|
||||
const header: HeaderConfig = {
|
||||
...context.header,
|
||||
title: msg`Admin`,
|
||||
withBackButton: true,
|
||||
};
|
||||
|
||||
return { header };
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user