-
Notifications
You must be signed in to change notification settings - Fork 0
/
lang_english.go
57 lines (43 loc) · 1.13 KB
/
lang_english.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package timeagoo;
import "time"
type EnglishDialogs struct {
}
func (EnglishDialogs) Now() string {
return "Right now";
}
func (EnglishDialogs) Recently() string {
return "Recently"
}
func (EnglishDialogs) Soon() string {
return "Soon"
}
func (EnglishDialogs) InXSeconds() string {
return "In about %s seconds"
}
func (EnglishDialogs) XSecondsAgo() string {
return "About %s seconds ago"
}
func (EnglishDialogs) InXMinutes() string {
return "In about %s minutes"
}
func (EnglishDialogs) InOneMinute() string {
return "In about 1 minute"
}
func (EnglishDialogs) OneMinuteAgo() string {
return "About 1 minute ago"
}
func (EnglishDialogs) XMinutesAgo() string {
return "About %s minutes ago"
}
func (EnglishDialogs) FormatTodayDate(t time.Time) string {
return t.Format("Today 3:04PM")
}
func (EnglishDialogs) FormatYesterdayDate(t time.Time) string {
return t.Format("Yesterday 3:04PM")
}
func (EnglishDialogs) FormatTomorrowDate(t time.Time) string {
return t.Format("Tomorrow 3:04PM")
}
func (EnglishDialogs) FormatDefaultDateFormat(t time.Time) string {
return t.Format("Mon Jan 2 15:04:05")
}