locale.py 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. from __future__ import annotations
  2. from pendulum.locales.en.custom import translations as custom_translations
  3. """
  4. en 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": {0: "M", 1: "T", 2: "W", 3: "T", 4: "F", 5: "S", 6: "S"},
  39. "short": {0: "Mo", 1: "Tu", 2: "We", 3: "Th", 4: "Fr", 5: "Sa", 6: "Su"},
  40. "wide": {
  41. 0: "Monday",
  42. 1: "Tuesday",
  43. 2: "Wednesday",
  44. 3: "Thursday",
  45. 4: "Friday",
  46. 5: "Saturday",
  47. 6: "Sunday",
  48. },
  49. },
  50. "months": {
  51. "abbreviated": {
  52. 1: "Jan",
  53. 2: "Feb",
  54. 3: "Mar",
  55. 4: "Apr",
  56. 5: "May",
  57. 6: "Jun",
  58. 7: "Jul",
  59. 8: "Aug",
  60. 9: "Sep",
  61. 10: "Oct",
  62. 11: "Nov",
  63. 12: "Dec",
  64. },
  65. "narrow": {
  66. 1: "J",
  67. 2: "F",
  68. 3: "M",
  69. 4: "A",
  70. 5: "M",
  71. 6: "J",
  72. 7: "J",
  73. 8: "A",
  74. 9: "S",
  75. 10: "O",
  76. 11: "N",
  77. 12: "D",
  78. },
  79. "wide": {
  80. 1: "January",
  81. 2: "February",
  82. 3: "March",
  83. 4: "April",
  84. 5: "May",
  85. 6: "June",
  86. 7: "July",
  87. 8: "August",
  88. 9: "September",
  89. 10: "October",
  90. 11: "November",
  91. 12: "December",
  92. },
  93. },
  94. "units": {
  95. "year": {"one": "{0} year", "other": "{0} years"},
  96. "month": {"one": "{0} month", "other": "{0} months"},
  97. "week": {"one": "{0} week", "other": "{0} weeks"},
  98. "day": {"one": "{0} day", "other": "{0} days"},
  99. "hour": {"one": "{0} hour", "other": "{0} hours"},
  100. "minute": {"one": "{0} minute", "other": "{0} minutes"},
  101. "second": {"one": "{0} second", "other": "{0} seconds"},
  102. "microsecond": {"one": "{0} microsecond", "other": "{0} microseconds"},
  103. },
  104. "relative": {
  105. "year": {
  106. "future": {"other": "in {0} years", "one": "in {0} year"},
  107. "past": {"other": "{0} years ago", "one": "{0} year ago"},
  108. },
  109. "month": {
  110. "future": {"other": "in {0} months", "one": "in {0} month"},
  111. "past": {"other": "{0} months ago", "one": "{0} month ago"},
  112. },
  113. "week": {
  114. "future": {"other": "in {0} weeks", "one": "in {0} week"},
  115. "past": {"other": "{0} weeks ago", "one": "{0} week ago"},
  116. },
  117. "day": {
  118. "future": {"other": "in {0} days", "one": "in {0} day"},
  119. "past": {"other": "{0} days ago", "one": "{0} day ago"},
  120. },
  121. "hour": {
  122. "future": {"other": "in {0} hours", "one": "in {0} hour"},
  123. "past": {"other": "{0} hours ago", "one": "{0} hour ago"},
  124. },
  125. "minute": {
  126. "future": {"other": "in {0} minutes", "one": "in {0} minute"},
  127. "past": {"other": "{0} minutes ago", "one": "{0} minute ago"},
  128. },
  129. "second": {
  130. "future": {"other": "in {0} seconds", "one": "in {0} second"},
  131. "past": {"other": "{0} seconds ago", "one": "{0} second ago"},
  132. },
  133. },
  134. "day_periods": {
  135. "midnight": "midnight",
  136. "am": "AM",
  137. "noon": "noon",
  138. "pm": "PM",
  139. "morning1": "in the morning",
  140. "afternoon1": "in the afternoon",
  141. "evening1": "in the evening",
  142. "night1": "at night",
  143. },
  144. "week_data": {
  145. "min_days": 1,
  146. "first_day": 6,
  147. "weekend_start": 5,
  148. "weekend_end": 6,
  149. },
  150. },
  151. "custom": custom_translations,
  152. }