在symfony2中,使用JMSTranslationBundle,运行时
php app/console translation:extract fr --config=app
我明白了这个问题
[JMS\TranslationBundle\Exception\InvalidArgumentException]
The format "yml~" does not exist.
我的配置是
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]
知道如何解决这个问题吗?
最佳答案
解决方案是从项目中删除所有 *.yml~
文件。
关于php - jms翻译包: The format "yml~" does not exist.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30903476/