Files
20d6eb5200 perf: Slim down loggedInViewer tRPC router (#20111)
* perf: Slim down loggedInViewer tRPC router

* Fixed trpc client calls for new routes

* Moved bookingUnconfirmedCount

* Moved getUserTopBanners to me router

* Moved shouldVerifyEmail to me router

* Moved i18n from public to its own router

* fix ssrInit

* fix ssrInit usage

* fix type check

* better naming

* fix

* fix

* Fix types

* Removed used of importHandler

---------

Co-authored-by: hbjORbj <[email protected]>
2025-03-16 18:22:48 -07:00

11 lines
364 B
TypeScript

import publicProcedure from "../../../procedures/publicProcedure";
import { router } from "../../../trpc";
import { i18nInputSchema } from "./i18n.schema";
export const i18nRouter = router({
get: publicProcedure.input(i18nInputSchema).query(async (opts) => {
const handler = (await import("./i18n.handler")).i18nHandler;
return handler(opts);
}),
});