Table of Contents
Table of Contents
- The Three Core Batch Operations
- Batch Update Translations
- Batch Delete Keys
- Batch Publish Translations
- AI Bulk Translation with translateBatch
- When to Use AI Bulk Translation
- CMS Bulk Operations
- MCP Bulk Tools for Developer Workflows
- createKeys — Bulk Key Creation
- updateKeys — Bulk Translation Updates
- deleteKeys — Bulk Key Removal
- publishTranslations — Bulk Publish to CDN and GitHub
- Real-World Scenario: Migrating 5,000 Keys
- Real-World Scenario: Mass Language Rollout
- Performance and Safety at Scale
- Getting Started with Batch Operations
Managing translations at enterprise scale is a fundamentally different challenge than handling a few dozen keys for a small app. When your product spans 20 languages, 50 namespaces, and thousands of translation keys, manual workflows collapse under their own weight. Every terminology change cascades across hundreds of strings. Every new language launch requires touching every single key. Every release cycle demands a publish operation that covers the entire scope of changes.
This guide walks through how Better i18n's batch operations solve these problems — from the Translation Editor's built-in bulk actions to AI-powered translation, CMS bulk management, and MCP tool automation.
The Three Core Batch Operations
The Translation Editor provides three batch operations that form the foundation of efficient localization management.
Batch Update Translations
The most common bulk operation is updating translations across multiple keys simultaneously. Consider a real scenario: your company rebrands "Workspace" to "Team Space" across the entire product. Without batch operations, someone has to find and update every key containing that term — in every language.
With batch update, you select the affected keys, apply the change, and it propagates across all selected languages. The operation is atomic: either all updates succeed or none do, so you never end up with a partially updated UI.
Batch Delete Keys
Cleaning up unused translation keys is essential maintenance that teams often neglect because it is tedious. Features get deprecated, A/B tests conclude, and old strings accumulate. Batch delete lets you select multiple keys and remove them in one action. The operation respects namespace boundaries, so you can clean up one area of your app without worrying about accidentally affecting another.
Batch Publish Translations
Translations go through a lifecycle: created, translated, reviewed, published. The publish step pushes translations to your CDN or syncs them to your GitHub repository. Batch publish lets you push an entire set of reviewed translations live at once, rather than publishing key by key. This is especially important for coordinated releases where you want all translation changes to go live simultaneously.
AI Bulk Translation with translateBatch
The translateBatch tool is where batch operations meet AI. It lets you translate up to 500 keys in a single request, with precise control over scope and target.
Here is how the parameters work together:
- targetLanguages[] defines which languages to generate translations for. You might target just one new language or a dozen at once.
- scope determines the breadth — "all" covers every key in your project, while "namespace" narrows it down.
- namespaces[] lets you specify exactly which namespaces to include when scope is set to "namespace."
- maxKeys controls batch size, from 1 to 500 keys per request.
When to Use AI Bulk Translation
AI translation excels as a first pass. It is fast, consistent, and handles high volumes. The ideal workflow is:
- Run
translateBatchto generate initial translations for all untranslated keys - Use the Translation Editor to review and refine AI-generated translations
- Batch publish the reviewed translations
This three-step workflow turns a week-long manual translation effort into a day of review work.
CMS Bulk Operations
If you use Better i18n's content management system, you have access to parallel bulk capabilities for structured content.
bulkUpdateEntryStatus moves multiple content entries between states — draft, published, or archived — in a single operation. This is invaluable during content audits when you need to archive dozens of outdated entries or publish a batch of reviewed content simultaneously.
bulkDeleteEntries removes multiple content entries at once. When deprecating a product line or cleaning up test content, this saves significant manual effort.
proposeContentEntries uses AI to generate up to 20 structured content entries in one request. Each entry comes complete with translations, making it a powerful tool for bootstrapping content libraries for new product areas or market launches.
MCP Bulk Tools for Developer Workflows
The Model Context Protocol (MCP) exposes every bulk operation as a programmable tool, enabling automation that goes beyond what the UI offers.
createKeys — Bulk Key Creation
Create hundreds of translation keys with their initial translations in a single API call. This is the tool of choice when setting up a new feature area or importing translations from an external system. Each key can include translations for multiple languages, so you can create a fully translated namespace in one operation.
updateKeys — Bulk Translation Updates
Update existing translations across any number of keys and languages. The tool validates that target keys exist and warns about namespace mismatches — a critical guardrail that prevents the accidental creation of duplicate keys in wrong namespaces.
deleteKeys — Bulk Key Removal
Remove deprecated keys programmatically. This integrates naturally into CI/CD pipelines where you can automatically clean up keys that are no longer referenced in your codebase.
publishTranslations — Bulk Publish to CDN and GitHub
Push translations live for entire namespaces at once. The publish operation is designed for high throughput — it batches internally using the PUBLISH_BATCH message type and processes via the batch_publish job type, so even publishing thousands of keys does not block your workflow.
Real-World Scenario: Migrating 5,000 Keys
Let us walk through a concrete enterprise scenario. Your team is restructuring the translation architecture — splitting a monolithic "common" namespace into domain-specific namespaces like "billing," "settings," and "onboarding."
Step 1: Export and Map. Use listKeys to get all keys in the "common" namespace. Map each key to its target namespace based on your new architecture.
Step 2: Bulk Create. Use createKeys to create keys in the new namespaces with all existing translations carried over. Process in batches of 200-300 keys for optimal throughput.
Step 3: Validate. Use listKeys on each new namespace to verify all keys landed correctly with their translations intact.
Step 4: Bulk Publish. Use publishTranslations for each new namespace to push the reorganized translations to CDN.
Step 5: Clean Up. Once your codebase is updated to reference the new namespaces, use deleteKeys to remove the old keys from "common."
The entire migration — 5,000 keys across 15 languages — completes in an afternoon instead of consuming a sprint.
Real-World Scenario: Mass Language Rollout
Your product is expanding from 5 to 12 supported languages. That means adding 7 new languages across every namespace.
Step 1: AI First Pass. Run translateBatch with your 7 new target languages, scope set to "all," and maxKeys at 500. For a project with 2,000 keys, this takes 4 batches.
Step 2: Priority Review. Focus human review on customer-facing namespaces first. Use the Translation Editor's batch update to apply reviewer corrections efficiently.
Step 3: Staged Publish. Batch publish one namespace at a time, starting with the highest-traffic areas. Monitor for issues before publishing the next batch.
Step 4: Ongoing Coverage. Set up automated translateBatch runs for new keys added during development so your new languages never fall behind.
Performance and Safety at Scale
Batch operations at enterprise scale need guardrails. Better i18n's bulk tools include several safety mechanisms:
- Namespace validation prevents keys from being created in the wrong namespace — a common automation error that leads to phantom duplicate keys.
- Cross-entity collision warnings alert you when a key you are creating already exists in another namespace.
- Atomic operations ensure that batch updates either fully succeed or fully roll back — no partial states.
- Async processing for large publish batches means your team is never blocked waiting for a deployment to complete.
Getting Started with Batch Operations
If you are currently managing translations manually, start with the Translation Editor's batch operations — they require no setup and give immediate productivity gains. As your scale grows, integrate MCP bulk tools into your development workflow for programmatic control. And use AI bulk translation to eliminate the cold-start problem when adding new languages.
Enterprise translation management does not have to be slow. With the right batch tools, your localization workflow scales as fast as your product does.