diff --git a/assets/i18n/en.json b/assets/i18n/en.json index 70be513..2efb303 100644 --- a/assets/i18n/en.json +++ b/assets/i18n/en.json @@ -175,6 +175,10 @@ "id": "button.snooze", "translation": "Snooze" }, + { + "id": "button.snooze.10min", + "translation": "10 minutes" + }, { "id": "button.snooze.20min", "translation": "20 minutes" @@ -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" @@ -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" @@ -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" diff --git a/server/scheduler.go b/server/scheduler.go index c6b77e3..ac7f46f 100755 --- a/server/scheduler.go +++ b/server/scheduler.go @@ -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",