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

Entity Translations Bundle Laravel Package

arxy/entity-translations-bundle

View on GitHub
Deep Wiki
Context7
3.1.0
3.0

Use Arxy namespace.

2.0.5
2.0.4
2.0.3
2.0.2

Bugfix: when translations form is used more than once in same document

2.0.1

Twig form theme now uses form_row instead of self rendering.

Few fixes in documentation and tests.

2.0.0

Changelog:

  • Twig filters translate and translation now accept arguments in different order and locale is not required:

Before:

{{ news|translate('en', 'title')|lower }}

Now

{{ news|translate('title')|lower }}
{{ news|translate('title', 'en')|lower }}
  • Drop support for Symfony 2.7. Now only ~2.8 and ~3.0 are supported.
  • Add tests for forms, translator and other components.
  • Load translations on postPersist event for Doctrine.
  • Use brand-new Form Type for translations instead of extending Symfony's Collection Type.
  • Method setTranslatable(Translatable $translatable) for EditableTranslation is not required now. You should use addTranslation and removeTranslation if you use form (by_reference=false).
  • Remove vm5_entity_translations.translation_loader service. Use vm5_entity_translations.translator or FQCN instead.
  • Add Bootstrap Form template using tabs for each language.
  • Add translate method in Translator: You can now use: Translator::translate($translatable, 'field', $locale = null) to retrieve translated field directly. Internally translator use PropertyAccessor and it's required to pass it thru: setPropertyAccessor method.
1.2.0

The signature of Translatable is changed: before

public function setCurrentTranslation(Translation $translation);

now:

public function setCurrentTranslation(Translation $translation = null);
1.1.2

Fix few deprecations from Symfony 3.4. Fix wrong FormType Definition

1.1.0

New Twig Extension for easy usage from Twig. Separate Translator from Loader.

1.0.1

If you wish to get single translation without initialize it, you can use:

/** [@var](https://github.com/var) $translation \VM5\EntityTranslationBundle\Model\Translation */
$translation = $this->get('vm5_entity_translations.translation_loader')->getTranslation($entity, 'bg');

Argument #2 can be either string locale or Language entity.

1.0.0
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