Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Dont Translate Bundle Laravel Package

antfroger/dont-translate-bundle

View on GitHub
Deep Wiki
Context7

AFDontTranslateBundle

A bundle to disable the translation of your Symfony2 applications and only display the translation keys

Latest Stable Version SensioLabsInsight Scrutinizer Code Quality Code Coverage Build Status

Installation

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

  • mode: the mode you want to use to enable the feature (get, cookie)
  • param_name: the name of the parameter that you use to enable the feature
  • roles: the user should at least have one of these roles to be able to enable the feature if no role is defined the user doesn't need to be logged in to be able to enable the feature
# app/config/config.ym
af_dont_translate:
    mode: "get"
    param_name: "untrans"
    roles: ["ROLE_ADMIN", "ROLE_TRANSLATOR"]

Usage

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

License

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui