F
Filament•5mo ago
G

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•5mo ago
are you sure? This should work
G
G•5mo ago
It seems the error occurs then you have more than 1 column with same name! Strange.
LeandroFerreira
LeandroFerreira•5mo ago
how? A table with two columns with the same name? It should be unique..
G
G•5mo ago
Why unique?
LeandroFerreira
LeandroFerreira•5mo ago
Because columns are unique 🤷‍♂️
G
G•5mo ago
Maybe it is wording. I read from docs that “names should be unique”.
Dennis Koch
Dennis Koch•5mo 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