Skip to content

Release v1.27.3

Choose a tag to compare

@github-actions github-actions released this 19 Oct 20:01
· 35 commits to main since this release

v1.27.3

Changelog

flash_trans translates TranslatableMessage / TranslatableInterface flashes instead of returning the object (500 in host toast templates); optional locale argument. See UPGRADING.

Fixed

  • flash_trans with TranslatableInterface flashes: a TranslatableMessage (or any TranslatableInterface) flash
    was returned unchanged, so {{ message|flash_trans }} failed with "Object of class ... could not be converted to
    string" (HTTP 500). The filter now calls ->trans($translator, $locale), with the message's own domain and
    parameters. It also takes an optional locale (message|flash_trans({}, 'es')), used for string keys too.
    AuthKitFlashExtensionTest covers both shapes.

Full Changelog: v1.27.2...v1.27.3