derhuerst/parse-human-relative-time
View on GitHubUnable to define weekStartsOn parameter
Open
#4 opened on Feb 24, 2022
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?