Skip to content

Commit

Permalink
fix(reports): fix javascript error
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jun 17, 2024
1 parent 75199f0 commit c7c0640
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions weblate/static/loader-bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,17 +1414,26 @@ $(function () {
],
},
ranges: {
gettext("Today"): [moment(), moment()],
gettext("Yesterday"): [moment().subtract(1, "days"), moment().subtract(1, "days")],
gettext("Last 7 days"): [moment().subtract(6, "days"), moment()],
gettext("Last 30 days"): [moment().subtract(29, "days"), moment()],
getttext("This month"): [moment().startOf("month"), moment().endOf("month")],
gettext("Last month"): [
[gettext("Today")]: [moment(), moment()],
[gettext("Yesterday")]: [
moment().subtract(1, "days"),
moment().subtract(1, "days"),
],
[gettext("Last 7 days")]: [moment().subtract(6, "days"), moment()],
[gettext("Last 30 days")]: [moment().subtract(29, "days"), moment()],
[gettext("This month")]: [
moment().startOf("month"),
moment().endOf("month"),
],
[gettext("Last month")]: [
moment().subtract(1, "month").startOf("month"),
moment().subtract(1, "month").endOf("month"),
],
gettext("This year"): [moment().startOf("year"), moment().endOf("year")],
gettext("Last year"): [
[gettext("This year")]: [
moment().startOf("year"),
moment().endOf("year"),
],
[gettext("Last year")]: [
moment().subtract(1, "year").startOf("year"),
moment().subtract(1, "year").endOf("year"),
],
Expand Down

0 comments on commit c7c0640

Please sign in to comment.