XLIFF 2.0 (en → es)
An OASIS XLIFF 2.0 file with the same content as its 1.2 twin, using the modern unit/segment structure — for testing XLIFF 2.0 parsers and 1.2-to-2.0 converters.
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en" trgLang="es">
<file id="f1" original="app.js">
<unit id="greeting">
<notes><note>Greeting shown on the home screen</note></notes>
<segment>
<source>Hello</source>
<target>Hola</target>
</segment>
</unit>
<unit id="welcome">
<notes><note>Welcome message with the user's name</note></notes>
<segment>
<source>Welcome, {name}</source>
<target>Bienvenido, {name}</target>
</segment>
</unit>
<unit id="save">
<notes><note>Save button label</note></notes>
<segment>
<source>Save</source>
<target>Guardar</target>
</segment>
</unit>
<unit id="cancel">
<notes><note>Cancel button label</note></notes>
<segment>
<source>Cancel</source>
<target>Cancelar</target>
</segment>
</unit>
<unit id="search">
<notes><note>Search field placeholder</note></notes>
<segment>
<source>Search</source>
<target>Buscar</target>
</segment>
</unit>
<unit id="settings">
<notes><note>Settings menu item</note></notes>
<segment>
<source>Settings</source>
<target>Configuración</target>
</segment>
</unit>
<unit id="logout">
<notes><note>Log out menu item</note></notes>
<segment>
<source>Log out</source>
<target>Cerrar sesión</target>Specifications
- Format
- XLIFF 2.0 (OASIS)
- Src Lang
- en
- Trg Lang
- es
- Units
- 7
What is a .xliff file?
XLIFF (XML Localization Interchange File Format) is an OASIS-standard XML format for exchanging translatable content between tools. It wraps source and target text in trans-units (1.2) or units and segments (2.0), with metadata, states, and notes. It is the lingua franca between authoring tools and translation-management systems.
How to use this file
Use an example .xliff file to test XLIFF parsers and validators, CAT tools and translation-management systems, and converters between XLIFF 1.2 and 2.0 or to other catalog formats.
How to use this file for testing
“XLIFF 2.0 (en → es)” is a deterministic Novus Examples fixture for Localization catalogs, Internationalization, Editor testing. Gettext PO/POT, XLIFF, Apple .strings, Flutter .arb, Android strings.xml, .NET .resx, and i18next JSON — with RTL and CJK variants — for testing localization pipelines, translation-memory tools, and catalog converters.
Documented properties for this file: XLIFF 2.0 (OASIS). Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Translation-catalog fixtures carry the same message set across formats, each with its native placeholder syntax. Test your i18n loader, catalog converter, or translation-memory tool, and use the RTL and CJK variants to check bidirectional text and Unicode handling.
Load the catalog with your i18n framework and verify placeholder interpolation and plural handling; the RTL and CJK variants exercise bidirectional text and font fallback.
Code examples
from translate.storage.xliff import xlifffile # pip install translate-toolkit
store = xlifffile.parsefile("example-2.0.xliff")
for unit in store.units[:5]:
print(unit.source, "->", unit.target)Related files
- resx.NET RESX — EnglishA .NET Resources.resx file (English) with the standard ResX schema and resheader block plus name/value string data and comments, using {0} composite-format placeholders.

- resx.NET RESX — SpanishThe Spanish satellite RESX (Resources.es.resx) — for testing .NET resource parsers and culture-based resource resolution against the same keys.

- xmlAndroid strings.xml — EnglishAn Android values/strings.xml (English) with string resources, a <plurals> block, and a <string-array>, using positional %1$s placeholders — the res/values/ default catalog.

- xmlAndroid strings.xml — SpanishThe Spanish Android strings.xml (as res/values-es/) — for testing Android resource parsers, plurals, and string-array localization.

- stringsApple .strings — EnglishAn Apple Localizable.strings file (English) — quoted key = value pairs with comments and %@ placeholders, as iOS/macOS apps use per-locale in .lproj folders.

- stringsApple .strings — SpanishThe Spanish twin of the Apple .strings catalog — for testing .strings parsers and en/es diffing against the same keys.

Generated by generation/localization.py. Free for any use, no attribution required — license.