You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the ReadableEnumInterface can be translated within the TranslatorInterface, it will be nice to implements also the TranslatableInterface to enums.
To translate readable enums is just matter to have a call as follow:
…ller)
This PR was squashed before being merged into the 2.x-dev branch.
Discussion
----------
Implementation of the translatable interface.
This is the PR for the feature #221.
Commits
-------
53ef960 Implementation of the translatable interface.
Because the
ReadableEnumInterface
can be translated within theTranslatorInterface
, it will be nice to implements also theTranslatableInterface
to enums.To translate readable enums is just matter to have a call as follow:
We then use in PHP:
Or in Twig:
We can maybe create a trait for that:
And in a enums:
The text was updated successfully, but these errors were encountered: