A Chrome browser extension for reviewing a translation order against its live preview page. You upload the order file (a list of data-pll-id segments), the extension maps each segment to the rendered page, you edit the translations, and it writes your changes back into the same file.
- 📄 Order upload: Load the translation order (
.htmlexport of<div data-pll-id>segments) - 🔗 Automatic mapping: Each segment is matched to its element on the live page by normalized text (tolerant of WordPress texturizing — curly quotes, en/em dashes, whitespace)
- 🎯 Coverage view: Matched segments are highlighted on the page; unmatched ones (e.g. post title, hidden ACF fields) are flagged in the list
- ✏️ Two-way editing: Edit a highlighted segment inline on the page, or edit any segment directly in the side-panel list
- 💾 Download updated file: Regenerates the exact same file format with your edited text
- ⌨️ Keyboard Shortcuts: Esc to exit edit mode, Ctrl+Z to restore a segment's original text
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in the top-right corner)
- Click Load unpacked
- Select the
TranslationReviewfolder - The extension icon should appear in your toolbar
- Open the translated preview page in the active tab
- Click the TranslationReview icon to open the side panel
- Click Upload translation file and select the order
.htmlexport - Matched segments are highlighted on the page; the list shows how many matched
- Click Enable Edit Mode, then click a highlighted segment to edit it — or edit any segment directly in the list
- Click Download updated file to save the order with your changes (
<name>-reviewed.html)
- Esc: Exit edit mode and stop editing
- Ctrl+Z (or Cmd+Z on Mac): Undo changes to the currently focused element
- Green Outline: Active editable elements are highlighted with a green outline
- Notifications: Status messages appear in the top-right corner
- Persistent Changes: Your edits remain until you refresh the page
The extension uses:
- Content Scripts: Injected into every webpage to enable editing functionality
- Popup Interface: Toggle edit mode on/off
- CSS Highlighting: Visual indicators for editable elements
- Event Listeners: Capture clicks and keyboard shortcuts
TranslationReview/
├── manifest.json # Extension configuration
├── popup.html # Popup interface
├── popup.css # Popup styling
├── popup.js # Popup functionality
├── content.js # Main editing logic
├── content.css # Editing interface styles
├── icons/ # Extension icons
│ ├── icon16.png
│ ├── icon48.png
│ └── icon128.png
└── README.md # This file
- Manifest Version: 3 (latest Chrome extension standard)
- Permissions:
activeTab,scripting - Content Script Injection: Runs on all URLs (
<all_urls>) - Browser Compatibility: Chrome, Edge, and other Chromium-based browsers
This is version 1.0.0 with basic text editing functionality. Planned features include:
- 🌍 Translation integration
- 💾 Save and export changes
- 📝 Change history and tracking
- 🎨 Custom styling options
- 🔄 Sync across devices
- 📊 Statistics and analytics
- Refresh the page after enabling edit mode for the first time
- Check permissions: Make sure the extension has access to the current site
- Reload extension: Go to
chrome://extensions/and click the reload icon - Check console: Press F12 and look for error messages
Some elements like input fields, textareas, and already-editable content are skipped to avoid conflicts.
To modify the extension:
- Make changes to the source files
- Go to
chrome://extensions/ - Click the reload icon on the TranslationReview card
- Test your changes on a webpage
This extension is provided as-is for personal and educational use.
- v1.0.0 (2024): Initial release with basic text editing functionality
Note: Changes made with this extension are temporary and will be lost when you refresh the page. Future versions will include save functionality.