Skip to main content
Glama
useContent.ts497 B
import type { StrictModeLocaleMap } from '@intlayer/types'; import { useLocaleBase } from './useLocaleBase'; import { useTranslation } from './useTraduction'; /** * On the client side, hook to get the translation content based on the locale */ export const useContent = <Content>( languageContent: StrictModeLocaleMap<Content> ) => { const { locale } = useLocaleBase(); const content = useTranslation(languageContent); return { locale, content, t: useTranslation, }; };

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