Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

properties in meta.dataset are exposed in alllowercase

Sven R. Kunzeea6f6da6cc2f
diff --git a/frontend/src/app/core/setup/init-locale.ts b/frontend/src/app/core/setup/init-locale.ts
index aed8e785b61..5379a7a4ed0 100644
--- a/frontend/src/app/core/setup/init-locale.ts
+++ b/frontend/src/app/core/setup/init-locale.ts
@@ -31,8 +31,8 @@ import * as moment from 'moment';
export function initializeLocale() {
const meta = document.querySelector('meta[name=openproject_initializer]') as HTMLMetaElement;
const locale = meta.dataset.locale || 'en';
- const firstDayOfWeek = parseInt(meta.dataset.firstDayOfWeek || '', 10);
- const firstWeekOfYear = parseInt(meta.dataset.firstWeekOfYear || '', 10);
+ const firstDayOfWeek = parseInt(meta.dataset.firstdayofweek || '', 10); // properties of meta.dataset are exposed in lowercase
+ const firstWeekOfYear = parseInt(meta.dataset.firstweekofyear || '', 10); // properties of meta.dataset are exposed in lowercase
I18n.locale = locale;