Download the PHP package coffreo/php-translation-js-extractor-bundle without Composer
On this page you can find all versions of the php package coffreo/php-translation-js-extractor-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coffreo/php-translation-js-extractor-bundle
More information about coffreo/php-translation-js-extractor-bundle
Files in coffreo/php-translation-js-extractor-bundle
Package php-translation-js-extractor-bundle
Short Description Add javascript translation extractor for php-translation/symfony-bundle package
License MIT
Informations about the package php-translation-js-extractor-bundle
Coffreo/php-translation-js-extractor
By Coffreo
Extract translations from Javascript source files.
- Recommended
willdurand/js-translation-bundle
Same bundle exists for JMSTranslation: see Coffreo/jms-translation-js-extractor-bundle
Installation
Application with Symfony flex
Application without Symfony flex
-
Install bundle
-
Enable bundle:
-
symfony 3.* ``
- symfony 4.* (if not already added by
symfony/flex
) ``
-
Usage
This bundle allow extraction of translated strings in javascript files using Coffreo/js-translation-extractor.
No specific command line to use, just use originals php-translation/symfony-bundle
commands:
`
Translations found are automatically added to current translations files as PHP, twig ones.
Configuration
This bundle doesn't need configuration.
However, to extract strings from JS files, you must indicate where are stored your JS files in php-translation/symfony-bundle
configuration.
Developer commands
-
Run tests:
- Apply coding standard
Coding standard must be applied before commit, TravisCI will fail otherwise
License
This project is licensed under the MIT License - see the LICENSE file for details
All versions of php-translation-js-extractor-bundle with dependencies
php-translation/extractor Version ^2.0.2
symfony/framework-bundle Version ^3.0 || ^4.3 || ^5.0 || ^6.0
php-translation/symfony-bundle Version >=0.9.0 <1.0.0
coffreo/js-translation-extractor Version ^0.3