index.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. // https://www.unicode.org/cldr/charts/32/summary/gu.html
  9. // #1621 - #1630
  10. var eraValues = {
  11. narrow: ['ઈસપૂ', 'ઈસ'],
  12. abbreviated: ['ઈ.સ.પૂર્વે', 'ઈ.સ.'],
  13. wide: ['ઈસવીસન પૂર્વે', 'ઈસવીસન'] // https://www.unicode.org/cldr/charts/32/summary/gu.html
  14. // #1631 - #1654
  15. };
  16. var quarterValues = {
  17. narrow: ['1', '2', '3', '4'],
  18. abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
  19. wide: ['1લો ત્રિમાસ', '2જો ત્રિમાસ', '3જો ત્રિમાસ', '4થો ત્રિમાસ'] // Note: in English, the names of days of the week and months are capitalized.
  20. // If you are making a new locale based on this one, check if the same is true for the language you're working on.
  21. // Generally, formatted dates should look like they are in the middle of a sentence,
  22. // e.g. in Spanish language the weekdays and months should be in the lowercase.
  23. // https://www.unicode.org/cldr/charts/32/summary/gu.html
  24. // #1655 - #1726
  25. };
  26. var monthValues = {
  27. narrow: ['જા', 'ફે', 'મા', 'એ', 'મે', 'જૂ', 'જુ', 'ઓ', 'સ', 'ઓ', 'ન', 'ડિ'],
  28. abbreviated: ['જાન્યુ', 'ફેબ્રુ', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઈ', 'ઑગસ્ટ', 'સપ્ટે', 'ઓક્ટો', 'નવે', 'ડિસે'],
  29. wide: ['જાન્યુઆરી', 'ફેબ્રુઆરી', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઇ', 'ઓગસ્ટ', 'સપ્ટેમ્બર', 'ઓક્ટોબર', 'નવેમ્બર', 'ડિસેમ્બર'] // https://www.unicode.org/cldr/charts/32/summary/gu.html
  30. // #1727 - #1768
  31. };
  32. var dayValues = {
  33. narrow: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'],
  34. short: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'],
  35. abbreviated: ['રવિ', 'સોમ', 'મંગળ', 'બુધ', 'ગુરુ', 'શુક્ર', 'શનિ'],
  36. wide: ['રવિવાર'
  37. /* Sunday */
  38. , 'સોમવાર'
  39. /* Monday */
  40. , 'મંગળવાર'
  41. /* Tuesday */
  42. , 'બુધવાર'
  43. /* Wednesday */
  44. , 'ગુરુવાર'
  45. /* Thursday */
  46. , 'શુક્રવાર'
  47. /* Friday */
  48. , 'શનિવાર'
  49. /* Saturday */
  50. ] // https://www.unicode.org/cldr/charts/32/summary/gu.html
  51. // #1783 - #1824
  52. };
  53. var dayPeriodValues = {
  54. narrow: {
  55. am: 'AM',
  56. pm: 'PM',
  57. midnight: 'મ.રાત્રિ',
  58. noon: 'બ.',
  59. morning: 'સવારે',
  60. afternoon: 'બપોરે',
  61. evening: 'સાંજે',
  62. night: 'રાત્રે'
  63. },
  64. abbreviated: {
  65. am: 'AM',
  66. pm: 'PM',
  67. midnight: '​મધ્યરાત્રિ',
  68. noon: 'બપોરે',
  69. morning: 'સવારે',
  70. afternoon: 'બપોરે',
  71. evening: 'સાંજે',
  72. night: 'રાત્રે'
  73. },
  74. wide: {
  75. am: 'AM',
  76. pm: 'PM',
  77. midnight: '​મધ્યરાત્રિ',
  78. noon: 'બપોરે',
  79. morning: 'સવારે',
  80. afternoon: 'બપોરે',
  81. evening: 'સાંજે',
  82. night: 'રાત્રે'
  83. }
  84. };
  85. var formattingDayPeriodValues = {
  86. narrow: {
  87. am: 'AM',
  88. pm: 'PM',
  89. midnight: 'મ.રાત્રિ',
  90. noon: 'બપોરે',
  91. morning: 'સવારે',
  92. afternoon: 'બપોરે',
  93. evening: 'સાંજે',
  94. night: 'રાત્રે'
  95. },
  96. abbreviated: {
  97. am: 'AM',
  98. pm: 'PM',
  99. midnight: 'મધ્યરાત્રિ',
  100. noon: 'બપોરે',
  101. morning: 'સવારે',
  102. afternoon: 'બપોરે',
  103. evening: 'સાંજે',
  104. night: 'રાત્રે'
  105. },
  106. wide: {
  107. am: 'AM',
  108. pm: 'PM',
  109. midnight: '​મધ્યરાત્રિ',
  110. noon: 'બપોરે',
  111. morning: 'સવારે',
  112. afternoon: 'બપોરે',
  113. evening: 'સાંજે',
  114. night: 'રાત્રે'
  115. }
  116. };
  117. function ordinalNumber(dirtyNumber, _dirtyOptions) {
  118. var number = Number(dirtyNumber);
  119. return number;
  120. }
  121. var localize = {
  122. ordinalNumber: ordinalNumber,
  123. era: (0, _index.default)({
  124. values: eraValues,
  125. defaultWidth: 'wide'
  126. }),
  127. quarter: (0, _index.default)({
  128. values: quarterValues,
  129. defaultWidth: 'wide',
  130. argumentCallback: function (quarter) {
  131. return Number(quarter) - 1;
  132. }
  133. }),
  134. month: (0, _index.default)({
  135. values: monthValues,
  136. defaultWidth: 'wide'
  137. }),
  138. day: (0, _index.default)({
  139. values: dayValues,
  140. defaultWidth: 'wide'
  141. }),
  142. dayPeriod: (0, _index.default)({
  143. values: dayPeriodValues,
  144. defaultWidth: 'wide',
  145. formattingValues: formattingDayPeriodValues,
  146. defaultFormattingWidth: 'wide'
  147. })
  148. };
  149. var _default = localize;
  150. exports.default = _default;
  151. module.exports = exports.default;