Skip to content
Convert your translation files to Xliff
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.editorconfig
.gitattributes
.gitignore
.php_cs
.scrutinizer.yml
.styleci.yml
.travis.yml
Changelog.md
LICENSE
Readme.md
composer.json
phpunit.xml.dist

Readme.md

Convert your translation files

Latest Version Build Status Code Coverage Quality Score Total Downloads

Don't you hate all the different translations formats? Are you stuck with JMSTranslatorBundle? If so, this is the tool for you!

This little tool can convert your translation files from one format to the excellent XLIFF 2.0. A perfect use case is when you migrating from JMSTranslatorBundle to PHP-translation.

Install

composer require php-translation/converter

Use

Just run the command like below:

# Example
./vendor/bin/translation-converter translation:convert [input_dir] [output_dir] [format]

# Convert from JMSTranslationBundle
./vendor/bin/translation-converter translation:convert app/Resources/translations app/Resources/translations-new jms

# Convert from Yaml
./vendor/bin/translation-converter translation:convert app/Resources/translations app/Resources/translations-new yml

Documentation

Read our documentation at http://php-translation.readthedocs.io.

Contribute

Do you want to make a change? Pull requests are welcome.

You can’t perform that action at this time.