Convert XLIFF2 to JSON
Turn XLIFF2 files into JSON. JSON for agents with the source and target languages and one object per entry holding its context, source and plural source, translation or plural forms, state, notes, comments, source references, flags and an obsolete mark.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop XLIFF2 files on the dialor turn it to pick what to do
Translation entries as plain JSON.Each XLIFF 2.0 entry becomes one JSON object with its source, translation and state.
What you get
One JSON file with the source and target languages, followed by one object per entry. Each object holds the entry's context, source and plural source, translation or plural forms, and state.
The notes, comments, source references and flags of the entry are kept too. An obsolete mark is set on entries that are obsolete.
How entries are read
The segments of a unit are joined into one entry. Inline codes keep their text. Placeholders such as
<ph/>become their display text.A numeric unit id is not taken as a context. The context stays empty for units that only have a number as an id.
XLIFF2 and JSON.What each format is.
The formats
XLIFF 2.0
XLIFF 2.0, the newer translation exchange format with units, segments and states.
- Extensions
- .xlf .xliff
- MIME type
- application
/x -xliff2 +xml - Kind
- Text and data
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same XLIFF2 to JSON conversion through the API, for your app or your agent.
$ cv convert report.xlf report.json$ cv convert report.xlf report.jsonQuestions.What people ask about XLIFF2 to JSON.
The source and target languages of the XLIFF 2.0 file are both written to the JSON file.
No. The segments of a unit are joined, so each unit gives one entry.
Placeholders such as <ph/> become their display text. Inline codes keep their text.
No. A numeric unit id is not taken as a context.