Repository navigation
Release v1.27.3
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_transwithTranslatableInterfaceflashes: aTranslatableMessage(or anyTranslatableInterface) 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.
AuthKitFlashExtensionTestcovers both shapes.
Full Changelog: v1.27.2...v1.27.3