terra-symfony / trans-manager
Translate panel for symfony
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- symfony/finder: ^4.3 || ^5.0
- symfony/framework-bundle: ^4.3 || ^5.0
- symfony/intl: ^4.3 || ^5.0
- symfony/translation: ^4.3 || ^5.0
- symfony/twig-bundle: ^4.3 || ^5.0
- symfony/validator: ^4.3 || ^5.0
- twig/twig: ^2.11 || ^3.0
This package is auto-updated.
Last update: 2025-02-27 09:02:13 UTC
README
Symfony integration for PHP Translation
Install
Install this bundle via Composer:
$ composer require terra-symfony/trans-manager
If you're using [Symfony Flex][symfony_flex] - you're done! Symfony Flex will create default configuration for you, change it if needed. If you don't use Symfony Flex, you will need to do a few more simple steps.
- First, register the bundle:
# config/bundles.php return [ // ... Terra\TransManagerBundle\TransManagerBundle::class => ['all' => true], ];
# config/packages/trans_manager_translation.yaml translation_manager: locales: ["en"] edit_in_place: enabled: false config_name: app configs: app: dirs: ["%kernel.project_dir%/templates", "%kernel.project_dir%/src"] output_dir: "%kernel.project_dir%/translations" excluded_names: ["*TestCase.php", "*Test.php"] excluded_dirs: [cache, data, logs]
# config/packages/trans_manager.yaml trans_manager: site_key: 'APP_RECAPTCHA_SITE_KEY' secret: 'APP_RECAPTCHA_SECRET'