Issue #1837Opened February 26, 2019by SeongwoonHong0 reactions

How to change the label of traits?

Question

I'd like change the labels of triats which are going to be french.

capture

Could you give a piece of example code? Thank you Artur

Answers (3)

NicoEnglerFebruary 27, 20190 reactions

You just need to define the label! :)

          traits: [{
            type: 'text',
            label: 'Title',
            name: 'title',
            placeholder: 'Lorem ipsum',
            changeProp: 1
          }]
SeongwoonHongFebruary 27, 20190 reactions

@NicoEngler Hi Thank you for reply! but I'm trying to modify existing built in traits. i'm not trying to create custom traits..

NicoEnglerFebruary 28, 20190 reactions

From what I have observed, you cannot define a label for the built in traits. Also the name (with uppercase(0)) is used if a label is undefined. That's why I guess your best bet is to define your traits along with proper label. Or better, write a PR for this. 👍

I may be wrong on this, maybe Artur can eloborate further.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.