设置汉化后,不是所有的字段都会汉化,

!

想使用原生的js方法,也没有打开灯箱触发事件;怎么搞啊~!!!

Hi,
You need to specify a label for the section. In my example for the split section:

gantt.config.lightbox.project_sections = [
    ...
    { name: "split", type: "checkbox", map_to: "render", options: [
        { key: "split", label: "Split Task" }
    ]},
    ...
];

It looks like this:

gantt.locale.labels.section_split = "Display";

Please see an example: https://snippet.dhtmlx.com/7i51tt3v

1 Like

gantt.locale.labels.section_split = ‘拆分任务’

{

name: ‘split’,

type: ‘checkbox’,

map_to: ‘render’,

options: [{ key: ‘split’, label: ‘拆分任务’ }]

},

我已经按照这样设置了,但是还是不行呀,请指教

Hi,
Could you reproduce the issue in the snippet and send it to me? Please describe additional details or provide access to a demo.