Skip to main content
Glama
useEditorLocale.tsx628 B
import { MessageKey } from '@intlayer/editor'; import type { Locale } from '@intlayer/types'; import { useCrossFrameState } from './useCrossFrameState'; export const useEditorLocale = () => { const [currentLocale] = useCrossFrameState<Locale>( MessageKey.INTLAYER_CURRENT_LOCALE, undefined, { receive: true, emit: false, } ); return currentLocale; }; export const useSetEditorLocale = () => { const setCurrentLocale = useCrossFrameState<Locale>( MessageKey.INTLAYER_CURRENT_LOCALE, undefined, { receive: true, emit: false, } ); return setCurrentLocale; };

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