How to Localize Product Descriptions with Copilot
Translate product data files 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 product descriptions in products.json to French using the translate tool"
- Copilot translates and writes the output to products-fr.json
- Review the diff to verify translations
- Repeat for additional languages
Example Prompt
Try this with Copilot using the Translate tool
Translate all product description fields in our data/products.json file to Spanish. Write the result to data/products-es.json.
Tips
- Copilot handles structured data files (JSON, CSV, YAML) natively
- Ask Copilot to preserve all non-text fields (IDs, prices, URLs) unchanged
- Use for headless CMS content that lives in your repo