LivaDate translation

Hi!

I migrate to use Live Data Macro

but has problems with translate columns titles

When I use Live table in code there is mapping for fields

but it’s not working for live data
could any one tell how to set up translation?

There is not information about it in documentation.

Hello @George,

I think the closest of what you had the habit to do with Livetable is the following.

{{velocity}}
#set ($config = {
  "meta": {
    "propertyDescriptors": [{
      "id": "_avatar",
      "name": "Avatar!"
    },{
      "id": "doc.name",
      "name": "Doc Name"
    }]
  }
})
{{liveData 
  id="users" 
  properties="_avatar,doc.name"
  source="liveTable"
  sourceParameters="className=XWiki.XWikiUsers"
}}
$jsontool.serialize($config)
{{/liveData}}
{{/velocity}}

Of course feel free to use $services.localization.render to assign translated values with a key of your choice to the names of the propertyDescriptors.