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

Did you find this page helpful?