Multi-provider translation for JSON i18n files
## i18n Translate MCP Server: Internationalization Automation The **i18n Translate MCP Server** specializes in automating internationalization workflows directly within Google Antigravity, enabling AI assistants to manage translation files, extract strings, and maintain multi-language applications programmatically. This integration streamlines the localization development process. ### Why i18n Translate MCP? - **Format Support**: Work with JSON, YAML, PO, XLIFF, and other common i18n formats - **String Extraction**: Automatically extract translatable strings from source code - **Key Management**: Organize and manage translation keys across projects - **Placeholder Handling**: Preserve variables and placeholders during translation - **Diff Detection**: Identify new, changed, and deleted strings between versions ### Key Features #### 1. String Extraction ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Extract all translatable strings from our React components" }], tools=[{ "name": "i18n_extract", "description": "Extract translation strings" }] ) ``` #### 2. File Translation ```python # Translate locale files response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Translate our en.json locale file to Spanish and French" }], tools=[{"name": "i18n_translate", "description": "Translate locale files"}] ) ``` #### 3. Key Synchronization ```python # Sync translation keys response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Sync missing translation keys across all language files" }], tools=[{"name": "i18n_sync", "description": "Synchronize keys"}] ) ``` #### 4. Format Conversion ```python # Convert between formats response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert our JSON translations to XLIFF format for translation vendors" }], tools=[{"name": "i18n_convert", "description": "Convert formats"}] ) ``` ### Configuration ```json { "mcpServers": { "i18n-translate": { "command": "npx", "args": ["-y", "@anthropic/mcp-i18n"], "env": { "TRANSLATION_API_KEY": "your-translation-api-key" } } } } ``` ### Use Cases **App Localization**: Manage translation workflows for web and mobile applications. **CI/CD Integration**: Automate translation updates in deployment pipelines. **String Management**: Track and organize translation strings across projects. **Vendor Workflow**: Export and import translations for external translation services. The i18n Translate MCP Server brings internationalization automation directly into your development workflow, simplifying multi-language application development.
{
"mcpServers": {
"i18n-translate": {
"mcpServers": {
"i18n-translate": {
"env": {
"OPENAI_API_KEY": "YOUR_API_KEY"
},
"args": [
"-y",
"i18n-translate-mcp"
],
"command": "npx"
}
}
}
}
}