Skip to content

lokalise-document-preview/browser-extension

Repository files navigation

Lokalise document preview
browser extension

Add to Chrome

Screenshot of Lokalise file preview UI adjusted by extension

How to use (video demo)

  • Install the extension for Chrome (pending) or Firefox.
  • Create a Document type project at Lokalise.com.
  • Upload an HTML document (file extension should be .html).
  • Translate the document.
  • Go to "Download" section.
  • Hit "Preview" and find the preview at the bottom of the page.

If your document in bigger than a preview then a scrolling is available for checking all the document contents.

Previews are local and secure

This extension is generating previews locally in a secure sandboxed enviroment which is separate from the Lokalise (using <iframe sandbox...>).

Available Blocked
All HTML tags,
All links are clickable,
CSS styles (inline and from absolute links),
Images are loaded from absolute links.
JavaScript,
Forms won't be submitted,
Popups are blocked.

Source code is open and available for audit:

Privacy policy

This browser extension does not collect, send or store any information at all.

For the document live preview feature this browser extension:

  • collects an API token from user and stores it locally in a browser (removed after when extension is removed or browser data is cleaned),
  • collects project params (project ID, filename and target language ID) from the project URL and removes after the tab is closed,
  • sends a request via proxy hosted on Cloudflare Webworker to get a language ISO code from the ID,
  • sends a request via proxy hosted on Cloudflare Webworker to fetch a document preview.

All data is sent to proxy via HTTPS and stored inside the requrest body only.
All data is received from proxy via HTTPS.

No data is stored or cached on the proxy web worker level, see the source code.

Cloudflare's policies about privacy and data protection are published separately.


It's not affiliated with Lokalise.com and is just a personal project.