Skip to main content
Glama
deleonio
by deleonio
i18n.ts563 B
import type { ComponentKeys, ResourcePrefix } from './core/i18n'; import { getI18nInstance, initializeI18n } from './core/i18n'; import { isTestMode } from './schema'; type Options = { count?: number; placeholders?: { [K: string]: string }; }; export type TranslationKey = `${Lowercase<ResourcePrefix>}-${Lowercase<ComponentKeys>}`; export let translate = (key: TranslationKey, options?: Options) => { const i18n = getI18nInstance() ?? initializeI18n('de'); return i18n.translate(key, options); }; if (isTestMode()) { translate = (key): string => 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/deleonio/public-ui-kolibri'

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