如何为 JMS 翻译设置一些默认设置?

How can I set some default settings for JMS Translation?

我已经为我的 Symfony2 项目安装了 JMS 翻译。我成功地提取了翻译文件。

我现在需要的是找到一种方法来设置一些默认值,这样我调用命令时就不需要每次都设置排除的目录或文件名了。

这可能吗?也许通过 services.yml 或类似的东西?

在这里您可以找到一些示例配置 http://jmsyst.com/bundles/JMSTranslationBundle/master/cookbook/extraction_configs

Once you have found a suitable combination of command line options, it might be a bit tedious to specify them each time when you want to run the extraction command. For this, you can also set-up some pre-defined settings via the configuration: