Browse Source

fix: allow nlp days to be entered for past week

Today is Wednesday. Normally 'Last Monday' would refer to the monday
of this week. This nlp library interprets it to mean monday from the
previous week. In order for users to have this ability, let's introduce
a 'This' qualifier so users can enter days of the week that are already
behind them. Added this elsewhere for consistency
Gabriel Horner 1 năm trước cách đây
mục cha
commit
5fc3c7453a
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      src/main/frontend/date.cljs

+ 10 - 0
src/main/frontend/date.cljs

@@ -184,10 +184,13 @@
    "Tomorrow"
    "Yesterday"
    "Next week"
+   "This week"
    "Last week"
    "Next month"
+   "This month"
    "Last month"
    "Next year"
+   "This year"
    "Last year"
    "Last Monday"
    "Last Tuesday"
@@ -196,6 +199,13 @@
    "Last Friday"
    "Last Saturday"
    "Last Sunday"
+   "This Monday"
+   "This Tuesday"
+   "This Wednesday"
+   "This Thursday"
+   "This Friday"
+   "This Saturday"
+   "This Sunday"
    "Next Monday"
    "Next Tuesday"
    "Next Wednesday"