neuronetio / gantt-elastic

Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]
https://neuronet.io/gantt-elastic/
MIT License
1.3k stars 315 forks source link

'options-locale' does not take effect #80

Closed yifire closed 5 years ago

yifire commented 5 years ago

I am having a problem during use, the options-locale is set but it does not take effect. This is my code: `

</gantt-elastic>`

locale: { code: "zh-cn", Now: "今天", "X-Scale": "列宽", "Y-Scale": "行高", "Task list width": "标题宽度", "Before/After": "调整时间范围", "Display task list": "是否显示项目名称" } result: image

OS: windows 10 1903 Browser: chrome 77.0.3865.90 Version: 1.0.10 Vue:2.6.10

vasilek commented 5 years ago

Hi! You need to add props 'options' to gantt-header. It's look like this: <gantt-elastic :options="options" :tasks="tasks"> <gantt-header slot="header" :options="options"></gantt-header> </gantt-elastic>

neuronetio commented 5 years ago

if the problem still occurs - respond here and I will reopen this issue