Skip to main content
Glama
MarkdownMetadataRenderer.svelte601 B
<script lang="ts"> import { getContentNodeByKeyPath, getMarkdownMetadata } from '@intlayer/core'; import type { ContentNode, KeyPath, Locale } from '@intlayer/types'; import { useLocale } from '../client/useLocale'; export const locale: Locale | undefined = undefined; export let value: string; export let metadataKeyPath: KeyPath[]; const { locale: contextLocale } = useLocale(); $: metadata = getMarkdownMetadata(value); $: currentLocale = locale ?? $contextLocale; $: metadataEl = getContentNodeByKeyPath( metadata as ContentNode, metadataKeyPath, currentLocale ); </script> {metadataEl}

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