Announcement

Collapse
No announcement yet.

What global function to call to get the label of the object?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What global function to call to get the label of the object?

    Hi All,

    What global function to call to get the label of the object? Like this.translate('<field>', '<label of field>') or is there any other function?

    Thanks

  • #2
    Hi

    client/src/language.js
    translate: function (name, category, scope) {/**/}
    translateOption: function (value, field, scope) {/**/}

    if this.language is defined, you can use it. If not, use this.getLanguage()

    for example this.getLanguage().translate(<fieldName>, 'fields', <entityName>)
    Last edited by tanya; 03-15-2017, 01:45 PM.

    Comment

    Working...
    X