Skip to main content
Glama
getIntlayer.ts741 B
import { getIntlayer as getIntlayerCore, type Plugins } from '@intlayer/core'; import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryContent, LocalesValues, } from '@intlayer/types'; import { type DeepTransformContent, intlayerNodePlugins, markdownPlugin, reactNodePlugins, } from './plugins'; export const getIntlayer = < T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales, >( key: T, locale?: L, additionalPlugins?: Plugins[] ): DeepTransformContent<DictionaryRegistryContent<T>, L> => { const plugins: Plugins[] = [ intlayerNodePlugins, reactNodePlugins, markdownPlugin, ...(additionalPlugins ?? []), ]; return getIntlayerCore(key, locale, plugins) as any; };

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