Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

German Language Customization #378

Open
simongiesen opened this issue Feb 14, 2024 · 2 comments
Open

German Language Customization #378

simongiesen opened this issue Feb 14, 2024 · 2 comments

Comments

@simongiesen
Copy link

Hi folks,

I am trying to localize my project into German. No success. What I am trying:

var gantt = new Gantt("#gantt", tasks, {
			header_height: 50,
			column_width: 30,
			step: 24,
			view_modes: ['Quarter Day', 'Half Day', 'Day', 'Week', 'Month'],
			bar_height: 20,
			bar_corner_radius: 3,
			arrow_curve: 5,
			padding: 18,
			view_mode: 'Month',
			date_format: 'YYYY-MM-DD',
			language: 'de',  
			custom_popup_html: null,
		});

language:'de' is throwing the following error:

Uncaught TypeError: Cannot read properties of undefined (reading '0')
at Object.format (frappe-gantt.js:177:36)
at Gantt.get_date_info (frappe-gantt.js:1510:45)
at frappe-gantt.js:1498:28
at Array.map ()
at Gantt.get_dates_to_draw (frappe-gantt.js:1497:34)
at Gantt.make_dates (frappe-gantt.js:1467:31)
at Gantt.render (frappe-gantt.js:1300:14)
at Gantt.change_view_mode (frappe-gantt.js:1201:14)
at new Gantt (frappe-gantt.js:1048:14)

Please help ... kind regards!

@simongiesen
Copy link
Author

PS: My sample data is

var tasks = [
		{
			id: '112240117000',
			name: 'TA903A FE',
			start: '2024-02-01',
			end: '2024-02-10',
			progress: 20
		},
		{
			id: '050240111000',
			name: 'AA745 254µm unpoliert FE',
			start: '2024-02-05',
			end: '2024-02-15',
			progress: 40
		}
		];

@tommasoiovane
Copy link

The same happens with italian, but it seems to work with es and fr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants