@binance/analyze-i18n
v1.0.26
Published
An MCP server that analyzes files to detect hardcoded text and suggests i18n transformations with diff output for review.
Readme
Analyze i18n MCP Server
An MCP server that analyzes files to detect hardcoded text and suggests i18n transformations with diff output for review.
It also collates new and missing i18n key value pairs into a json file in /Users/user/Library/Caches/cursor/analyze-i18n/files which can be used for BTS upload.
Usage guide
- On cursor, enter
cmd + Lto bring up the chat window - Click
@and select the project folder to add the project to context - Enter
Use tool: anaylze_i18n - After it runs, review the changes made by AI
- If there are any new i18n key value pairs that are generated, a .json file will be produced
MCP Integration
- Open
Cursor Settings > MCP & Integrations > MCP Tools - Click
New MCP Server - Add the following configuration:
{
"mcpServers": {
...,
"analyze-i18n": {
"command": "npx",
"args": ["@binance/analyze-i18n"]
}
}
}Development
npm run dev- Start with hot reloadnpm run build- Build for productionnpm start- Alias for dev commandnpm run debug- Debug with inspector
MCP configurations on local
See the Quickstart tutorial for more information.
// Local built file
{
"analyze-i18n": {
"command": "node",
"args": ["<path-to>/analyze-i18n/build/src/index.js"]
}
}// Local development with hot reload
// Turn on/off the tool to reload cursor MCP on code change
{
"analyze-i18n": {
"command": "npx",
"args": ["tsx", "<path-to>/analyze-i18n/src/index.ts"]
}
}