antfroger/dont-translate-bundle
A bundle to disable the translation of your Symfony2 applications and only display the translation keys
1. Add the required package using composer.
composer require antfroger/dont-translate-bundle
2.Add the bundle to your AppKernel.
<?php
// in %kernel.root_dir%/AppKernel.php
$bundles[] = new Af\Bundle\DontTranslateBundle\AfDontTranslateBundle();
3. Optionally, define the configuration
# app/config/config.ym
af_dont_translate:
mode: "get"
param_name: "untrans"
roles: ["ROLE_ADMIN", "ROLE_TRANSLATOR"]
To display your application without translation, add the GET parameter param_name to the URL
http://my-application.io/?untrans
or add a cookie param_name to only see the translation keys in your application
This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
How can I help you explore Laravel packages today?