soluti/translation-bundle

一个允许从SymfonyProfiler直接导出消息的包

v2.0.0 2017-12-18 16:43 UTC

This package is auto-updated.

Last update: 2021-09-21 13:34:10 UTC


README

一个允许从SymfonyProfiler直接导出消息的包

安装

A) 下载并安装

要安装SolutiTranslationBundle,请运行以下命令

$ php composer.phar require soluti/translation-bundle

B) 启用包

在kernel中启用所需的包

<?php
// config/bundles.php

return [
    ...
    Soluti\TranslationBundle\SolutiTranslationBundle::class => ['dev' => true],
];

C) 启用包路由

将以下内容添加到config/routes/dev/soluti_translation.yaml

soluti_translation:
    resource: "@SolutiTranslationBundle/Controller/"
    type:     annotation

D) (可选)配置包导出格式

将以下内容添加到config/packages/dev/soluti_translation.yml

soluti_translation:
    format: xlf #  xlf | yml | php

许可证

此软件包可在MIT许可证下使用。