Fixed language (#131)
Fixed language when English is not the default language
This commit is contained in:
parent
1f5d842ddb
commit
08edaa3d22
@ -195,10 +195,11 @@ export default class Bar {
|
|||||||
show_popup() {
|
show_popup() {
|
||||||
if (this.gantt.bar_being_dragged) return;
|
if (this.gantt.bar_being_dragged) return;
|
||||||
|
|
||||||
const start_date = date_utils.format(this.task._start, 'MMM D');
|
const start_date = date_utils.format(this.task._start, 'MMM D', this.gantt.options.language);
|
||||||
const end_date = date_utils.format(
|
const end_date = date_utils.format(
|
||||||
date_utils.add(this.task._end, -1, 'second'),
|
date_utils.add(this.task._end, -1, 'second'),
|
||||||
'MMM D'
|
'MMM D',
|
||||||
|
this.gantt.options.language
|
||||||
);
|
);
|
||||||
const subtitle = start_date + ' - ' + end_date;
|
const subtitle = start_date + ' - ' + end_date;
|
||||||
|
|
||||||
@ -206,7 +207,7 @@ export default class Bar {
|
|||||||
target_element: this.$bar,
|
target_element: this.$bar,
|
||||||
title: this.task.name,
|
title: this.task.name,
|
||||||
subtitle: subtitle,
|
subtitle: subtitle,
|
||||||
task: this.task
|
task: this.task,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user