How can i translate the content of Forms\Components\Select?
I'm using a list at constants class. Any suggestion?
The translateLabel() just translate the label π€ͺ obviously
Solution:Jump to solution
It's work!!! but one question :c
why i need add "case mother = 1;" ?
what its mean?...
7 Replies
Can you maybe load the data into Select already translated, instead of loading them from the config?
The goal is to use the list in case elements are increased in the future and use that constant list in several places. Or can you show me an example please?
PS: Sorry if my English is not so good π¬
Solution
It's work!!! but one question :c
why i need add "case mother = 1;" ?
what its mean?
To have a value in your table. Right now since you set it to
: int
this would mean your relationship
column is expected to be an int too, if thats what you mean?
You can use string if thats better suited for you though. No harm in that
Check the docs for BackedEnums if you want to learn more
Thank U Team π§ i'm gonna read more about that