Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

additional times in the interactive dialog #153

Merged
merged 1 commit into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 128 additions & 0 deletions assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@
"id": "button.snooze",
"translation": "Snooze"
},
{
"id": "button.snooze.10min",
"translation": "10 minutes"
},
{
"id": "button.snooze.20min",
"translation": "20 minutes"
Expand All @@ -183,6 +187,18 @@
"id": "snooze.20min",
"translation": "Snoozed. I’ll remind you \"{{.Message}}\" in 20 minutes"
},
{
"id": "button.snooze.30min",
"translation": "30 minutes"
},
{
"id": "button.snooze.40min",
"translation": "40 minutes"
},
{
"id": "button.snooze.50min",
"translation": "50 minutes"
},
{
"id": "button.snooze.1hr",
"translation": "1 hour"
Expand All @@ -191,6 +207,10 @@
"id": "snooze.1hr",
"translation": "Snoozed. I’ll remind you \"{{.Message}}\" in 1 hour"
},
{
"id": "button.snooze.2hr",
"translation": "2 hours"
},
{
"id": "button.snooze.3hr",
"translation": "3 hours"
Expand All @@ -199,10 +219,118 @@
"id": "snooze.3hr",
"translation": "Ok! I’ll remind you \"{{.Message}}\" in 3 hours"
},
{
"id": "button.snooze.4hr",
"translation": "4 hours"
},
{
"id": "button.snooze.5hr",
"translation": "5 hours"
},
{
"id": "button.snooze.6hr",
"translation": "6 hours"
},
{
"id": "button.snooze.7hr",
"translation": "7 hours"
},
{
"id": "button.snooze.8hr",
"translation": "8 hours"
},
{
"id": "button.snooze.9hr",
"translation": "9 hours"
},
{
"id": "button.snooze.10hr",
"translation": "10 hours"
},
{
"id": "button.snooze.11hr",
"translation": "11 hours"
},
{
"id": "button.snooze.12hr",
"translation": "12 hours"
},
{
"id": "button.snooze.13hr",
"translation": "13 hours"
},
{
"id": "button.snooze.14hr",
"translation": "14 hours"
},
{
"id": "button.snooze.15hr",
"translation": "15 hours"
},
{
"id": "button.snooze.16hr",
"translation": "16 hours"
},
{
"id": "button.snooze.17hr",
"translation": "17 hours"
},
{
"id": "button.snooze.18hr",
"translation": "18 hours"
},
{
"id": "button.snooze.19hr",
"translation": "19 hours"
},
{
"id": "button.snooze.20hr",
"translation": "20 hours"
},
{
"id": "button.snooze.21hr",
"translation": "21 hours"
},
{
"id": "button.snooze.22hr",
"translation": "22 hours"
},
{
"id": "button.snooze.23hr",
"translation": "23 hours"
},
{
"id": "button.snooze.tomorrow",
"translation": "Tomorrow at 9AM"
},
{
"id": "button.snooze.1day",
"translation": "1 day"
},
{
"id": "button.snooze.2day",
"translation": "2 days"
},
{
"id": "button.snooze.3day",
"translation": "3 days"
},
{
"id": "button.snooze.4day",
"translation": "4 days"
},
{
"id": "button.snooze.5day",
"translation": "5 days"
},
{
"id": "button.snooze.6day",
"translation": "6 days"
},
{
"id": "button.snooze.7day",
"translation": "7 days"
},
{
"id": "snooze.tomorrow",
"translation": "Snoozed. I’ll remind you \"{{.Message}}\" at 9am tomorrow"
Expand Down
128 changes: 128 additions & 0 deletions server/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,22 +141,150 @@ func (p *Plugin) InteractiveSchedule(triggerId string, user *model.User) {
Type: "select",
SubType: "select",
Options: []*model.PostActionOptions{
{
Text: T("button.snooze.10min"),
Value: "10min",
},
{
Text: T("button.snooze.20min"),
Value: "20min",
},
{
Text: T("button.snooze.30min"),
Value: "30min",
},
{
Text: T("button.snooze.40min"),
Value: "40min",
},
{
Text: T("button.snooze.50min"),
Value: "50min",
},
{
Text: T("button.snooze.1hr"),
Value: "1hr",
},
{
Text: T("button.snooze.2hr"),
Value: "2hr",
},
{
Text: T("button.snooze.3hr"),
Value: "3hr",
},
{
Text: T("button.snooze.4hr"),
Value: "4hr",
},
{
Text: T("button.snooze.5hr"),
Value: "5hr",
},
{
Text: T("button.snooze.6hr"),
Value: "6hr",
},
{
Text: T("button.snooze.7hr"),
Value: "7hr",
},
{
Text: T("button.snooze.8hr"),
Value: "8hr",
},
{
Text: T("button.snooze.9hr"),
Value: "9hr",
},
{
Text: T("button.snooze.10hr"),
Value: "10hr",
},
{
Text: T("button.snooze.11hr"),
Value: "11hr",
},
{
Text: T("button.snooze.12hr"),
Value: "12hr",
},
{
Text: T("button.snooze.13hr"),
Value: "13hr",
},
{
Text: T("button.snooze.14hr"),
Value: "14hr",
},
{
Text: T("button.snooze.15hr"),
Value: "15hr",
},
{
Text: T("button.snooze.16hr"),
Value: "16hr",
},
{
Text: T("button.snooze.17hr"),
Value: "17hr",
},
{
Text: T("button.snooze.18hr"),
Value: "18hr",
},
{
Text: T("button.snooze.19hr"),
Value: "19hr",
},
{
Text: T("button.snooze.20hr"),
Value: "20hr",
},
{
Text: T("button.snooze.21hr"),
Value: "21hr",
},
{
Text: T("button.snooze.22hr"),
Value: "22hr",
},
{
Text: T("button.snooze.23hr"),
Value: "23hr",
},
{
Text: T("button.snooze.tomorrow"),
Value: "tomorrow",
},
{
Text: T("button.snooze.1day"),
Value: "1day",
},
{
Text: T("button.snooze.2day"),
Value: "2day",
},
{
Text: T("button.snooze.3day"),
Value: "3day",
},
{
Text: T("button.snooze.4day"),
Value: "4day",
},
{
Text: T("button.snooze.5day"),
Value: "5day",
},
{
Text: T("button.snooze.6day"),
Value: "6day",
},
{
Text: T("button.snooze.7day"),
Value: "7day",
},
{
Text: T("button.snooze.nextweek"),
Value: "nextweek",
Expand Down