There is no license information available for the latest version (dev-master) of this package.

Add description here

Installs: 1 570

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0


dev-master 2016-06-29 14:57 UTC

This package is auto-updated.

Last update: 2021-12-01 00:11:56 UTC



Parse .xlif translation file to a .json file.

Only tagged translations will be transfered into the .json. The tag is an attribute in the element. It's value is used as the source value in the resulting .json

To have a translation transfered to json the trans-unit element has to look like:

<trans-unit [...] [attribute-name]="Json source name">
	<source>xlif source name</source>
	<target>xlif target name</target>

The above example is converted to json like this:

	"Json source name": "xlif target name"

If in xlif the element <target> is not available the content of <source> is used instead.​


  • Navigate to the project directory where flow is installed.
  • Use the following command with the parameters described below:
./flow xliftojson:parseXLF --pathToInputXlf "[/INPUT/PATH/TO].xlf" --pathToOutputJson "[/OUTPUT/PATH/TO].json" --attribute "[ATTRIBUTE-NAME]"
  • Description of the parameters:

    • This is the call of the command controller: ./flow xliftojson:parseXLF
    • This parameter is the absolute path to the .xlf (input) file: --pathToInputXlf "[/INPUT/PATH/TO].xlf"
    • This parameter is the absolute path to the .json (output) file: --pathToOutputJson "[/OUTPUT/PATH/TO].json" Easiest way to get the absolute path is to navigate to the file in the bash and type pwd.
    • This is the attribute-name marking the trans-unit to be transfered (most likely something like 'jsonTranslate'): --attribute "[ATTRIBUTE-NAME]"
  • Alternative: If used without the parameters (just: ./flow xliftojson:parseXLF) you will be asked for the parameters one after another.