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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use formats for team planner as specified
Henriette Dargef42fa5cc55c0
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 36fe43b174e..4801c851474 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -691,9 +691,6 @@ en:first_day: 'First day'last_day: 'Last day'- team_planner:- title: 'Team planner'-text_are_you_sure: "Are you sure?"text_data_lost: "All entered data will be lost."diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.tsindex b6aa5fcff6f..3c0a79a2dbf 100644--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.ts@@ -80,6 +80,10 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,private resizeSubject = new Subject<unknown>();+ text = {+ assignees: this.I18n.t('js.team_planner.label_assignee_plural'),+ };+constructor(private elementRef:ElementRef,private states:States,@@ -178,10 +182,19 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,fixedWeekCount: false,firstDay: this.configuration.startOfWeek(),timeZone: this.configuration.isTimezoneSet() ? this.configuration.timezone() : 'local',- // toolbar: this.buildHeader(),plugins: [resourceTimelinePlugin,],+ headerToolbar: {+ left: 'prev,next today',+ center: 'title',+ right: '',+ },+ titleFormat: {+ year: 'numeric',+ month: 'long',+ day: 'numeric',+ },initialView: 'resourceTimelineWeekDaysOnly',height: 'auto',views: {@@ -189,6 +202,18 @@ export class TeamPlannerComponent extends UntilDestroyedMixin implements OnInit,type: 'resourceTimeline',duration: { weeks: 1 },slotDuration: { days: 1 },+ slotLabelFormat: [+ {+ weekday: 'long',+ day: '2-digit',+ },+ ],+ resourceAreaColumns: [+ {+ field: 'title',+ headerContent: this.text.assignees,+ },+ ],},},events: this.calendarEventsFunction.bind(this) as unknown,diff --git a/modules/team_planner/config/locales/js-en.yml b/modules/team_planner/config/locales/js-en.ymlnew file mode 100644index 00000000000..43b4c02f7d7--- /dev/null+++ b/modules/team_planner/config/locales/js-en.yml@@ -0,0 +1,6 @@+# English strings go here+en:+ js:+ team_planner:+ title: 'Team planner'+ label_assignee_plural: 'Assignees'