Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

JCID/JcidLocoBundle

Repository files navigation

README

Installation

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(),
    );
}

Usage

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