{"repo":"playcanvas/markdown-translator","free":true,"listed":false,"github":"https://github.com/playcanvas/markdown-translator","clone":"git clone https://github.com/playcanvas/markdown-translator.git","description":"Use Google Gemini to translate markdown files","language":"JavaScript","stars":19,"topics":["i18n","localization","markdown"],"license":"MIT","category":"cli-tools","readme_excerpt":"Markdown Translator A powerful command-line tool that uses Google Gemini AI to translate markdown and MDX files from English to any specified language while preserving formatting and structure. Features - 🌍 Multi-language support - Translate to 40+ languages - 📝 Markdown-aware - Preserves all markdown formatting (headers, links, code blocks, tables, etc.) - 🔄 Smart chunking - Handles large files by splitting content intelligently - 🎯 Selective translation - Only translates text content, keeps code and URLs intact - 📂 Batch processing - Translate multiple files using glob patterns (e.g., docs/ / .md ) - 🏗️ Structure preservation - Maintain directory structure or flatten output as needed - 📊 Progress tracking - Real-time progress indication with spinners for single files and batches - 🎨 Beautiful CLI - Colorful, user-friendly command-line interface - ⚡ Fast processing - Optimized for speed with high-performance Gemini model Installation Prerequisites - Node.js 16.0.0 or higher - Google Gemini API key (Get one here) Note : This tool uses ES modules (ESM) and requires Node.js 16+ for full compatibility. Install dependencies Make CLI globally available (optional) Or run directly with Node: Setup 1. Get Google Gemini API Key 1. Visit Google AI Studio 2. Create a new API key 3. Copy the generated key 2. Set API Key Option A: Environment Variable (Recommended) Option B: Command Line Argument Usage Basic Translation Batch Processing The tool supports batch processing of multip","default_branch":null,"files":null,"tree":[],"storefront":"/r/playcanvas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/playcanvas/markdown-translator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}