Skip to main content
Glama
getIntlayer.ts782 B
import { getIntlayer as getIntlayerCore, type Plugins } from '@intlayer/core'; import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues, } from '@intlayer/types'; import { type DeepTransformContent, intlayerNodePlugins, markdownPlugin, } from './plugins'; export const getIntlayer = < T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales, >( key: T, locale?: L, additionalPlugins?: Plugins[] ) => { const plugins: Plugins[] = [ intlayerNodePlugins, markdownPlugin, ...(additionalPlugins ?? []), ]; // @ts-ignore Type instantiation is excessively deep and possibly infinite return getIntlayerCore<T, L>(key, locale, plugins) as DeepTransformContent< DictionaryRegistryContent<T> >; };

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