-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlang_en.go
75 lines (74 loc) · 1.49 KB
/
lang_en.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package humanize
// English l10n. For description see lang_structs.go.
var langEn = languageProvider{
times: times{
ranges: []timeRanges{
{Minute, 1, false, 0, "1 second", []timeRange{
{LongTime, "%d seconds"},
}},
{Hour, Minute, false, 0, "1 minute", []timeRange{
{LongTime, "%d minutes"},
}},
{Day, Hour, false, 0, "1 hour", []timeRange{
{LongTime, "%d hours"},
}},
{Week, Day, false, 0, "1 day", []timeRange{
{LongTime, "%d days"},
}},
{Month, Week, true, 0, "1 week", []timeRange{
{LongTime, "%d weeks"},
}},
{Year, Month, false, 0, "1 month", []timeRange{
{LongTime, "%d months"},
}},
{LongTime, Year, false, 0, "1 year", []timeRange{
{LongTime, "%d years"},
}},
},
future: "in %s",
past: "%s ago",
now: "now",
remainderSep: "and",
units: inputTimeUnits{
"second": 1,
"minute": Minute,
"hour": Hour,
"day": Day,
"week": Week,
"month": Month,
"year": Year,
},
},
prefixes: map[string]string{
// SI.
"Y": "yotta",
"Z": "zetta",
"E": "exa",
"P": "peta",
"T": "tera",
"G": "giga",
"M": "mega",
"k": "kilo",
"h": "hecto",
"da": "deca",
"d": "deci",
"c": "centi",
"m": "milli",
"µ": "micro",
"n": "nano",
"p": "pico",
"f": "femto",
"a": "atto",
"z": "zepto",
"y": "yocto",
// Bit.
"Yi": "yobi",
"Zi": "zebi",
"Ei": "exbi",
"Pi": "pebi",
"Ti": "tebi",
"Gi": "gibi",
"Mi": "mebi",
"Ki": "kibi",
},
}