Skip to main content

wxrks Web Preview: Usage Requirements

The website-side requirements (public URL, public assets, no bot-blocking) and quirks (CORS, robots protection, basic HTTP auth, segment pagination) that determine whether wxrks Web Preview can render a page.

wxrks Web Preview lets you see a website rendered with your translations as you work, instead of translating blind against a spreadsheet of strings. Because it works by fetching and rendering the live site, a handful of requirements on the website's own side determine whether it will render at all — this article covers those requirements and a few related quirks to expect.
​

💡 Who is this for? Vendors, Project Managers, and Account Admins working on website localization Work Units in the wxrks Editor. Several requirements below are about the target website's own server configuration (CORS, robots/bot rules) rather than a wxrks setting — you may need to share this article with whoever manages that website's hosting or IT.


How it works

Open a Work Unit in the Editor and select Web Preview from the preview mode selector in the bottom-left panel — see wxrks Preview: Supported File Extensions for when Web Preview is picked automatically versus when you choose it. Type a URL into the box, the same way you would in a browser's address bar, and click Go. The page loads in the preview panel.
​

Web Preview works on a "best attempt" basis. You don't need to be translating the site's actual HTML to use it — the file can be TXT, JSON, YAML, XLIFF, XML, or anything else, as long as it contains the site's content and you provide the site's URL. As you confirm translated segments, wxrks locates the matching text in the rendered page and replaces it with your confirmed translation.
​

A couple of edge cases to know about: certain characters and line breaks can occasionally prevent a translation from rendering correctly, though this is rare. Web Preview also only translates text that's actually rendered in the page's DOM — strings embedded in CSS or JavaScript won't show as translated in the preview, even if they're part of your source file.


Open Web Preview automatically on the page named in an XLIFF file

Some XLIFF files carry the full address of the published page they were exported from, in an attribute of the file's <file> element (for example, topicUrl). Turn on Open Web Preview automatically in the file's filter, and the Editor opens the Web Preview on that page for each file. Nobody has to type the address by hand, file after file.

💡 Who does what? Account Admins turn the option on in a filter, a saved set of parsing options for one file type. Project Managers can turn it on or off for a single file when creating a project. Project Managers and Vendors then see the Web Preview open on the page when they open the file in the Editor.

Turn the option on in a filter

The option exists in the filters for the XLIFF, XLIFF 1.2, XLIFF 2.0 and SDL XLIFF file types. It is off by default.

  1. Go to Settings > Translation > Filter settings. To set it for one Organizational Unit only, click Org unit and pick the unit first.

  2. Click Add filter, choose the XLIFF File type and enter a Name. To change an existing XLIFF filter instead, click Edit on its row.

  3. Turn on Open Web Preview automatically. The Page URL attribute field appears under it.

  4. In Page URL attribute, type the name of the attribute that holds the page address, for example topicUrl.

  5. Click Save. To apply the filter to new projects automatically, select Default on its row.

Add filter dialog for an XLIFF 1.2 filter: step 3 marks the Open Web Preview automatically switch turned on, and step 4 marks the Page URL attribute field under it with topicUrl typed in.

wxrks reads the attribute when the file is uploaded, so the option applies to files uploaded after you save the filter. In this example, the attribute is topicUrl:

<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
  <file original="getting-started.html" source-language="en-US" target-language="pt-BR" datatype="html"
        topicUrl="https://www.example.com/help/getting-started.html">

ℹ️ Note: In XLIFF 2.0 files, the attribute must use a namespace, for example x:topicUrl. Type the name without the prefix: topicUrl.

Turn the option on or off for one file

When you create a project, the option also appears in the settings of each XLIFF file you upload, with the values of the filter applied to that file. In the Files section of New project, click Import settings on the file's row. To apply a filter that isn't the default, pick it under Saved filters. Then turn Open Web Preview automatically on or off for that file only, and check the Page URL attribute.

Import settings of an XLIFF file in New project, with a red box around the Open Web Preview automatically switch turned on and the Page URL attribute field set to topicUrl.

What happens in the Editor

When a Project Manager or a Vendor opens the file in the Editor, the preview panel opens in Web Preview (the panel header shows Web next to the file name), with the page address already in the address field and the page loaded. This happens even if you closed the preview panel the last time you used the Editor. Translations replace the source text on the page as you confirm segments, the same as when you type the address yourself.

Editor with the Web Preview panel open below the segments; a red box marks the Web label and the address field, which already holds the page address read from the file, and the page is loaded under it.

A few rules decide whether the page opens:

  • Only the first <file> element is read. If the attribute is on a later <file> element, it's ignored.

  • The address must be a complete, public web address. It must start with http:// or https://, be no longer than 2,048 characters, and not point to a private or internal network address (such as 127.0.0.1). Any other value is ignored.

  • A preview address sent by a connector or the API wins. When a project created through a connector or the API already sets a preview address for the file, the Editor opens that one instead.

  • Updating the source file updates the address. When you update a project's source file with a revised version, wxrks reads the attribute again: a new address replaces the old one, and a missing attribute clears it.

  • The panel stays closed in some sessions. When you open several files together, or when Zen Mode is on for the step, the Editor starts with the preview panel closed. Open the panel and it shows the page.

When the option is off, the attribute is missing, or its value is ignored, the Editor works as before: the preview opens in its usual mode (Code Preview for most XLIFF files), and you can switch to Web Preview and type the address yourself.


Requirements

For Web Preview to render a page successfully, the target website needs to meet all three of the following:
​

  1. The URL is publicly accessible — reachable without a VPN, IP allowlist, or private network.

  2. Images, media, and scripts the page depends on are also publicly accessible, whether hosted on the site itself or a CDN.

  3. The website does not block automated HTTP requests. Web Preview is a backend service — it requests and renders the page server-side before displaying the result in your browser inside the Editor, so it needs to be treated the same as any other legitimate visitor.


Basic HTTP auth option

If your website sits behind basic HTTP authentication, wxrks can be configured to support it. Ask your Account Admin to set this up for the relevant Organizational Unit so Web Preview can authenticate before rendering.
​

Caveat: if images or other assets the page loads live in the same authenticated domain, your browser may still show its own native basic-auth popup when it tries to load them directly. If the initial page request already satisfies the authentication, and the remaining assets are publicly available (for example, served from a CDN), Web Preview renders normally with no further action needed. If you do have the basic HTTP credentials on hand, you can enter them in that browser popup and the preview will load normally as well.


Things to consider

CORS

If your website relies on third-party cookies, trackers, or embedded functionality from other domains, rendering can be affected by CORS (Cross-Origin Resource Sharing) rules set by those third-party sites — this is a restriction the third party enforces, not something wxrks or your own site can override from the preview side.

Robots & scraping protection

If your website has protections in place to block bots or scrapers, this can prevent Web Preview from rendering the page. wxrks is not a bot or a scraper, but some detection systems flag its automated, programmatic requests as one and block them anyway.

Bulk translation

When you bulk-translate all segments in a Work Unit using Machine Translation or Translation Memory, not every segment is necessarily confirmed afterward. If you click Apply Targets to preview the page with your translations, some strings may not appear yet — the Editor paginates segments for performance, so not all of them are loaded into your browser right away. As you confirm segments, or scroll through the Editor to load more, your browser fills in the rest, building toward a complete translated preview.


Related articles

Did this answer your question?