Download the PHP package locastic/symfony-translation-bundle without Composer
On this page you can find all versions of the php package locastic/symfony-translation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download locastic/symfony-translation-bundle
More information about locastic/symfony-translation-bundle
Files in locastic/symfony-translation-bundle
Package symfony-translation-bundle
Short Description Symfony translation bundle
License MIT
Informations about the package symfony-translation-bundle
Locastic Translation Bundle
This bundle gives the basis to allow translating your messages from any admin panel. You will now be able to create translation migrations, the same way you create your database migrations. It also provides a few services to help you expose and manage your translations.
Installation
Configuration
Note: This bundle supports locales the same way as Symfony, meaning that en
will be the fallback for en_US
and en_GB
.
Usage
Creating a translation migration
Then you can run the migration with the following command:
Note: down for migrations is not supported yet.
Exposing translations
You will need to create a controller to expose your translations. Here is an example:
And then create a template displaying your translations.
Recommended way is to save translations via an AJAX and use the SaveTranslationsAction
class to save them.
All versions of symfony-translation-bundle with dependencies
doctrine/doctrine-bundle Version ^2.5
doctrine/doctrine-migrations-bundle Version ^3.2
symfony/console Version 5.4.* || 6.*
symfony/http-kernel Version 5.4.* || 6.*
symfony/property-access Version 5.4.* || 6.*
symfony/translation Version 5.4.* || 6.*
symfony/yaml Version 5.4.* || 6.*
twig/twig Version 2.15.* || ^3.5
pagerfanta/pagerfanta Version ^2.6 || ^3.6 || ^4.0
symfony/form Version 5.4.* || 6.*