Skip to content

Node.js CLI to convert ProcessWire JSON translation exports to XLIFF 1.2 and back

License

Notifications You must be signed in to change notification settings

blue-tomato/PwXliffConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PwXliffConverter

License: MIT

PwXliffConverter is a Node.js CLI tool that allows you to convert ProcessWire JSON translation exports to XLIFF 1.2 format and back again.

Installation

Clone the repository:

git clone https://github.com/blue-tomato/PwXliffConverter.git
cd PwXliffConverter

Install dependencies:

npm install

Build the app folder by running:

npm run build

To install globally, run:

npm install -g .

Usage

To use PwXliffConverter, run the following command:

node app convert --file <filename>

If installed globally:

pwcvt convert --file <filename>

Replace <filename> with the path of the ProcessWire JSON translation export file that you want to convert to XLIFF, or the name of the XLIFF file that you want to convert back to JSON. The converted file is located in the same folder as the original file.

For example, to convert translations.json to translations.xlf, run the following command:

node app convert --file `translations.json`

Be aware that if you already have a file with the same name in your folder, it will be overwritten.

Dependencies/Packages

Contributing

Create a branch on your fork, add commits to your fork, and open a pull request from your fork to this repository.

To get better insights and onboard you on module implementation details just open a support issue. We'll get back to you asap.

License

See the LICENSE.txt file for information about the module's license.

About

Node.js CLI to convert ProcessWire JSON translation exports to XLIFF 1.2 and back

Resources

License

Stars

Watchers

Forks

Packages

No packages published