Summaries: how to change mail label
Please, help:
I am using the summarize function to get totals and averages of certain columns in tables, but it always says: SUMMARY in English in the first columns. How can I change that label?
Not each one label for each summary part, such as SUM, AVERAGE, etc., but the global one.
Thanks a lot.
5 Replies
Have you tried
->label('...')
?
Strange... it looks like it should be translated correctly:
https://github.com/filamentphp/filament/blob/3.x/packages/tables/resources/lang/es/table.php#L39Label is correct for the Average, for example ==> Average::make()->label('Promedio') and for the Sum::make()->label('Suma'), but the whole of both is shown as SUMMARY
Solution
Ok. I found it.
I published translations and in file lang\vendor\filament-tables\es\table.php (es is for my Spanish locale) I could not find the section for SUMMARY, but I copied it from the English file at lang\vendor\filament-tables\en\table.php, changed what I wanted and done!!!
Nice