Download the PHP package coffreo/js-translation-extractor without Composer
On this page you can find all versions of the php package coffreo/js-translation-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coffreo/js-translation-extractor
More information about coffreo/js-translation-extractor
Files in coffreo/js-translation-extractor
Package js-translation-extractor
Short Description Extract translation from javascript source code
License MIT
Informations about the package js-translation-extractor
Coffreo/js-translation-extractor
By Coffreo
Javascript translations extractor for willdurand/js-translation-bundle
This package is a small project existing to store in one place wonderfuls regexps to properly export translations
strings & metas from javascript source files.
It can be used standalone, but it's main goal is to be used in :
Installation
-
You only need to install this package manually for standalone usage and to integrate in your own translation extractor system:
-
Using with Symfony JMSTranslationBundle
see
coffreo/jms-translation-js-extractor-bundle
installation guide. -
Using with Symfony PHP Translation
see
coffreo/php-translation-js-extractor-bundle
installation guide.
Features
- extracts following strings from javascript files like a pro
Note that this is the syntax used by js-translation-bundle
- allow string delimiters to be
"
or'
- extracts multi-lines commands
Usage
Found a bug
Please fill an issue with informations to reproduce bug.
If your translated strings are not extracted properly, please provide a sample failing string.
Development
- Clone repository
- Execute
TODO
- Find a way to add and extract desc/meaning values
License
This project is licensed under the MIT License - see the LICENSE file for details
All versions of js-translation-extractor with dependencies
symfony/finder Version ^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0