All guides

TSV and CSV guides

Translation files in spreadsheets

Almost every localisation hand-off is a table with a key, a source language and one column per target. The shape is obvious once you have seen it, and so are the four ways it goes wrong.

Translation work arrives as a table far more often than as anything purpose-built. A key column, the source language, a column per target language, and some columns that are not translations at all.

It is a reasonable format. It survives being emailed, it opens anywhere, and a translator does not need an account to use it. What it does not do is understand what any of the columns mean, and that is where the trouble starts.

The shape of the file

Five kinds of column, in roughly this order:

  • The key — the identifier the software looks the string up by. checkout_button_label, or a number. This column is not text for humans and must survive untouched.
  • The source language — what the translator reads from. Usually English, and it is not theirs to edit; a change here silently desynchronises every other column.
  • The target languages — one per locale, the columns being filled in.
  • Comments — developer notes, translator questions, replies. Prose about the string rather than the string.
  • Metadata — status, screen name, character limit, the file the string came from.

The distinction between the last two and the target languages is the one a spreadsheet cannot make on its own, and the one that matters most.

How a language column is recognised

By its header, and headers are inconsistent in predictable ways. A tool that only accepts a bare ISO code will miss most real files.

There are three families to handle. Plain codes — en, es, ja — are the easy case. Regional variants — pt-BR, zh-Hans, es-419 — carry a script or a region after a separator, and dropping the suffix would merge Brazilian and European Portuguese into one column that is neither. Spelled-out names — Spanish, Japonés — appear whenever the file was prepared for people rather than for a parser.

On top of that, headers arrive decorated: [EN], text_en, EN_translation. These are all the same language wearing different clothes, and the only workable approach is to strip the decoration down to a code before deciding.

This site’s editor also matches accented and unaccented forms of written-out names, because a header saying Japonés and one saying Japones are the same column and only one of them was typed carefully.

The columns that are not translations

A comment column rendered as an editable translation cell is worse than useless — it invites someone to translate a note that was meant to be read, and it counts toward a completeness figure it has nothing to do with.

TabEdit recognises comment headers such as notes, comment_ja, Observación, コメント, 備考 and 開発者返答. A word appearing inside an unrelated name is not enough: noteworthy is not a note column. Ambiguous headers such as description and context count as comments only when they are the whole header. The Japanese header 返答 is recognised on its own; 返答率 is not. Check the interpretation against the actual contents of your file.

Metadata is the other group — id, status, screen, file, maxlength, limit. These need to be visible, because a character limit is exactly what a translator needs to see, but they are not work to be done.

Get this wrong and every number you compute afterwards is wrong with it. A file reported as 60% translated when three of its “languages” are comment columns tells you nothing.

Classify notes and comments without changing the file

Consider key | en | es | review. The review column contains instructions such as “Keep the product name in English”, not another target language. You can tell TabEdit’s translation editor how to treat it without renaming that header:

  1. Select the review column in the grid.
  2. Open Commands with Ctrl+K on Windows/Linux or Cmd+K on Mac, and choose Classify comments: review. This opens the translation panel, even if the file was not recognised as a translation table.
  3. In Comment classification, check the selected Column and choose Comment. That column is excluded from language detection, translation progress and row-key candidates. Its values remain in the table and in the exported file.

The selector has three choices:

  • Automatic uses the header to detect comments.
  • Comment treats the column as notes regardless of its header.
  • Not a comment overrides comment detection. It allows another role but does not assign a language: a real language column still needs a recognised language header.

For example, a genuine translation column headed description may need Not a comment, followed by a recognised language header such as es if the receiving format allows it. Do not rename a required header just to obtain a progress bar. For files with custom headers, check whether the detected layout fits before relying on translation metrics.

Classification changes support Undo and Redo. They change how the editor interprets the table, not its header text or cell values.

If the source column disappears

If you classify the current source as a comment, or delete it, TabEdit asks you to Choose a source column. Progress is suspended and the untranslated filter is turned off. Select a valid language column in Source, then turn on the filter for the target you want to review. Restoring a column to Not a comment alone does not choose it as the source. If no language column is available, check its classification and header first.

Comment classifications and the source choice belong to the locally saved project when browser storage is available. They are not exported as TSV/CSV metadata. Reopening the downloaded file runs automatic detection again, so another person may need to make the same choices. To continue with your saved interpretation, reopen the local project in the same browser profile.

Where the spreadsheet works against you

Four specific failures, all of them common:

The key column gets destroyed. Keys look enough like data for Excel to convert them: a leading zero disappears, MAR1 becomes a date. The software then cannot find the string, and the translation that was done correctly is lost behind a key that no longer matches.

Completeness is invisible. A spreadsheet will tell you a column has 1,200 non-empty cells. It will not tell you that 300 of them are still the English source text, which is not the same as being translated.

There is no safe merge. Two translators working on two copies produce two files, and reconciling them is manual. This is the single strongest argument for a real localisation platform once a project passes a certain size.

The encoding goes. A file with Japanese, Korean and accented Latin in it is exactly the file that turns into mojibake when opened without the right encoding — and, unlike a key, damaged text does not announce itself in a language you cannot read.

Conventions that make it survivable

If the table is what you have, a few decisions remove most of the pain:

  1. Keep keys unchanged and agree the row order. Sorting whole rows keeps each key with its translations, but a receiving tool may still require the original row order. Moving columns is a separate operation.
  2. Name language columns with codes, not names. pt-BR is unambiguous; Portuguese is a question.
  3. Keep comments in clearly named columns and never in the same column as a translation.
  4. Agree the encoding and line endings once, and re-export with the same settings every time. UTF-8 throughout, and a byte order mark only if someone genuinely opens it in Excel.
  5. Send TSV rather than CSV when the content is prose. Translated text is full of commas and rarely contains tabs, so the delimiter stays out of the way — the trade-off is covered in TSV vs CSV.

Doing it here

The editor on this site recognises this shape on open: it looks at the headers, works out which columns are languages, which is the source, and which are commentary or metadata. When it finds a key and at least two language columns it switches into a translation mode built around that layout.

The source column becomes read-only, because editing what the translator reads from is almost never intended. Comment columns are presented as notes attached to the row rather than as cells to fill in. Progress is reported per language, and what counts as translated is a question with more than one answer.

If the receiver needs a different column order, follow the steps to reorder TSV columns. The same left/right commands work for CSV. Headers and values move together, and the source choice and comment classifications follow the moved columns.

Nothing is uploaded: the file is read and written by your browser, which for a translation hand-off under an agreement about where the content may go is not a small detail. The TSV and CSV translation file editor page covers the rest of what that mode does.

Open your translation file in the editor →