jcid / loco-bundle
此包已废弃,不再维护。未建议替代包。
一个Symfony扩展包,从localise.biz API下载翻译文件并将其放置在正确的文件夹中。
0.5.1
2016-08-17 07:21 UTC
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ^5.0 | ^6.0
- symfony/framework-bundle: ^2.3 | ^3.0
README
README
安装
使用Composer安装 JcidLocoBundle
。
$ composer require jcid/loco-bundle
在kernel中启用该扩展包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Jcid\Bundle\LocoBundle\JcidLocoBundle(), ); }
用法
配置示例
jcid_loco:
key: <Your api key>
locales:
nl: nl_NL
en: en_US
de: de_DE
domains:
- email
- messages
- validators
之后,您可以使用Symfony2命令下载翻译
php app/console translation:loco:download