Skip to main content
Glama
intlayerContext.ts536 B
import type { LocalesValues } from '@intlayer/types'; import { getContext, setContext } from 'svelte'; export interface IntlayerContextType { locale: LocalesValues; setLocale: (locale: LocalesValues) => void; isCookieEnabled?: boolean; } const INTLAYER_CONTEXT_KEY = Symbol('intlayer'); export const setIntlayerContext = (context: IntlayerContextType) => { setContext(INTLAYER_CONTEXT_KEY, context); }; export const getIntlayerContext = (): IntlayerContextType | undefined => { return getContext(INTLAYER_CONTEXT_KEY); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server