forked from andresaraujo/timeago.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_messages.dart
111 lines (83 loc) · 2.96 KB
/
my_messages.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import 'package:intl/intl.dart';
import 'package:timeago/src/messages/lookupmessages.dart';
/// Myanmar Messages
/// မြန်မာစာ
class MyMessages implements LookupMessages {
@override
String prefixAgo() => '';
@override
String prefixFromNow() => 'ယခုမှစ၍ ';
@override
String suffixAgo() => '';
@override
String suffixFromNow() => '';
@override
String lessThanOneMinute(int seconds) => 'စောနက';
@override
String aboutAMinute(int minutes) => 'လွန်ခဲ့သော ၁ မိနစ်ခန့်';
@override
String minutes(int minutes) =>
'လွန်ခဲ့သော ${NumberFormat.compact(locale: 'my').format(minutes)} မိနစ်';
@override
String aboutAnHour(int minutes) => 'လွန်ခဲ့သော ၁ နာရီခန့်';
@override
String hours(int hours) =>
'လွန်ခဲ့သော ${NumberFormat.compact(locale: 'my').format(hours)} နာရီ';
@override
String aDay(int hours) => 'လွန်ခဲ့သော ၁ ရက်';
@override
String days(int days) =>
'လွန်ခဲ့သော ${NumberFormat.compact(locale: 'my').format(days)} ရက်';
@override
String aboutAMonth(int days) => 'လွန်ခဲ့သော ၁ လခန့်';
@override
String months(int months) =>
'လွန်ခဲ့သော ${NumberFormat.compact(locale: 'my').format(months)} လ';
@override
String aboutAYear(int year) => 'လွန်ခဲ့သော ၁ နှစ်ခန့်';
@override
String years(int years) =>
'လွန်ခဲ့သော ${NumberFormat.compact(locale: 'my').format(years)} နှစ်';
@override
String wordSeparator() => ' ';
}
/// Myanmar short Messages
class MyShortMessages implements LookupMessages {
@override
String prefixAgo() => '';
@override
String prefixFromNow() => '';
@override
String suffixAgo() => '';
@override
String suffixFromNow() => '';
@override
String lessThanOneMinute(int seconds) => 'စောနက';
@override
String aboutAMinute(int minutes) => '၁မိနစ်';
@override
String minutes(int minutes) =>
'${NumberFormat.compact(locale: 'my').format(minutes)}မိနစ်';
@override
String aboutAnHour(int minutes) => '၁နာရီ';
@override
String hours(int hours) =>
'${NumberFormat.compact(locale: 'my').format(hours)}နာရီ';
@override
String aDay(int hours) => '၁ရက်';
@override
String days(int days) =>
'${NumberFormat.compact(locale: 'my').format(days)}ရက်';
@override
String aboutAMonth(int days) => '၁လ';
@override
String months(int months) =>
'${NumberFormat.compact(locale: 'my').format(months)}လ';
@override
String aboutAYear(int year) => '၁နှစ်';
@override
String years(int years) =>
'${NumberFormat.compact(locale: 'my').format(years)}နှစ်';
@override
String wordSeparator() => ' ';
}