schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Extract translations by domain ? #461

Open ikodev opened 7 years ago

ikodev commented 7 years ago

Hello ! Is it possible (or could be a nice improvement) to allow the extraction by domain ? I havn't found that feature in the doc...

Currently in our team, when we extract by configuration (--config=...), the command regenerate useless files with only a timestamp changed in top file (xliff). These committed files in our project are useless for our diff check before a production delivery. Sometimes we would love to extract translations by domains only.

$container->get('translator')->trans('our_key', [], 'specific_domain_to_extract');

Thank you for your advice :)

| ---------------- | --- | Bundle version | 1.3.2 | Symfony version | 3.3.9 | PHP version | 7.0

Nattfarinn commented 6 years ago

Few solutions: