-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow EasyAdminTwigExtension::representAsString to use Translatable method #6191
Comments
Better use TranslatableInterface |
Indeed !
I made the issue in a hurry, but nice suggestion 🙏🏼
…On Sat, 9 Mar 2024, 6:29 pm Serg N. Kalachev, ***@***.***> wrote:
Better use TranslatableInterface
<https://github.com/symfony/symfony/blob/6.4/src/Symfony/Contracts/Translation/TranslatableInterface.php>
—
Reply to this email directly, view it on GitHub
<#6191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKFGZ4QJNJWURVUUDJFPTTYXNBGZAVCNFSM6AAAAABEOHVMJKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHEZDINJYGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Would you accept & merge a TranslatableInterface proposal @javiereguiluz ? |
@Geolim4 yes! I like this proposal. It's a small code addition, easy to maintain and can help some folks. Thanks! |
Closing as fixed in #6199. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description of what this feature will allow to do:
The method
EasyAdminTwigExtension::representAsString
could be improved to allow us to customize display of Stringable entities with an interface that you could easily create:This way we could easily translate our entities displayed in form and grids.
What's your thoughts @javiereguiluz ?
The text was updated successfully, but these errors were encountered: