angular-locale_uk-ua.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. 'use strict';
  2. angular.module("ngLocale", [], ["$provide", function ($provide) {
  3. var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
  4. function getDecimals(n) {
  5. n = n + '';
  6. var i = n.indexOf('.');
  7. return (i == -1) ? 0 : n.length - i - 1;
  8. }
  9. function getVF(n, opt_precision) {
  10. var v = opt_precision;
  11. if (undefined === v) {
  12. v = Math.min(getDecimals(n), 3);
  13. }
  14. var base = Math.pow(10, v);
  15. var f = ((n * base) | 0) % base;
  16. return {v: v, f: f};
  17. }
  18. $provide.value("$locale", {
  19. "DATETIME_FORMATS": {
  20. "AMPMS": [
  21. "\u0434\u043f",
  22. "\u043f\u043f"
  23. ],
  24. "DAY": [
  25. "\u043d\u0435\u0434\u0456\u043b\u044f",
  26. "\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a",
  27. "\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a",
  28. "\u0441\u0435\u0440\u0435\u0434\u0430",
  29. "\u0447\u0435\u0442\u0432\u0435\u0440",
  30. "\u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f",
  31. "\u0441\u0443\u0431\u043e\u0442\u0430"
  32. ],
  33. "ERANAMES": [
  34. "\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438",
  35. "\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"
  36. ],
  37. "ERAS": [
  38. "\u0434\u043e \u043d. \u0435.",
  39. "\u043d. \u0435."
  40. ],
  41. "FIRSTDAYOFWEEK": 0,
  42. "MONTH": [
  43. "\u0441\u0456\u0447\u043d\u044f",
  44. "\u043b\u044e\u0442\u043e\u0433\u043e",
  45. "\u0431\u0435\u0440\u0435\u0437\u043d\u044f",
  46. "\u043a\u0432\u0456\u0442\u043d\u044f",
  47. "\u0442\u0440\u0430\u0432\u043d\u044f",
  48. "\u0447\u0435\u0440\u0432\u043d\u044f",
  49. "\u043b\u0438\u043f\u043d\u044f",
  50. "\u0441\u0435\u0440\u043f\u043d\u044f",
  51. "\u0432\u0435\u0440\u0435\u0441\u043d\u044f",
  52. "\u0436\u043e\u0432\u0442\u043d\u044f",
  53. "\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430",
  54. "\u0433\u0440\u0443\u0434\u043d\u044f"
  55. ],
  56. "SHORTDAY": [
  57. "\u043d\u0434",
  58. "\u043f\u043d",
  59. "\u0432\u0442",
  60. "\u0441\u0440",
  61. "\u0447\u0442",
  62. "\u043f\u0442",
  63. "\u0441\u0431"
  64. ],
  65. "SHORTMONTH": [
  66. "\u0441\u0456\u0447.",
  67. "\u043b\u044e\u0442.",
  68. "\u0431\u0435\u0440.",
  69. "\u043a\u0432\u0456\u0442.",
  70. "\u0442\u0440\u0430\u0432.",
  71. "\u0447\u0435\u0440\u0432.",
  72. "\u043b\u0438\u043f.",
  73. "\u0441\u0435\u0440\u043f.",
  74. "\u0432\u0435\u0440.",
  75. "\u0436\u043e\u0432\u0442.",
  76. "\u043b\u0438\u0441\u0442.",
  77. "\u0433\u0440\u0443\u0434."
  78. ],
  79. "STANDALONEMONTH": [
  80. "\u0441\u0456\u0447\u0435\u043d\u044c",
  81. "\u043b\u044e\u0442\u0438\u0439",
  82. "\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c",
  83. "\u043a\u0432\u0456\u0442\u0435\u043d\u044c",
  84. "\u0442\u0440\u0430\u0432\u0435\u043d\u044c",
  85. "\u0447\u0435\u0440\u0432\u0435\u043d\u044c",
  86. "\u043b\u0438\u043f\u0435\u043d\u044c",
  87. "\u0441\u0435\u0440\u043f\u0435\u043d\u044c",
  88. "\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c",
  89. "\u0436\u043e\u0432\u0442\u0435\u043d\u044c",
  90. "\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434",
  91. "\u0433\u0440\u0443\u0434\u0435\u043d\u044c"
  92. ],
  93. "WEEKENDRANGE": [
  94. 5,
  95. 6
  96. ],
  97. "fullDate": "EEEE, d MMMM y '\u0440'.",
  98. "longDate": "d MMMM y '\u0440'.",
  99. "medium": "d MMM y '\u0440'. HH:mm:ss",
  100. "mediumDate": "d MMM y '\u0440'.",
  101. "mediumTime": "HH:mm:ss",
  102. "short": "dd.MM.yy HH:mm",
  103. "shortDate": "dd.MM.yy",
  104. "shortTime": "HH:mm"
  105. },
  106. "NUMBER_FORMATS": {
  107. "CURRENCY_SYM": "\u0433\u0440\u043d.",
  108. "DECIMAL_SEP": ",",
  109. "GROUP_SEP": "\u00a0",
  110. "PATTERNS": [
  111. {
  112. "gSize": 3,
  113. "lgSize": 3,
  114. "maxFrac": 3,
  115. "minFrac": 0,
  116. "minInt": 1,
  117. "negPre": "-",
  118. "negSuf": "",
  119. "posPre": "",
  120. "posSuf": ""
  121. },
  122. {
  123. "gSize": 3,
  124. "lgSize": 3,
  125. "maxFrac": 2,
  126. "minFrac": 2,
  127. "minInt": 1,
  128. "negPre": "-",
  129. "negSuf": "\u00a0\u00a4",
  130. "posPre": "",
  131. "posSuf": "\u00a0\u00a4"
  132. }
  133. ]
  134. },
  135. "id": "uk-ua",
  136. "localeID": "uk_UA",
  137. "pluralCat": function (n, opt_precision) {
  138. var i = n | 0;
  139. var vf = getVF(n, opt_precision);
  140. if (vf.v == 0 && i % 10 == 1 && i % 100 != 11) {
  141. return PLURAL_CATEGORY.ONE;
  142. }
  143. if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) {
  144. return PLURAL_CATEGORY.FEW;
  145. }
  146. if (vf.v == 0 && i % 10 == 0 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 11 && i % 100 <= 14) {
  147. return PLURAL_CATEGORY.MANY;
  148. }
  149. return PLURAL_CATEGORY.OTHER;
  150. }
  151. });
  152. }]);