forked from andresaraujo/timeago.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlookupmessages.dart
50 lines (35 loc) · 1.21 KB
/
lookupmessages.dart
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
/// [LookupMessages] template for any language
abstract class LookupMessages {
/// Example: `prefixAgo()` 1 min `suffixAgo()`
String prefixAgo();
/// Example: `prefixFromNow()` 1 min `suffixFromNow()`
String prefixFromNow();
/// Example: `prefixAgo()` 1 min `suffixAgo()`
String suffixAgo();
/// Example: `prefixFromNow()` 1 min `suffixFromNow()`
String suffixFromNow();
/// Format when time is less than a minute
String lessThanOneMinute(int seconds);
/// Format when time is about a minute
String aboutAMinute(int minutes);
/// Format when time is in minutes
String minutes(int minutes);
/// Format when time is about an hour
String aboutAnHour(int minutes);
/// Format when time is in hours
String hours(int hours);
/// Format when time is a day
String aDay(int hours);
/// Format when time is in days
String days(int days);
/// Format when time is about a month
String aboutAMonth(int days);
/// Format when time is in months
String months(int months);
/// Format when time is about a year
String aboutAYear(int year);
/// Format when time is about a year
String years(int years);
/// word separator when words are concatenated
String wordSeparator() => ' ';
}