F
Filament•11mo ago
Gaspar

How to translate label "updated_at"?

Tables\Columns\TextColumn::make('updated_at')->translateLabel()
Tables\Columns\TextColumn::make('updated_at')->translateLabel()
My language json has:
"Updated at": "My translation..",
"Updated at": "My translation..",
This solution doesn't work - my label remains untranslated ("Updated at"). Other translations work.
7 Replies
LeandroFerreira
LeandroFerreira•11mo ago
are you sure? This should work
Gaspar
GasparOP•11mo ago
It seems the error occurs then you have more than 1 column with same name! Strange.
LeandroFerreira
LeandroFerreira•11mo ago
how? A table with two columns with the same name? It should be unique..
Gaspar
GasparOP•11mo ago
Why unique?
LeandroFerreira
LeandroFerreira•11mo ago
Because columns are unique 🤷‍♂️
Gaspar
GasparOP•11mo ago
Maybe it is wording. I read from docs that “names should be unique”.
Dennis Koch
Dennis Koch•11mo ago
I read from docs that “names should be unique”.
And this is the name of your column. They serve as a unique identifier for your column
Want results from more Discord servers?
Add your server