Enhancing Laravel: Introducing Enum Translation for a Seamless Developer Experience #49464
Unanswered
domthomas-dev
asked this question in
Ideas
Replies: 1 comment
-
Something like this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Laravel Core Team,
I've got a suggestion that could level up the developer experience with the framework: how about adding a feature to translate enums? Ever thought about it?
Enums are super handy, but things get a bit tricky when we're dealing with different languages. Having a function to translate enums directly would be a game-changer!
Just imagine being able to set translations for each enum value in language files. It would make managing multilingual apps a breeze without making the code overly complicated.
It would be awesome if you could consider this idea for upcoming Laravel versions. It would make developers' lives so much easier and amp up the framework's adaptability.
I'm totally up for a more detailed discussion if you're interested! Thanks for everything you do to evolve Laravel.
I can work on it if you think it's a good idea.
Thanks
Dom
Beta Was this translation helpful? Give feedback.
All reactions