Cover image
Try Now
2025-04-10

MCP server to help with i18n translations

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP I18n Extractor

A Model Context Protocol (MCP) tool for extracting i18n strings from JavaScript/TypeScript code into JSON files.

Features

  • 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)

Installation

npm install @access-intelligence/mcp-i18n

Usage with MCP

When used via MCP, the tool offers a single operation:

  • extract_i18n: Extract i18n strings from source code to a JSON file

Example

extract_i18n(
  sourcePath: "/path/to/translations.js",
  targetPath: "/path/to/output.json"
)

Environment Variables

  • DISABLE_SOURCE_REPLACEMENT: Set to 'true' to prevent replacement of source files after extraction
  • WARNING_MESSAGE: Customize the warning message added to replaced source files

Testing

npm test

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • 田中 楓太
  • A virtual science instructor for engaging and informative lessons.

  • ariofarmani
  • Test repository for GitHub MCP server functionality

  • 1Panel-dev
  • 💬 MaxKB is an open-source AI assistant for enterprise. It seamlessly integrates RAG pipelines, supports robust workflows, and provides MCP tool-use capabilities.

  • Mintplex-Labs
  • The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

  • ShrimpingIt
  • Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx

  • GLips
  • MCP server to provide Figma layout information to AI coding agents like Cursor

    Reviews

    4 (1)
    Avatar
    user_ibgUYEWt
    2025-04-16

    I've been using mcp-i18n by martincik and it's a fantastic tool for internationalization. Its comprehensive documentation and seamless integration have significantly improved our project. Highly recommend checking it out at https://github.com/martincik/mcp-i18n if you're looking for a reliable i18n solution!