| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Translate GitHub repository documentation into 40+ languages using Lingo.dev. Fast batch translation CLI tool for README, CONTRIBUTING, and docs.
showcase-readmelingo.1.mp4npm install -g readmelingoo# Option 1: Environment variable (temporary)
export LINGODOTDEV_API_KEY=your_api_key_here
# Option 2: .env file (recommended)
echo "LINGODOTDEV_API_KEY=your_api_key_here" > .env
# Option 3: Persistent (add to ~/.zshrc or ~/.bashrc)
echo 'export LINGODOTDEV_API_KEY=your_api_key_here' >> ~/.zshrc
source ~/.zshrc# Interactive mode (recommended for first use)
readmelingoo
# Or with options
readmelingoo translate --repo owner/repo --languages es,fr,de# Interactive mode - prompts for all options
readmelingoo
# or
readmelingoo translate
# Command-line mode - specify all options as flags
readmelingoo translate --repo owner/repo --languages es,fr,de
# Include CONTRIBUTING.md and /docs folder
readmelingoo translate --repo owner/repo --languages es,fr,de --include-contributing --include-docs
# Custom output directory
readmelingoo translate --repo owner/repo --languages es,fr,de --output ./my-translations
# Private repository (use token flag or GITHUB_TOKEN env var)
readmelingoo translate --repo owner/repo --languages es,fr,de --token ghp_your_token| Option | Short | Description | Default |
|---|---|---|---|
| --repo <repo> | -r | GitHub repo URL or owner/repo format | Required* |
| --languages <langs> | -l | Comma-separated language codes (e.g., es,fr,de) | Prompts if not provided |
| --output <dir> | -o | Output directory for translated files | ./translations |
| --include-contributing | - | Include CONTRIBUTING.md file | false |
| --include-docs | - | Include all .md files from /docs folder (recursive) | false |
| --token <token> | -t | GitHub personal access token for private repos | Uses GITHUB_TOKEN env var if set |
* Not required in interactive mode - will prompt if missing
# Translate Next.js README to 4 languages
readmelingoo translate --repo vercel/next.js --languages es,fr,de,pt
# Translate all files to multiple languages
readmelingoo translate \
--repo owner/repo \
--include-contributing \
--include-docs \
--languages es,fr,de,ja,zh \
--output ./output
# Private repository
readmelingoo translate \
--repo private-org/private-repo \
--token ghp_your_token \
--languages es,frMost Popular: es (Spanish), fr (French), de (German), it (Italian), pt (Portuguese), ja (Japanese), ko (Korean), zh (Chinese), ru (Russian), ar (Arabic), hi (Hindi)
European: nl (Dutch), pl (Polish), tr (Turkish), sv (Swedish), no (Norwegian), da (Danish), fi (Finnish), el (Greek), cs (Czech), ro (Romanian), hu (Hungarian), uk (Ukrainian), ca (Catalan), bg (Bulgarian), hr (Croatian), sk (Slovak), sl (Slovenian), lt (Lithuanian), lv (Latvian), et (Estonian)
Other: vi (Vietnamese), th (Thai), id (Indonesian), he (Hebrew), ms (Malay), tl (Filipino)
Lingo.dev supports many more languages. Use any valid ISO 639-1 language code.
Translated files are saved with locale suffix:
translations/
├── README.es.md # Spanish
├── README.fr.md # French
├── README.de.md # German
├── CONTRIBUTING.es.md # If --include-contributing used
└── ...
Pattern: {filename}.{locale}.md
Error: LINGODOTDEV_API_KEY environment variable is required
Solution:
# Verify API key format: api_... or lingo_... (minimum 20 characters)
export LINGODOTDEV_API_KEY=your_key_here
# Or create .env file in your project root:
echo "LINGODOTDEV_API_KEY=your_key_here" > .env
# Get your API key from: https://lingo.dev/auth → Projects > Your Project > API KeyError: Invalid repository URL or Invalid repository format
Solution:
Error: Lingo.dev authentication failed or Invalid LINGODOTDEV_API_KEY format
Solution:
Error: Lingo.dev quota exceeded or Maximum limit messages
Solution:
Error: No markdown files found in repository
Solution:
Error: GitHub API error: 404 or Failed to fetch README
Solution:
ReadMeLingo uses a SDK-based architecture for fast, reliable translations:
The tool runs entirely on your machine - no serverless functions or external services. Files are fetched from GitHub, translated via Lingo.dev API, and saved locally. This means:
# Clone and install dependencies
git clone https://github.com/KartikLabhshetwar/ReadMeLingo.git
cd ReadMeLingo
npm install# Run CLI in development mode (uses tsx for TypeScript execution)
npm run cli translate -- --repo owner/repo
# Build TypeScript to JavaScript
npm run cli:build
# Test the built CLI locally
npm run cli:run translate -- --repo owner/repo
# Link package globally for local testing
npm link
readmelingoo translate --repo owner/repoReadMeLingo/
├── cli/ # CLI tool source code
│ ├── index.ts # Main entry point
│ ├── commands/ # Command implementations
│ └── utils/ # CLI utilities (quotes, etc.)
├── lib/ # Shared libraries
│ ├── github.ts # GitHub API integration
│ ├── lingo.ts # Lingo.dev SDK integration
│ ├── markdown.ts # Markdown utilities
│ └── utils.ts # General utilities
├── dist/ # Compiled JavaScript (build output)
├── bin/ # CLI executable
└── web/ # Landing page (Next.js app)
See ARCHITECTURE.md for detailed architecture documentation.
Contributions welcome! Please open a Pull Request.
GPL-3.0 - see LICENSE file for details.
For questions or issues, please open an issue on GitHub.
| Back | FazBrowse Home | New Git URL |