Logotipo de the-i18n-mcp

the-i18n-mcp

Comunidad
fabkho

Toolkit for managing i18n in any framework

Editorfabkho
Repositoriothe-i18n-kit
IdiomaTypeScript
Forks
1
Estrellas
11
Herramientas disponibles
15
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    the-i18n-mcp ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 15 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    11 estrellas y 1 fork en el repositorio enlazado.

the-i18n-kit

CI License Glama score

The i18n toolkit for AI agents and large monorepos. Find missing keys, remove dead ones, and rename across every locale and layer at once — from your agent, your terminal, or your pipeline.

📖 Documentation


Packages

PackageVersionWhat it is
@the-i18n-kit/clinpmThe CLI, and the library every other surface is built on
@the-i18n-kit/mcpnpmMCP server, for AI coding agents
@the-i18n-kit/nuxtnpmPublishes the layer graph Nuxt already resolved

A GitHub Action and a GitLab CI template ship from this repository too.

Quick Start

bash
npm install -g @the-i18n-kit/cli

the-i18n-cli init        # write a config from what it detects
the-i18n-cli status      # coverage per locale and per layer
the-i18n-cli missing     # what is not translated yet

For an AI agent, point your MCP host at the server:

json
{
  "mcpServers": {
    "the-i18n-mcp": {
      "command": "npx",
      "args": ["@the-i18n-kit/mcp@latest"]
    }
  }
}

→ Getting started · MCP setup · CLI reference

Documentation

Everything lives on the documentation site. The reference sections are generated from the source they describe, so they cannot drift from it.

Why this toolkitWho it is for, and who it is not
Monorepos and layersThe consumer graph, shared libraries, misplaced usages
FrameworksNuxt, Laravel, Vue, React/Next, generic
ConfigurationWhere it lives, precedence, every field
CI/CDThe Action and the GitLab template
CLI · MCP toolsGenerated reference

Development

bash
pnpm install
pnpm build
pnpm test
pnpm lint
pnpm typecheck

DEBUG=1 enables verbose logging to stderr. See CONTRIBUTING.md.

License

MIT

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "fabkho-the-i18n-kit": {
      "command": "npx",
      "args": [
        "-y",
        "the-i18n-kit"
      ]
    }
  }
}

Herramientas disponibles

  • detect_i18n_config

    Detect the Nuxt i18n configuration from the project. Returns locales, locale directories, default locale, and fallback chain. Call this first before using other tools.

  • list_locale_dirs

    List all i18n locale directories in the project, grouped by layer. Shows file count and top-level key namespaces per layer.

  • get_translations

    Get translation values for given key paths from a specific locale and layer. Use "*" as locale to read from all locales.

  • add_translations

    Add new translation keys to the specified layer. Provide translations per locale file name. Keys are inserted in alphabetical order. Fails if a key already exists (use update_translations instead).

  • update_translations

    Update existing translation keys in the specified layer. Provide new values per locale file name. Fails if a key does not exist (use add_translations instead).

  • get_missing_translations

    Find translation keys that exist in the reference locale but are missing in other locales. Scans a specific layer or all layers.

  • find_empty_translations

    Find translation keys that have empty string values ("") in locale files. Unlike get_missing_translations which compares against a reference locale, this tool checks each locale independently for empty values. Useful for finding untranslated keys in the reference locale itself.

  • search_translations

    Search translation files by key pattern (glob/regex) or value substring. Useful for finding existing translations before adding duplicates.

  • remove_translations

    Remove one or more translation keys from ALL locale files in the specified layer. Use dryRun to preview changes before applying them.

  • rename_translation_key

    Rename/move a translation key across ALL locale files in a layer. Preserves the value in every locale. Use dryRun to preview changes before applying them.

  • translate_missing

    Find keys missing in target locales and translate them. Uses the host LLM via MCP sampling if available, otherwise returns context for the agent to translate inline. Uses project config (glossary, translation prompt, locale notes, examples) if available. Each locale writes to its own file — parallel calls targeting different locales are safe.

  • find_orphan_keys

    Find translation keys that exist in locale JSON files but are not referenced in any Vue/TS source code. Scans a specific layer or all layers. Reports keys that can potentially be removed.

  • scan_code_usage

    Scan Vue/TS source files to find where translation keys are referenced. Shows file paths and line numbers for each key. Useful for understanding where a key is used before renaming or removing it.

  • cleanup_unused_translations

    Find translation keys not referenced in source code and remove them. Combines find_orphan_keys + remove_translations in one step. Always does a dry run first unless dryRun is explicitly set to false.

  • scaffold_locale

    Create empty locale files for new languages. Copies the key structure from the default locale with all values set to empty strings. Supports both JSON (Nuxt) and PHP (Laravel) formats. Does NOT modify framework config — the agent must add the locale to the framework config before calling this tool.

Usa el MCP de the-i18n-mcp con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado the-i18n-mcp, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade the-i18n-mcp como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de the-i18n-mcp.
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "fabkho-the-i18n-kit": {
      "command": "npx",
      "args": [
        "-y",
        "the-i18n-kit"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de the-i18n-mcp y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de the-i18n-mcp.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar the-i18n-mcp para ayudarme con esta tarea?
the-i18n-mcp
Claro. Lo he leído.
Esto es lo que he encontrado con the-i18n-mcp.

Preguntas frecuentes

¿Para qué sirve el servidor MCP the-i18n-mcp?

the-i18n-mcp es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP the-i18n-mcp con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar the-i18n-mcp con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP the-i18n-mcp con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con the-i18n-mcp conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP the-i18n-mcp a TypingMind?

the-i18n-mcp funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP the-i18n-mcp en TypingMind?

Número de herramientas MCP que ofrece the-i18n-mcp: 15. Puedes activar estas herramientas desde la página Plugins de TypingMind y usarlas en el chat o asignarlas a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP the-i18n-mcp?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si the-i18n-mcp requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

add-feature-translations

Guided workflow for adding i18n translations when building a new feature.

fix-missing-translations

Find and fix all missing translations across the project.

add-language

Add a new language to the project: update framework config, scaffold empty locale files, then translate all keys.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇