mopro/translation-ui-bundle
Composer 安装命令:
composer require mopro/translation-ui-bundle
包简介
A different UI for the JMSTranslationBundle
README 文档
README
A different UI for the JMSTranslationBundle.
Installation
-
Install the bundle through composer
composer require mopro/translation-ui-bundle php app/console assets:install -
Instanciate the bundle for the
devenvironmentif ('dev' === $this->getEnvironment()) { $bundles[] = new Mopro\Bundle\TranslationUIBundle\MoproTranslationUIBundle(); } -
Import routing in your
app/config/routing_dev.ymlfilemopro_translation_ui: resource: "@MoproTranslationUIBundle/Controller/" type: annotation
(The routing will conflict with the existing JMSTranslation UI, so remove the routes imports if needed)
Usage
Go to http://your.website/app_dev.php/_trans and start translating.
Development
This bundle relies on Javascript. It uses all the cool things we have in 2016 (see package.json file for a list of dependencies). If you want to develop, make sure you have at least node and npm installed. Then, you will need to run these command:
npm install -g webpack
npm install
In order to generate the javascript file, you will need to run the webpack command.
Remember to symlink your assets by using the php app/console assets:install --symlink command
LICENSE
See LICENSE file.
统计信息
- 总下载量: 435
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-09