jms translation bundle: The format "yml~" does not exist.

465 Views Asked by At

In symfony2, with JMSTranslationBundle, when running

php app/console translation:extract fr --config=app

I get the issue

  [JMS\TranslationBundle\Exception\InvalidArgumentException]  
  The format "yml~" does not exist.    

my config being

jms_translation:
    configs:
        app:
            dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
            output_dir: %kernel.root_dir%/Resources/translations
            ignored_domains: [routes]
            excluded_names: ["*TestCase.php", "*Test.php"]
            excluded_dirs: [cache, data, logs]
#            extractors: [jms_i18n_routing]

Any idea as how to solve this ?

1

There are 1 best solutions below

1
On

The solution is to remove all *.yml~ files from your project.