Skip to content

feat(notification): Translate resource name in flash messages#1146

Merged
NoResponseMate merged 1 commit intoSylius:1.15from
loic425:feat/translate-resource-in-flash-helper
Feb 9, 2026
Merged

feat(notification): Translate resource name in flash messages#1146
NoResponseMate merged 1 commit intoSylius:1.15from
loic425:feat/translate-resource-in-flash-helper

Conversation

@loic425
Copy link
Copy Markdown
Member

@loic425 loic425 commented Feb 9, 2026

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
License MIT

This improves the feature added in #1089
It also adds the same feature in the new FlashHelper.


private function getParametersWithName(MetadataInterface $metadata, string $actionName): array
{
$applicationName = $metadata->getApplicationName();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It fixes a translated custom resource in the legacy Flash helper


final class FlashHelper implements FlashHelperInterface
{
private const UI_TRANSLATION_PREFIX = 'sylius.ui.';
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not as simple as this...

@NoResponseMate NoResponseMate merged commit f421977 into Sylius:1.15 Feb 9, 2026
18 checks passed
@loic425 loic425 deleted the feat/translate-resource-in-flash-helper branch February 9, 2026 10:58
NoResponseMate added a commit to Sylius/Sylius that referenced this pull request Feb 9, 2026
| Q               | A
|-----------------|-----
| Branch?         | new-routing
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | partially #18212
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

It will fix the build with the feature introduced in
Sylius/SyliusResourceBundle#1146

I also moved the upgrade guide routing chapter from 2.2 to 2.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants