Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pendulum/locales/en/locale.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

3 statements  

1from __future__ import annotations 

2 

3from pendulum.locales.en.custom import translations as custom_translations 

4 

5 

6""" 

7en locale file. 

8 

9It has been generated automatically and must not be modified directly. 

10""" 

11 

12 

13locale = { 

14 "plural": lambda n: "one" 

15 if ((n == n and (n == 1)) and (0 == 0 and (0 == 0))) 

16 else "other", 

17 "ordinal": lambda n: "few" 

18 if ( 

19 ((n % 10) == (n % 10) and ((n % 10) == 3)) 

20 and (not ((n % 100) == (n % 100) and ((n % 100) == 13))) 

21 ) 

22 else "one" 

23 if ( 

24 ((n % 10) == (n % 10) and ((n % 10) == 1)) 

25 and (not ((n % 100) == (n % 100) and ((n % 100) == 11))) 

26 ) 

27 else "two" 

28 if ( 

29 ((n % 10) == (n % 10) and ((n % 10) == 2)) 

30 and (not ((n % 100) == (n % 100) and ((n % 100) == 12))) 

31 ) 

32 else "other", 

33 "translations": { 

34 "days": { 

35 "abbreviated": { 

36 0: "Mon", 

37 1: "Tue", 

38 2: "Wed", 

39 3: "Thu", 

40 4: "Fri", 

41 5: "Sat", 

42 6: "Sun", 

43 }, 

44 "narrow": {0: "M", 1: "T", 2: "W", 3: "T", 4: "F", 5: "S", 6: "S"}, 

45 "short": {0: "Mo", 1: "Tu", 2: "We", 3: "Th", 4: "Fr", 5: "Sa", 6: "Su"}, 

46 "wide": { 

47 0: "Monday", 

48 1: "Tuesday", 

49 2: "Wednesday", 

50 3: "Thursday", 

51 4: "Friday", 

52 5: "Saturday", 

53 6: "Sunday", 

54 }, 

55 }, 

56 "months": { 

57 "abbreviated": { 

58 1: "Jan", 

59 2: "Feb", 

60 3: "Mar", 

61 4: "Apr", 

62 5: "May", 

63 6: "Jun", 

64 7: "Jul", 

65 8: "Aug", 

66 9: "Sep", 

67 10: "Oct", 

68 11: "Nov", 

69 12: "Dec", 

70 }, 

71 "narrow": { 

72 1: "J", 

73 2: "F", 

74 3: "M", 

75 4: "A", 

76 5: "M", 

77 6: "J", 

78 7: "J", 

79 8: "A", 

80 9: "S", 

81 10: "O", 

82 11: "N", 

83 12: "D", 

84 }, 

85 "wide": { 

86 1: "January", 

87 2: "February", 

88 3: "March", 

89 4: "April", 

90 5: "May", 

91 6: "June", 

92 7: "July", 

93 8: "August", 

94 9: "September", 

95 10: "October", 

96 11: "November", 

97 12: "December", 

98 }, 

99 }, 

100 "units": { 

101 "year": {"one": "{0} year", "other": "{0} years"}, 

102 "month": {"one": "{0} month", "other": "{0} months"}, 

103 "week": {"one": "{0} week", "other": "{0} weeks"}, 

104 "day": {"one": "{0} day", "other": "{0} days"}, 

105 "hour": {"one": "{0} hour", "other": "{0} hours"}, 

106 "minute": {"one": "{0} minute", "other": "{0} minutes"}, 

107 "second": {"one": "{0} second", "other": "{0} seconds"}, 

108 "microsecond": {"one": "{0} microsecond", "other": "{0} microseconds"}, 

109 }, 

110 "relative": { 

111 "year": { 

112 "future": {"other": "in {0} years", "one": "in {0} year"}, 

113 "past": {"other": "{0} years ago", "one": "{0} year ago"}, 

114 }, 

115 "month": { 

116 "future": {"other": "in {0} months", "one": "in {0} month"}, 

117 "past": {"other": "{0} months ago", "one": "{0} month ago"}, 

118 }, 

119 "week": { 

120 "future": {"other": "in {0} weeks", "one": "in {0} week"}, 

121 "past": {"other": "{0} weeks ago", "one": "{0} week ago"}, 

122 }, 

123 "day": { 

124 "future": {"other": "in {0} days", "one": "in {0} day"}, 

125 "past": {"other": "{0} days ago", "one": "{0} day ago"}, 

126 }, 

127 "hour": { 

128 "future": {"other": "in {0} hours", "one": "in {0} hour"}, 

129 "past": {"other": "{0} hours ago", "one": "{0} hour ago"}, 

130 }, 

131 "minute": { 

132 "future": {"other": "in {0} minutes", "one": "in {0} minute"}, 

133 "past": {"other": "{0} minutes ago", "one": "{0} minute ago"}, 

134 }, 

135 "second": { 

136 "future": {"other": "in {0} seconds", "one": "in {0} second"}, 

137 "past": {"other": "{0} seconds ago", "one": "{0} second ago"}, 

138 }, 

139 }, 

140 "day_periods": { 

141 "midnight": "midnight", 

142 "am": "AM", 

143 "noon": "noon", 

144 "pm": "PM", 

145 "morning1": "in the morning", 

146 "afternoon1": "in the afternoon", 

147 "evening1": "in the evening", 

148 "night1": "at night", 

149 }, 

150 "week_data": { 

151 "min_days": 1, 

152 "first_day": 6, 

153 "weekend_start": 5, 

154 "weekend_end": 6, 

155 }, 

156 }, 

157 "custom": custom_translations, 

158}