php-translation / converter
Converts your translation files to Xliff
Installs: 1 745
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 4
Open Issues: 1
Requires
- php: ^5.5 || ^7.0
- php-translation/symfony-storage: ^0.3.2
- symfony/config: ^2.7 || ^3.0
- symfony/console: ^2.7 || ^3.0
- symfony/finder: ^2.7 || ^3.0
- symfony/yaml: ^2.7 || ^3.0
Requires (Dev)
- php-translation/symfony-bundle: ^0.4
- phpunit/phpunit: ^4.8.36 || ^5.5 || ^6.2
This package is auto-updated.
Last update: 2024-12-16 14:32:01 UTC
README
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 --format=jms # Convert from Yaml ./vendor/bin/translation-converter translation:convert app/Resources/translations app/Resources/translations-new --format=yml
Documentation
Read our documentation at http://php-translation.readthedocs.io.
Contribute
Do you want to make a change? Pull requests are welcome.