- Chrome: https://webkul.com/blog/how-to-install-the-unpacked-extension-in-chrome/
- Edge: https://learn.microsoft.com/en-us/microsoft-edge/extensions/getting-started/extension-sideloading
Click the extension button to translate text inside paragraphs, headings (h1–h6), and list items into the language defined in MY_LANG while preserving inline markup and links.
Made with ChatGPT 5 (after a few iterations).
It can be useful in cases when Google Translate full web page translation fails with the message "Can't translate this page" e.g. when translating https://cepr.org/voxeu/columns/chinas-belt-and-road-initiative-and-shifting-landscape-trade-and-investment ➜ https://cepr-org.translate.goog/voxeu/columns/chinas-belt-and-road-initiative-and-shifting-landscape-trade-and-investment?_x_tr_sl=en&_x_tr_tl=pl
- Download the ZIP and extract it.
- Open
chrome://extensionsin Chrome. - Enable Developer mode.
- Click Load unpacked and choose the extracted folder.
- This uses an unofficial Google Translate endpoint. Availability can change.
- If you want additional containers (e.g., blockquotes), you can add their tag names to
ALLOWED_CONTAINERSincontent.js. - For very large pages there may be many requests; batching can be added if needed.