derhuerst/parse-human-relative-time

Unable to define weekStartsOn parameter

Open

#4 opened on Feb 24, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (4 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (36 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Some countries might start the week on another day, which can be configured in date-fns weekStartsOn parameter.

Unfortunately, this cannot be passed over here due to fixed lexing: https://github.com/derhuerst/parse-human-relative-time/blob/1fd21930e4568588233f33746984a152ba9bc6ab/date-fns.js#L18

Can we figure a way, a solution, how to support such a parameter?

Contributor guide