Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
cal.com
/
calcom-docker
/
calcom
/
apps
/
web
/
components
/
Filename :
I18nLanguageHandler.tsx
back
Copy
import { CALCOM_VERSION } from "@calcom/lib/constants"; import { trpc } from "@calcom/trpc/react"; export function useViewerI18n(locale: string) { return trpc.viewer.i18n.get.useQuery( { locale, CalComVersion: CALCOM_VERSION }, { /** * i18n should never be clubbed with other queries, so that it's caching can be managed independently. **/ trpc: { context: { skipBatch: true }, }, } ); }