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

Translation Form Bundle Laravel Package

a2lix/translation-form-bundle

View on GitHub
Deep Wiki
Context7
4.0.4

What's Changed

New Contributors

Full Changelog: https://github.com/a2lix/TranslationFormBundle/compare/4.0.3...4.0.4

4.0.1
3.2.4

What's Changed

New Contributors

Full Changelog: https://github.com/a2lix/TranslationFormBundle/compare/3.2.3...3.2.4

3.2.1

What's Changed

Full Changelog: https://github.com/a2lix/TranslationFormBundle/compare/3.2.0...3.2.1

3.1.0

This release allows Symfony 6.0+ and adds new tests for PHP8.0 and PHP8.1 in the CI workflows

Full Changelog: https://github.com/a2lix/TranslationFormBundle/compare/3.0.10...3.1.0

3.0.10

This release only adds a small feature to allow customisable labels for translation

Add translatable locale labels (#365)

Documentation for this feature

You may now set labels for each tab by adding a locale_labels array to the TranslationsType form type, like so:

$form = $this->factory->createBuilder(FormType::class, new Product())
    ->add('translations', TranslationsType::class, [
        'locale_labels' => [
            'fr' => 'Français',
            'en' => 'English',
        ],
    ])
    ->add('save', SubmitType::class)
    ->getForm()
;

If a label is not set here (in this examplen de for instance), its value will default to null and the previous behaviour will kick-in (the template with capitalize the locale name).

Hence, this does not introduce any breaking change and no change of defaults, and seems perfectly safe.

As the trans filter is used in the templates, you can also use translation keys directly here:

$form = $this->factory->createBuilder(FormType::class, new Product())
    ->add('translations', TranslationsType::class, [
        'locale_labels' => [
            'fr' => 'admin.language.fr.tab_title',
            'en' => 'admin.language.en.tab_title',
        ],
    ])
    ->add('save', SubmitType::class)
    ->getForm()
;

See also: https://a2lix.fr/bundles/translation-form/3.x.html#bundle-usage

3.0.9

Fix multiple partial translations (#354) — Thanks @adelinerobinet

ℹ️ A note on this release:

This release might introduce a BC break if you were using the id attribute of a partial translation div to target it in CSS or Javascript, like so for instance:

#Article_translations_fr_a2lix_translations-fields {
    border: 1px solid green;
}

You must now use the full id that includes a concatenation of field names (See here)

3.0.8
3.0.7
  • Github Action replace Travis
  • PHP-CS-Fixer new rules
  • Bootstrap 3 compatibility (#344) - Thanks @sophie-mulard
3.0.6
3.0.4
3.0.3
2.4.3

Fixed

  • Remove deprecation messages when using symfony/config ^4.2
3.0.2
3.0.1
2.4.2
3.0.0
3.0.0-beta.1
2.4.1

Fixed

  • Remove call to setRequest on the xml configuration fixes scope widening
2.4.0

Fixed

  • Scope widening and missing request on certain Symfony versions

Deprecated

  • TranslatedEntityType::setRequest is deprecated, consider using setRequestStack instead
2.3.0

Added

  • Added Symfony 4 support

Fixed

  • Usage of FQCNs for form types to improve SF3 compatibility
  • Fix deprecated strict attribute on services configuration
  • TranslatedEntityType is now compatible with choice_label for Symfony >= 2.7
2.1.2
2.1.1

Fix #219

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