https://github.com/openclassrooms/translationbundle
https://github.com/openclassrooms/translationbundle
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/openclassrooms/translationbundle
- Owner: OpenClassrooms
- License: mit
- Created: 2015-03-06T13:51:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-08T14:30:38.000Z (over 10 years ago)
- Last Synced: 2025-08-29T03:48:46.584Z (9 months ago)
- Language: PHP
- Size: 35.2 KB
- Stars: 0
- Watchers: 28
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TranslationBundle
[](https://travis-ci.org/OpenClassrooms/TranslationBundle)
[](https://coveralls.io/r/OpenClassrooms/TranslationBundle)
[](https://insight.sensiolabs.com/projects/2e060a26-7a9b-4549-9a44-c2aec7c42b24)
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.
```json
{
"require": {
"openclassrooms/translation-bundle": "*"
}
}
```
After the package has been installed, add the bundle to the AppKernel.php file:
```php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new OpenClassrooms\Bundle\TranslationBundle\OpenClassroomsTranslationBundle(),
// ...
);
```
## Configuration
Add the elasticsearch hosts to the config.yml
``` yml
openclassrooms_translation:
locale_source: fr
locale_targets:
- en
- es
bundles:
- AppBundle
- UserBundle
```