UNPKG

i18next-mcp-server

Version:

A comprehensive Model Context Protocol (MCP) server for i18next translation management, health checking, and automated translation workflows

175 lines (174 loc) 6.28 kB
import { z } from 'zod'; export declare const getProjectInfoSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const healthCheckSchema: z.ZodObject<{ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; detailed: z.ZodDefault<z.ZodBoolean>; summary: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { detailed: boolean; summary: boolean; languages?: string[] | undefined; namespaces?: string[] | undefined; }, { languages?: string[] | undefined; namespaces?: string[] | undefined; detailed?: boolean | undefined; summary?: boolean | undefined; }>; export declare const validateFilesSchema: z.ZodObject<{ fix: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { fix: boolean; }, { fix?: boolean | undefined; }>; export declare const listFilesSchema: z.ZodObject<{ language: z.ZodOptional<z.ZodString>; namespace: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { language?: string | undefined; namespace?: string | undefined; }, { language?: string | undefined; namespace?: string | undefined; }>; export declare const coverageReportSchema: z.ZodObject<{ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { languages?: string[] | undefined; namespaces?: string[] | undefined; }, { languages?: string[] | undefined; namespaces?: string[] | undefined; }>; export declare const qualityAnalysisSchema: z.ZodObject<{ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { languages?: string[] | undefined; namespaces?: string[] | undefined; }, { languages?: string[] | undefined; namespaces?: string[] | undefined; }>; export declare const usageAnalysisSchema: z.ZodObject<{ sourceCodePaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { sourceCodePaths: string[]; }, { sourceCodePaths?: string[] | undefined; }>; export declare const exportDataSchema: z.ZodObject<{ format: z.ZodEnum<["json", "csv", "xlsx", "gettext"]>; languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { format: "json" | "csv" | "xlsx" | "gettext"; languages?: string[] | undefined; namespaces?: string[] | undefined; }, { format: "json" | "csv" | "xlsx" | "gettext"; languages?: string[] | undefined; namespaces?: string[] | undefined; }>; export declare const syncMissingKeysSchema: z.ZodObject<{ sourceLanguage: z.ZodDefault<z.ZodString>; targetLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; placeholder: z.ZodDefault<z.ZodString>; dryRun: z.ZodDefault<z.ZodBoolean>; createBackup: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { sourceLanguage: string; placeholder: string; dryRun: boolean; createBackup: boolean; namespaces?: string[] | undefined; targetLanguages?: string[] | undefined; }, { namespaces?: string[] | undefined; sourceLanguage?: string | undefined; targetLanguages?: string[] | undefined; placeholder?: string | undefined; dryRun?: boolean | undefined; createBackup?: boolean | undefined; }>; export declare const addTranslationKeySchema: z.ZodObject<{ key: z.ZodString; translations: z.ZodRecord<z.ZodString, z.ZodString>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; overwrite: z.ZodDefault<z.ZodBoolean>; createBackup: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { key: string; createBackup: boolean; translations: Record<string, string>; overwrite: boolean; namespaces?: string[] | undefined; }, { key: string; translations: Record<string, string>; namespaces?: string[] | undefined; createBackup?: boolean | undefined; overwrite?: boolean | undefined; }>; export declare const syncFromSourceSchema: z.ZodObject<{ keys: z.ZodArray<z.ZodString, "many">; sourceLanguage: z.ZodDefault<z.ZodString>; targetLanguages: z.ZodArray<z.ZodString, "many">; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; copyValues: z.ZodDefault<z.ZodBoolean>; createBackup: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { keys: string[]; sourceLanguage: string; targetLanguages: string[]; createBackup: boolean; copyValues: boolean; namespaces?: string[] | undefined; }, { keys: string[]; targetLanguages: string[]; namespaces?: string[] | undefined; sourceLanguage?: string | undefined; createBackup?: boolean | undefined; copyValues?: boolean | undefined; }>; export declare const syncAllMissingSchema: z.ZodObject<{ placeholder: z.ZodDefault<z.ZodString>; createBackup: z.ZodDefault<z.ZodBoolean>; dryRun: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { placeholder: string; dryRun: boolean; createBackup: boolean; }, { placeholder?: string | undefined; dryRun?: boolean | undefined; createBackup?: boolean | undefined; }>; export declare const getMissingKeysSchema: z.ZodObject<{ sourceLanguage: z.ZodDefault<z.ZodString>; targetLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; namespaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; format: z.ZodDefault<z.ZodEnum<["detailed", "summary", "flat"]>>; }, "strip", z.ZodTypeAny, { sourceLanguage: string; format: "flat" | "detailed" | "summary"; namespaces?: string[] | undefined; targetLanguages?: string[] | undefined; }, { namespaces?: string[] | undefined; sourceLanguage?: string | undefined; targetLanguages?: string[] | undefined; format?: "flat" | "detailed" | "summary" | undefined; }>; export declare const scanCodeForMissingKeysSchema: z.ZodObject<{ sourceCodePaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { sourceCodePaths: string[]; }, { sourceCodePaths?: string[] | undefined; }>;