We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/quartz-labs-dev/pabal-web-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { DEFAULT_LOCALE } from "../../../constants/unified-locales.js";
/**
* Convert single-language data to multilingual structure
*/
export function convertToMultilingual<
T extends { locale?: string; defaultLanguage?: string }
>(
data: T,
locale?: string
): { locales: { [key: string]: T }; defaultLocale: string } {
const detectedLocale =
locale || data.locale || data.defaultLanguage || DEFAULT_LOCALE;
return {
locales: {
[detectedLocale]: data,
},
defaultLocale: detectedLocale,
};
}