Skip to content

RFC: Add translations for exception reasons#103

Merged
jrushlow merged 1 commit intoSymfonyCasts:mainfrom
bocharsky-bw:translate-reasons
Feb 22, 2022
Merged

RFC: Add translations for exception reasons#103
jrushlow merged 1 commit intoSymfonyCasts:mainfrom
bocharsky-bw:translate-reasons

Conversation

@bocharsky-bw
Copy link
Member

@bocharsky-bw bocharsky-bw commented Feb 21, 2022

Closes #73

We did this for SymfonyCasts/reset-password-bundle, see SymfonyCasts/reset-password-bundle#206

I suggest something similar here, then I'll create a PR to maker bundle to make it work as it's done with reset-password-bundle, i.e. wrap reasons with Translator::trans() - then all exception reasons in this bundle will be automatically translated out of the box :)

Copy link
Contributor

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks @bocharsky-bw

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.

exception message translations

2 participants