How to Create Multilanguage Emails with Copilot
Translate email templates in your codebase with Copilot and ToolRouter.
ToolTranslateCopilot brings translation directly into your i18n workflow, treating localization as a code task rather than an external handoff. Translate locale files, UI strings, and documentation without leaving your editor, then review the changes in your diff view alongside the rest of your code. This is ideal for developers who maintain localization as part of the build process, ensuring that new features ship with translations rather than accumulating a backlog of untranslated strings that need a separate localization pass.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Translate tool:
- In Copilot Chat: "Translate the email templates in templates/en/ to Spanish using the translate tool"
- Copilot translates each template file and writes to templates/es/
- Review the translated templates in your editor
- Commit the new locale templates to your repo
Example Prompt
Try this with Copilot using the Translate tool
Translate all HTML email templates in templates/en/ to French and Spanish. Preserve all HTML tags and template variables.
Tips
- Copilot preserves HTML structure and template variables ({{name}}, {%if%}, etc.)
- Ideal for transactional email templates stored in version control
- Ask Copilot to validate that no template variables were accidentally translated