This is an PHP-translation adapter for Loco (Localise.biz).
composer require php-translation/loco-adapter
If you want to use the Symfony bundle you may activate it in kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Translation\PlatformAdapter\Loco\Bridge\Symfony\TranslationAdapterLocoBundle(),
);
}
If you have one Loco project per domain you may configure the bundle like this:
# /app/config/config.yml
translation_adapter_loco:
projects:
messages:
api_key: 'foobar'
navigation:
api_key: 'bazbar'
If you just doing one project and have tags for all your translation domains you may use this configuration:
# /app/config/config.yml
translation_adapter_loco:
projects:
acme:
api_key: 'foobar'
domains: ['messages', 'navigation']
This will produce a service named php_translation.adapter.loco
that could be used in the configuration for
the Translation Bundle.
Read our documentation at http://php-translation.readthedocs.io.
Do you want to make a change? Pull requests are welcome.