Key Features
Hardcoded Text Detection
Find untranslated text in JSX/TSX files that should use i18n translation
functions
Missing Key Detection
Identify translation keys used in code but missing from your locale files
Orphan Key Detection
Find unused translation keys defined in locale files but never used in code
Multi-language Support
Detects text in any language using Unicode alphabetic character detection
AI Integration
MCP server for AI agents like Claude to analyze and fix i18n issues
Why Glot?
- Fast: Built in Rust using the same parser as Next.js (swc)
- Accurate: Understands JSX/TSX syntax and next-intl patterns
- Configurable: Customize detection rules, ignored patterns, and checked attributes
- CI-friendly: Perfect for automated pipelines with exit codes and structured output
How It Works
Glot parses your TSX/JSX files using the swc AST parser and visits each node to detect:- Text content in JSX elements:
<button>Submit</button> - String expressions:
<div>{"Hello"}</div> - Conditional text:
{loading ? "Loading..." : "Done"} - Attribute values:
<input placeholder="Enter email" />
Quick Example
Next Steps
Quick Start
Install glot and run your first i18n check in 2 minutes