locale.py 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. from __future__ import annotations
  2. from pendulum.locales.en_us.custom import translations as custom_translations
  3. """
  4. en-us locale file.
  5. It has been generated automatically and must not be modified directly.
  6. """
  7. locale = {
  8. "plural": lambda n: "one"
  9. if ((n == n and (n == 1)) and (0 == 0 and (0 == 0)))
  10. else "other",
  11. "ordinal": lambda n: "few"
  12. if (
  13. ((n % 10) == (n % 10) and ((n % 10) == 3))
  14. and (not ((n % 100) == (n % 100) and ((n % 100) == 13)))
  15. )
  16. else "one"
  17. if (
  18. ((n % 10) == (n % 10) and ((n % 10) == 1))
  19. and (not ((n % 100) == (n % 100) and ((n % 100) == 11)))
  20. )
  21. else "two"
  22. if (
  23. ((n % 10) == (n % 10) and ((n % 10) == 2))
  24. and (not ((n % 100) == (n % 100) and ((n % 100) == 12)))
  25. )
  26. else "other",
  27. "translations": {
  28. "days": {
  29. "abbreviated": {
  30. 0: "Mon",
  31. 1: "Tue",
  32. 2: "Wed",
  33. 3: "Thu",
  34. 4: "Fri",
  35. 5: "Sat",
  36. 6: "Sun",
  37. },
  38. "narrow": {
  39. 0: "M",
  40. 1: "T",
  41. 2: "W",
  42. 3: "T",
  43. 4: "F",
  44. 5: "S",
  45. 6: "S",
  46. },
  47. "short": {
  48. 0: "Mo",
  49. 1: "Tu",
  50. 2: "We",
  51. 3: "Th",
  52. 4: "Fr",
  53. 5: "Sa",
  54. 6: "Su",
  55. },
  56. "wide": {
  57. 0: "Monday",
  58. 1: "Tuesday",
  59. 2: "Wednesday",
  60. 3: "Thursday",
  61. 4: "Friday",
  62. 5: "Saturday",
  63. 6: "Sunday",
  64. },
  65. },
  66. "months": {
  67. "abbreviated": {
  68. 1: "Jan",
  69. 2: "Feb",
  70. 3: "Mar",
  71. 4: "Apr",
  72. 5: "May",
  73. 6: "Jun",
  74. 7: "Jul",
  75. 8: "Aug",
  76. 9: "Sep",
  77. 10: "Oct",
  78. 11: "Nov",
  79. 12: "Dec",
  80. },
  81. "narrow": {
  82. 1: "J",
  83. 2: "F",
  84. 3: "M",
  85. 4: "A",
  86. 5: "M",
  87. 6: "J",
  88. 7: "J",
  89. 8: "A",
  90. 9: "S",
  91. 10: "O",
  92. 11: "N",
  93. 12: "D",
  94. },
  95. "wide": {
  96. 1: "January",
  97. 2: "February",
  98. 3: "March",
  99. 4: "April",
  100. 5: "May",
  101. 6: "June",
  102. 7: "July",
  103. 8: "August",
  104. 9: "September",
  105. 10: "October",
  106. 11: "November",
  107. 12: "December",
  108. },
  109. },
  110. "units": {
  111. "year": {
  112. "one": "{0} year",
  113. "other": "{0} years",
  114. },
  115. "month": {
  116. "one": "{0} month",
  117. "other": "{0} months",
  118. },
  119. "week": {
  120. "one": "{0} week",
  121. "other": "{0} weeks",
  122. },
  123. "day": {
  124. "one": "{0} day",
  125. "other": "{0} days",
  126. },
  127. "hour": {
  128. "one": "{0} hour",
  129. "other": "{0} hours",
  130. },
  131. "minute": {
  132. "one": "{0} minute",
  133. "other": "{0} minutes",
  134. },
  135. "second": {
  136. "one": "{0} second",
  137. "other": "{0} seconds",
  138. },
  139. "microsecond": {
  140. "one": "{0} microsecond",
  141. "other": "{0} microseconds",
  142. },
  143. },
  144. "relative": {
  145. "year": {
  146. "future": {
  147. "other": "in {0} years",
  148. "one": "in {0} year",
  149. },
  150. "past": {
  151. "other": "{0} years ago",
  152. "one": "{0} year ago",
  153. },
  154. },
  155. "month": {
  156. "future": {
  157. "other": "in {0} months",
  158. "one": "in {0} month",
  159. },
  160. "past": {
  161. "other": "{0} months ago",
  162. "one": "{0} month ago",
  163. },
  164. },
  165. "week": {
  166. "future": {
  167. "other": "in {0} weeks",
  168. "one": "in {0} week",
  169. },
  170. "past": {
  171. "other": "{0} weeks ago",
  172. "one": "{0} week ago",
  173. },
  174. },
  175. "day": {
  176. "future": {
  177. "other": "in {0} days",
  178. "one": "in {0} day",
  179. },
  180. "past": {
  181. "other": "{0} days ago",
  182. "one": "{0} day ago",
  183. },
  184. },
  185. "hour": {
  186. "future": {
  187. "other": "in {0} hours",
  188. "one": "in {0} hour",
  189. },
  190. "past": {
  191. "other": "{0} hours ago",
  192. "one": "{0} hour ago",
  193. },
  194. },
  195. "minute": {
  196. "future": {
  197. "other": "in {0} minutes",
  198. "one": "in {0} minute",
  199. },
  200. "past": {
  201. "other": "{0} minutes ago",
  202. "one": "{0} minute ago",
  203. },
  204. },
  205. "second": {
  206. "future": {
  207. "other": "in {0} seconds",
  208. "one": "in {0} second",
  209. },
  210. "past": {
  211. "other": "{0} seconds ago",
  212. "one": "{0} second ago",
  213. },
  214. },
  215. },
  216. "day_periods": {
  217. "midnight": "midnight",
  218. "am": "AM",
  219. "noon": "noon",
  220. "pm": "PM",
  221. "morning1": "in the morning",
  222. "afternoon1": "in the afternoon",
  223. "evening1": "in the evening",
  224. "night1": "at night",
  225. },
  226. "week_data": {
  227. "min_days": 1,
  228. "first_day": 6,
  229. "weekend_start": 5,
  230. "weekend_end": 6,
  231. },
  232. },
  233. "custom": custom_translations,
  234. }