openclassrooms/translation-bundle

Symfony2 Bundle for Translation Workflow

Installs: 4 778

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 27

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master / 1.0.x-dev 2015-12-08 14:30 UTC

This package is auto-updated.

Last update: 2024-04-06 22:25:28 UTC


README

Build Status Coverage Status SensioLabsInsight

Symfony2 Bundle that checks missing translations keys and fix Transifex behavior

Installation

This bundle can be installed using composer:

composer require openclassrooms/translation-bundle or by adding the package to the composer.json file directly.

{
    "require": {
        "openclassrooms/translation-bundle": "*"
    }
}

After the package has been installed, add the bundle to the AppKernel.php file:

// in AppKernel::registerBundles()
    $bundles = array(
        // ...
        new OpenClassrooms\Bundle\TranslationBundle\OpenClassroomsTranslationBundle(),
        // ...
);

Configuration

Add the elasticsearch hosts to the config.yml

openclassrooms_translation:
    locale_source: fr
    locale_targets:
        - en
        - es
    bundles:
        - AppBundle
        - UserBundle