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

16 lines
438 B
TypeScript

import { lookup } from "bcp-47-match";
import { z } from "zod";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { i18n } = require("@calcom/config/next-i18next.config");
export const i18nInputSchema = z.object({
locale: z
.string()
.min(2)
.transform((locale) => lookup(i18n.locales, locale) || locale),
CalComVersion: z.string(),
});
export type I18nInputSchema = z.infer<typeof i18nInputSchema>;