csv-header and online time translation

This commit is contained in:
MichaelDvP
2022-09-06 19:43:42 +02:00
parent c2ccb4edda
commit 70f94322ee
2 changed files with 20 additions and 3 deletions

View File

@@ -328,10 +328,10 @@ const DashboardData: FC = () => {
const handleDownloadCsv = () => {
const columns = [
{ accessor: (dv: any) => dv.id.slice(2), name: 'Entity' },
{ accessor: (dv: any) => dv.id.slice(2), name: LL.ENTITY_NAME() },
{
accessor: (dv: any) => (typeof dv.v === 'number' ? new Intl.NumberFormat().format(dv.v) : dv.v),
name: 'Value'
name: LL.VALUE()
},
{ accessor: (dv: any) => DeviceValueUOM_s[dv.u], name: 'UoM' }
];