Add bundle in your composer.json:
{
"require": {
"jcid/loco-bundle": "dev-master"
}
}
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Jcid\Bundle\LocoBundle\JcidLocoBundle(),
);
}
Configuration example
jcid_loco:
key: <Your api key>
locales:
nl: nl_NL
en: en_US
de: de_DE
domains:
- email
- messages
- validators
After that you could download your translations with the Symfony2 command
php app/console translation:loco:download