Skip to content

Make "First day of the week" configurable globally

Description

Currently, our datepickers require the consumers to set a first day of the week each time they are used:

<gl-datepicker first-dat="1" ...>...

This leads to inconsistencies in the localization of our UI, becuase often, we forget to explicitly set the first day, issues:

Proposal

Extend the configuration mechanism at src/config.js to include locale-specific configuration, like the "first day of the week".

For example, our gitlab configuration could look like:

applyGitLabUIConfig({
  translations: ...
  firstDayOfWeek: gon.first_day_of_week
})
Edited by Miguel Rincon