Submit

MCP I18n Extractor

@martincik

a year ago
developer-tools
MCP server to help with i18n translations
Overview

what is MCP I18n Extractor?

MCP I18n Extractor is a tool designed to extract internationalization (i18n) strings from JavaScript/TypeScript code into JSON files, facilitating the translation process for applications.

how to use MCP I18n Extractor?

To use the MCP I18n Extractor, install it via npm and utilize the extract_i18n function to extract strings from your source code to a specified JSON file.

key features of MCP I18n Extractor?

  • Extracts i18n strings from direct object exports (export default { ... })
  • Preserves nested objects and arrays
  • Handles template strings with variable interpolation
  • Supports various data types (strings, numbers, booleans, null, undefined)
  • Merges with existing JSON files when present
  • Replaces source files with a migration message (configurable)

use cases of MCP I18n Extractor?

  1. Extracting translation strings for multilingual applications.
  2. Automating the process of updating JSON files with new translations.
  3. Simplifying the management of i18n strings in large codebases.

FAQ from MCP I18n Extractor?

  • Can MCP I18n Extractor handle all types of JavaScript/TypeScript files?

Yes! It is designed to work with various data types and structures in JavaScript/TypeScript.

  • Is there a way to prevent source file replacement?

Yes! You can set the DISABLE_SOURCE_REPLACEMENT environment variable to 'true'.

  • What license is MCP I18n Extractor under?

MCP I18n Extractor is licensed under the MIT license.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.