Skip to main content

How to configure file parsing options for your project's files

How wxrks parses and extracts content from CSV, DOCX, JSON, PPTX, XLIFF, and other file types when you upload them to a project, including the JSON comments and reference-image feature.

Most files upload to wxrks and translate correctly with the default settings. But when a file's structure is unusual — a CSV that uses commas instead of semicolons, a JSON export with embedded translator notes, a DOCX with content you don't want translated — wxrks lets you fine-tune exactly how it reads the file and rebuilds it after translation.
​

💡 Who is this for? This guide is for Account Admins and Project Managers who need to fine-tune how wxrks parses and extracts content from a project's files within the wxrks platform.


Where to find these settings

These options live inside the Upload Files step of project creation. For the full step-by-step of creating a project — organizational unit, languages, workflows, and everything else — see How to create a translation project in wxrks. This article covers only the file-parsing options you'll find in that step.
​

Once a file finishes uploading, click its row to expand a settings panel tailored to that file's type. Click the row again to collapse it.


Controls that apply to every file type

A few controls appear at the top of every file's settings panel, regardless of file type:

  • Import As — wxrks auto-detects the file type from its extension. If a file needs to be parsed as a different type (for example, a .txt export that's really tab-separated data), change it here; the Type of [X] selector next to it lets you pick a specific parser variant for that type.

  • Apply segmentation to text — when on (the default), wxrks splits extracted text into sentence-level segments using its standard segmentation rules. Turning it off keeps each extracted unit as one segment.

  • Extract Terms from Source Content — when on, wxrks scans the file's text for candidate terminology as it parses the file, using the thresholds shown alongside the toggle (minimum occurrences, word-count range, and similar).

The toolbar above the parameter list — the save icon, the Filters dropdown, and the apply-to-all and clear icons — lets you save the current settings as a reusable filter, apply one you've already saved, push a configuration to every file of that type in the project, or reset a file back to defaults. Reusable filters are covered in How to customize file parameters — this article focuses on what each individual parameter does.


File-type-specific parameters

wxrks tailors the parameter panel to each file's type. Complex formats like DOCX, PPTX, and XLSX can expose 30 or more individual fields — every field has an info icon with a full description, so the sections below focus on the ones you're most likely to actually need, grouped by file family.

Office documents: DOCX, XLSX, PPTX, VSDX

These formats share several common controls: Aggressive Tag Cleanup (strips extra formatting tags, most useful for documents converted from another format like PDF) and Translate Document Comments (exposes the document's own comments for translation), plus toggles for document properties, headers/footers, hidden content, external hyperlinks, and replacing line breaks or tabs with literal characters. DOCX and XLSX also let you include or exclude text by font color or highlight color.
​

Each format adds its own options on top of that: PPTX adds toggles for master slides, speaker notes, and slide numbers; XLSX adds hidden rows/columns, diagram data, per-worksheet configuration, and treating a file as multilingual; VSDX (Visio) adds toggles for translating specific Visio XML tag types.

DOCX file settings panel in the New Project wizard's Upload Files step, showing Import as, Type of DOCX, the filter toolbar and the Flags list, with Aggressive Tag Cleanup and Translate Document Comments highlighted

Translating only some worksheets or columns of an XLSX file

By default, wxrks extracts the text of every worksheet and every column of an XLSX file. When only part of a workbook needs translation, for example one product sheet out of several, or the name and description columns but not the SKU or internal notes, use two switches in the file's Multilingual Flags group:

  • Extract Only Specified Excel Worksheets: only the worksheets you name are translated.

  • Extract Only Specified Excel Cells: only the columns you list for each worksheet are translated.

You can turn on either one or both. To set them up:

  1. In the Upload Files step, click the file's row to open its settings, and scroll down to Multilingual Flags.

  2. Turn on Extract Only Specified Excel Worksheets, Extract Only Specified Excel Cells, or both. Filtering Options opens below them with one configuration.

  3. In Sheet Name, type the worksheet's name exactly as it appears on its tab in Excel, for example Products.

  4. If you turned on Extract Only Specified Excel Cells, type the letters of the columns to translate in Extract Columns, separated by commas, for example B, C.

  5. To add another worksheet, click Add Configuration and fill in its fields. Copy duplicates a configuration and Remove deletes it.

  6. Click Save. wxrks confirms that the rules for the file were updated.

XLSX file settings in the Upload Files step: the Extract Only Specified Excel Worksheets (1) and Extract Only Specified Excel Cells (2) switches turned on, and under Filtering Options the Sheet Name field set to Products (3), the Extract Columns field set to B, C (4), and the Save button (5)

wxrks won't save while a configuration is incomplete:

  • With Extract Only Specified Excel Worksheets on, every configuration needs a Sheet Name.

  • With Extract Only Specified Excel Cells on, every configuration needs Extract Columns.

In the Editor, only the text of those worksheets and columns becomes segments. The file preview under the segments still shows the whole workbook, so translators can see the cells that aren't translated as context.

Editor for a workbook with the Products and Internal worksheets: the segment list (1) holds only the Name and Description columns of Products, while the file preview below still shows the SKU and Internal note columns and the Internal worksheet tab

Markup and structured data: HTML, XML, JSON

HTML exposes two escaping toggles that control how greater-than characters and double-quotes are written back into the translated file — turn off Escape double-quotes if your target system already handles quote escaping and you're seeing characters encoded twice.

XML (and DITA, which uses the same parser) controls character escaping, CDATA handling, and whitespace preservation — useful when the receiving system is strict about exact XML formatting.

For XML string files whose strings carry a character limit, a note for translators or a screenshot, turn on Record fields in the Custom XML filter: see How to read character limits, context and reference images from XML string files. For strings in ICU MessageFormat, turn on ICU MessageFormat so each plural or select branch becomes its own segment and the ICU syntax is protected as tags: see How to translate ICU plural and select messages in XML files.

JSON gives you control over which key/value pairs get extracted: Extract all key/strings pairs is on by default, with a regular expression field to exclude specific keys; Infer tags from regex and the two escaping toggles (forward slashes, whitespace characters) control how inline formatting is preserved.

JSON file settings panel in the Upload Files step with the Escape forward slashes (/) and Extract all key/strings pairs flags highlighted, both turned on

Showing JSON comments and reference images to translators

Some JSON exports already carry embedded notes for translators — for example, a key literally named comments that a developer or CMS added next to a string to explain where it appears or how it should read. Instead of leaving that context buried in the raw file, wxrks can surface it directly to the translator and optionally reuse it to improve AI/CS translation suggestions.

wxrks looks for a comments key anywhere in the file — at the top level, nested inside an object, or repeated inside a list. This is controlled by two independent flags in the file configuration panel:

Flag

What it does

Show Comments In The Editor

Displays the comment text next to the affected segment in the editor, behind a small info icon.

Use Comments In CS

Feeds the same comment text into CS (context-sensitive) matching, so it can influence Translation Memory and AI suggestions. Comments longer than 400 characters are truncated to fit.

You can turn either flag on independently — enabling one does not require the other. Both are off by default.

JSON file settings Flags list with Show Comments In The Editor and Use Comments In CS highlighted, both turned off by default

For example, a source file like this:

{
  "welcome_message": "Hello, {name}!",
  "comments": "This greeting appears on the homepage banner. Reference layout: https://cdn.example.com/screenshots/homepage-banner.png"
}

With Show Comments In The Editor turned on, the comment text appears next to the "Hello, {name}!" segment: click the info icon on that segment to open a small panel listing the comment.

If a comment also contains a link to an image, wxrks automatically downloads it and attaches it to the segment as a reference image, the same way reference images from other file formats appear in the editor — no extra configuration needed beyond having Show Comments In The Editor turned on. That image link must be a public https:// URL pointing to a PNG or JPEG under 5 MB; links that resolve to a private or internal network address are rejected for security reasons, and up to 5 reference images are imported per file.

You can also save these two flags — along with the rest of a JSON configuration — as a reusable filter under your Organizational Unit, instead of setting them on every upload. See How to customize file parameters.

Translating bilingual JSON and LocJSON files

Some JSON files hold both the text to translate and an existing translation of it, for example an export from your own database where each object has a source key and a target key. LocJSON (.locjson), an open bilingual JSON format, follows the same idea. With Bilingual JSON turned on, wxrks translates the source key, gives the translator the translation already in the target key as a reference translation to review, and writes the final translation back into the target key. The option is off by default; while it is off, the file is parsed like any other JSON file.

Where to set it:

  • Project Managers set it per file when creating a project: after a .json or .locjson file uploads, click Import settings on that file and use the Bilingual JSON section.

  • Account Admins can save the same settings in a JSON filter, on the account or on one Organizational Unit, so new projects use them automatically: go to Settings > Translation > Filter settings, click Add filter and choose JSON as the File type. See How to customize file parameters.

To set it up:

  1. Turn on Translate the source key and write the translation to the target key.

  2. Check Source key and Target key. They default to source and target; change them only if your objects use other key names. For .locjson files these fields don't appear, because the keys are always source and target.

  3. To bring the existing translations into the project, turn on Import target segments. Optionally, turn on Confirm imported target segments to confirm them on import, and Save confirmed target segments in TM to also save those confirmed segments in the project's Translation Memory (TM).

Bilingual JSON section of a JSON file's Import settings during project creation: the source-to-target toggle turned on (1), the Source key and Target key fields set to source and target (2), and the three import options with Import target segments turned on (3)

ℹ️ Note: While Bilingual JSON is on, wxrks extracts only the source key of each object. Extract all key/strings pairs and its exclusion expression don't apply to that file, and nothing under properties is sent for translation.

Which existing translations are imported:

  • A target that is empty, or identical to its source, is not imported. That key is pre-translated as usual.

  • The existing translations fill only the task of the language the file declares in its properties object, under x-target, tanker-target, x-tanker-target or target (the underscore forms, such as x_target, also work). wxrks matches that code to the project's target languages, so pt-BR fills the Portuguese (Brazil) task.

  • If the file declares no target language, the translations are imported only when the project has a single target language.

  • If the declared language matches none of the project's target languages, or the file declares it under a key wxrks doesn't recognize (for example target_language), nothing is imported.

In the Editor: each imported translation shows a JSON origin badge (LOCJSON for .locjson files). Pre-translation from Translation Memory, machine translation (MT) or Sous Chef (the wxrks AI translation agents) never overwrites it, and neither does the propagation of repeated segments, so the translator always starts from the existing translation.

Editor showing the source Review your order with its imported translation Revise o seu pedido and the JSON origin badge highlighted, while the second segment, Place order, has an empty target

On delivery: the source key comes back exactly as you sent it, the target key holds the final translation, and comments, properties and the order of the keys are kept.

Example: this file is uploaded to a project from English (United States) to Portuguese (Brazil), with Bilingual JSON and Import target segments turned on:

{
  "properties": {
    "x-source": "en-US",
    "x-target": "pt-BR"
  },
  "checkout_title": {
    "source": "Review your order",
    "target": "Revise o seu pedido",
    "comments": "Heading of the checkout page"
  },
  "checkout_button": {
    "source": "Place order",
    "target": "Place order"
  }
}

The translator sees two segments. Review your order already holds Revise o seu pedido, marked JSON. Place order starts empty, because its target is identical to the source, and is pre-translated as usual. After the translator enters Fazer pedido for it, the delivered file is:

{
  "properties": {
    "x-source": "en-US",
    "x-target": "pt-BR"
  },
  "checkout_title": {
    "source": "Review your order",
    "target": "Revise o seu pedido",
    "comments": "Heading of the checkout page"
  },
  "checkout_button": {
    "source": "Place order",
    "target": "Fazer pedido"
  }
}

Bilingual and pre-translated files: XLIFF

When you upload an already-translated or partially-translated XLIFF file (from another CAT tool, for instance), three toggles control what wxrks does with the existing target content: Import target segments brings the target text already in the file into wxrks, Confirm imported target segments automatically marks that imported text as confirmed, and Save confirmed target segments in TM stores those confirmed segments into your Translation Memory. The remaining options in this panel control lower-level XLIFF writer behavior (CDATA handling, alternative translations, and similar) and rarely need to change from their defaults.

XLIFF file settings Flags list with Import target segments highlighted and turned on; Confirm imported target segments appears above it, turned off
Lower part of the XLIFF file settings Flags list with Save confirmed target segments in TM highlighted, turned off by default

Delimited and plain text files: CSV, TSV, TXT, Java Properties

For CSV files, the default field delimiter is a semicolon (;) rather than a comma — change Field Delimiter if your file actually uses commas or another character. Text Qualifier (default: double-quote) lets a delimiter character appear inside a field's value without splitting it. Further down, you can specify which line holds column headers, which columns are IDs versus source/target/comment text, and which columns to exclude entirely.
​

TXT files use the Import As selector itself to pick the parsing mode — plain text by line or paragraph, tab- or comma-delimited table data, or a custom regular expression. Java Properties files (.properties) let you filter which keys get extracted using a regular expression, and control how comments and escaped characters are handled on the way out.

CSV file settings Text & Rules fields with the Field Delimiter field highlighted, showing its default semicolon; Text Qualifier with a double-quote appears below

Character encoding of text files

A text file doesn't say which character encoding it was saved in. If wxrks reads a file in the wrong encoding, accented letters and other non-English characters turn into broken symbols (such as �) in the segments, and the damage carries over to the translated file. The Encoding option tells wxrks how to read the source file and how to write the translated file.

Which files have it: TXT, CSV, TSV, Java Properties, SRT, VTT, Apple Strings (.strings), JavaScript (.js), JSON, Markdown, YAML (.yml, .yaml), PO, POT and PHP files.

Where to set it:

  • Project Managers set it per file when creating a project: after the file uploads, click Import settings on that file and choose a value in Encoding.

  • Account Admins can save it in a filter, on the account or on one Organizational Unit, so new projects use it automatically: go to Settings > Translation > Filter settings, click Add filter, choose the File type and set Encoding. See How to customize file parameters.

Auto-detect is the default. It looks for a byte order mark (BOM), a few invisible bytes at the start of the file that some editors add to mark it as UTF-8 or UTF-16. With a BOM, wxrks uses the encoding the BOM names; without one, it reads the file as UTF-8. Auto-detect doesn't guess any other encoding. The other choices are UTF-8, UTF-16LE, UTF-16BE, ISO-8859-1 (Western European), Windows-1252 (Western European), Windows-1250 (Central European), Windows-1251 (Cyrillic), Shift_JIS (Japanese), EUC-JP (Japanese), GBK (Simplified Chinese), GB18030 (Simplified Chinese), Big5 (Traditional Chinese) and EUC-KR (Korean).

⚠️ Common misconfiguration: a non-UTF-8 file left on Auto-detect. A file saved in ISO-8859-1, Windows-1252 or Shift_JIS without a BOM is read as UTF-8, so its accented letters become � in the segments and in the translated file, and the word count changes too. Before you create the project, click Preview under Extraction preview in the file's import settings and check the segments:

Extraction preview of an ISO-8859-1 TXT file read with Encoding left on Auto-detect: the red box marks two segments where Café, Lumière, crème and brûlée show a replacement symbol instead of the accented letters

If you see �, set the encoding the file was saved in (ask whoever sent the file if you aren't sure):

  1. Open the Encoding list.

  2. Choose the file's encoding, for example ISO-8859-1 (Western European), then click Refresh preview and check that the accents now show correctly.

Encoding list open in the file's Import settings: step 1 marks the Encoding field, still on Auto-detect, and step 2 marks the ISO-8859-1 (Western European) option

ℹ️ Note: The encoding is fixed once the project is created. On the project page, the file's Filter Settings (the ⋯ menu at the end of its work unit row) shows it but doesn't let you change it.

HTML files have no Encoding option: they are read as UTF-8 even when a <meta charset> tag in the file names another encoding, so convert an HTML file to UTF-8 before you upload it.

The translated file keeps the source encoding

wxrks writes the translated file in the same encoding as the source file, with the same BOM: an ISO-8859-1 file comes back in ISO-8859-1, and a UTF-16 file with a BOM comes back in UTF-16 with its BOM. Earlier, UTF-16 files with a BOM were delivered in UTF-8, so if you used to convert them back after download, you no longer need to.

When a translation has characters the encoding can't hold (BWX-006)

Encodings made for one region, such as ISO-8859-1 or Shift_JIS, hold a limited set of characters. ISO-8859-1, for example, has Western European letters such as é and ü, but not the Polish ł, ą or ś, Cyrillic, or Japanese. When a confirmed translation contains a character the file's encoding can't hold, wxrks doesn't write a damaged file: it stops generating that translated file and reports the error BWX-006. This happens in plain-text formats such as TXT, CSV, SRT and Markdown. XML, HTML, JSON, Java Properties and DTD files never fail this way: wxrks writes the character as an escape code (for example &#x142; or \u0142), which the receiving system reads as the original character.

Worked example. A menu file is uploaded with Encoding set to ISO-8859-1 (Western European) and translated from English into Polish:

Source

Translation

Can ISO-8859-1 hold it?

Welcome to the Café Lumière menu.

Witamy w menu Café Lumière.

Yes: é and è are Western European letters

Prices include service.

Ceny obejmują obsługę.

No: ą, ł and ę are not in ISO-8859-1

The second translation is correct Polish, but it can't be written in this file, so the Polish file is not delivered until the segment changes.

Where you see the error:

  • Editor preview (Project Managers and Vendors): a warning above the preview says how many segments have characters that can't be written in the file's encoding. The preview still shows the file, with ? in place of each of those characters. Click Go to segment to jump to the first affected segment.

Editor preview of the Polish file with a red box around the warning that 2 segments have characters that cannot be written in ISO-8859-1 (BWX-006), with its Go to segment button, and a second red box around two preview lines where the Polish letters show as question marks

  • Editor download (Download > Translated file): no file is downloaded. A message says that some segments have characters the file encoding cannot hold (BWX-006) and points you to the preview, and the Download button shows a warning icon with the same message.

Editor after Download &gt; Translated file: a red box marks the error message saying that some segments have characters that the file encoding cannot hold (BWX-006) and asking you to fix them in the preview and download again

  • Project download (Project Managers and Account Admins, ⋯ > Download Translated Files on the project page): the download still finishes with every file that could be generated. For each file left out, a message names the file and its target language, followed by the BWX-006 details: the work unit, the encoding and the IDs of the affected segments.

Project page after Download Translated Files: a red box marks the message saying that cafe-menu-latin1.txt (pl_pl) was left out of the download with error BWX-006, listing the work unit, file and segment IDs and the ISO-8859-1 encoding

How to fix it:

  1. Open the file in the Editor and show the preview, then click Go to segment in the warning.

  2. Rewrite that segment without the characters the encoding can't hold and confirm it. Repeat until the warning disappears from the preview.

  3. Download the translated file again.

If the target language needs those characters, as Polish needs ł, the file's encoding can't carry a correct translation. Ask whoever will use the translated file whether their system accepts UTF-8. If it does, save the source file as UTF-8, upload that version and set its Encoding to UTF-8.

💡 Tip: For ISO-8859-1 files, turn on the QA check A character is not included in the ISO-8859-1 character set encoding (off by default), so translators see these characters while they work instead of at download. See How to use the wxrks QA Check Tool.

Other supported formats

Several less-common formats get their own tailored parameter panel the same way, accessed by expanding the file's row after upload:

  • IDML (Adobe InDesign) — extract hidden layers, master spreads, notes, and index topics.

  • Markdown (.md) — translate a YAML metadata header, image alt text, and hyperlink URLs; control which code blocks are translated versus protected.

  • Subtitles (.srt, .vtt) — extract notes/timecodes as metadata and control how quoted strings are delimited.

  • Apple Keynote, Numbers, and Pages — choose what is extracted: speaker notes, master slide text (Keynote), sheet names (Numbers), table cell text, table names, chart text, image descriptions and comments, plus character style tags, inline codes and the target writing direction. Table names and comments are off by default, and the stored preview image is replaced with a translated one. See iWork: how wxrks handles Pages, Keynote and Numbers files for each option and its default.

  • PO — standard gettext import, with a monolingual variant available from the Import As selector.

For the current full list of extensions wxrks accepts, see Supported and Unsupported File Extensions.


Getting help

If you run into a configuration this article doesn't cover, reach out to the wxrks support team — you can also search the wxrks Community for prior questions from other users.


Related articles

Did this answer your question?