PHPackages                             locastic/symfony-translation-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. locastic/symfony-translation-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

locastic/symfony-translation-bundle
===================================

Symfony translation bundle

1.0.0(3y ago)35.9k↓100%2[1 PRs](https://github.com/Locastic/SymfonyTranslationBundle/pulls)1MITPHPPHP &gt;=7.4 || &gt;=8.1

Since Jan 30Pushed 1y ago6 watchersCompare

[ Source](https://github.com/Locastic/SymfonyTranslationBundle)[ Packagist](https://packagist.org/packages/locastic/symfony-translation-bundle)[ RSS](/packages/locastic-symfony-translation-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (11)Versions (6)Used By (1)

Locastic Translation Bundle
 [ ![](https://camo.githubusercontent.com/e38c863dfe001389ab801c59a451e56d014a84f0c5f21268c16381c32a8f0640/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6361737469632f73796d666f6e792d7472616e736c6174696f6e2d62756e646c652e737667) ](https://packagist.org/packages/locastic/symfony-translation-bundle "License") [ ![](https://camo.githubusercontent.com/b2bc671d02705f03445ee1c675a94911929a349f88888bcde057ab8d69d570ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6f6361737469632f73796d666f6e792d7472616e736c6174696f6e2d62756e646c652e737667) ](https://packagist.org/packages/locastic/symfony-translation-bundle "Version") [ ![](https://camo.githubusercontent.com/9b14790dea22d0ea64a4442eac390ff238fa54df5a43f2f9166d0481c16ea5ff/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4c6f6361737469632f53796d666f6e795472616e736c6174696f6e42756e646c65) ](https://scrutinizer-ci.com/g/Locastic/SymfonyTranslationBundle/ "Scrutinizer") [ ![](https://camo.githubusercontent.com/d368f6e1efbad26d5c50c50629d7f3630282165300c5d83c254d89e4c4b472f1/68747470733a2f2f706f7365722e707567782e6f72672f6c6f6361737469632f73796d666f6e792d7472616e736c6174696f6e2d62756e646c652f646f776e6c6f616473) ](https://packagist.org/packages/locastic/symfony-translation-bundle "Total Downloads")
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#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
------------

[](#installation)

```
composer require locastic/symfony-translation-bundle
```

Configuration
-------------

[](#configuration)

```
imports:
    - { resource: "@LocasticSyliusTranslationPlugin/Resources/config/config.yaml" }

locastic_sylius_translation:
    default_locale: en # The default locale to use
    locales: # The list locales supported by your application
        - en
```

*Note:* This bundle supports locales the same way as Symfony, meaning that `en` will be the fallback for `en_US` and `en_GB`.

Usage
-----

[](#usage)

### Creating a translation migration

[](#creating-a-translation-migration)

```
