Skip to content

@tanzlate/root / vanilla/src / useCoreContext

Function: useCoreContext()

ts
function useCoreContext(params): Promise<CoreContext>;

Defined in: packages/vanilla/src/context/context.ts:45

Initializes i18next and returns a CoreContext. On SSR (ssr: true) or when no config is provided, returns the stub context.

Parameters

params

CoreContextParams

Returns

Promise<CoreContext>