MCP server for managing i18n translation files. This server enables LLMs to intelligently manage translations, analyze code for hardcoded strings, and maintain consistency across multiple language files with real-time file watching and advanced search capabilities.
This MCP server manages i18n translation files, enabling LLMs to search, add, update, delete translations, analyze code for hardcoded strings, validat...
162async analyzeFile(
163 filePath: string,
164 options: CodeAnalysisOptions = {}
165 ): Promise<CodeAnalysisResult> {
166 const {
167 extractHardcoded = true,
168 findUsage = true,
169 translationIndex,
170 minStringLength = 3,
171 excludePatterns = []
172 } = options;
173
174 try {
175 const content = await fs.readFile(filePath, 'utf-8');// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/extract-to-translation.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:109 → src/tools/extract-to-translation.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/cleanup-unused-translations.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:110 → src/tools/cleanup-unused-translations.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/reorganize-translation-files.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:115 → src/tools/reorganize-translation-files.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/add-translations.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:102 → src/tools/add-translations.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/update-translation.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:104 → src/tools/update-translation.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/delete-translations.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:118 → src/tools/delete-translations.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/validate-structure.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:113 → src/tools/validate-structure.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/check-translation-integrity.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:114 → src/tools/check-translation-integrity.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/generate-types.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:119 → src/tools/generate-types.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/search-missing-translations.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:108 → src/tools/search-missing-translations.ts
// Local-only MCP, requires compromised LLM to exploit
// Source file not analyzed: src/tools/analyze-codebase.ts
// Finding inferred from import chain: src/server/mcp-tools.ts:107 → src/tools/analyze-codebase.ts
// Local-only MCP, requires compromised LLM to exploit