sd.js (2153B)
1//! moment.js locale configuration 2//! locale : Sindhi [sd] 3//! author : Narain Sagar : https://github.com/narainsagar 4 5import moment from '../moment'; 6 7var months = [ 8 'جنوري', 9 'فيبروري', 10 'مارچ', 11 'اپريل', 12 'مئي', 13 'جون', 14 'جولاءِ', 15 'آگسٽ', 16 'سيپٽمبر', 17 'آڪٽوبر', 18 'نومبر', 19 'ڊسمبر', 20 ], 21 days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; 22 23export default moment.defineLocale('sd', { 24 months: months, 25 monthsShort: months, 26 weekdays: days, 27 weekdaysShort: days, 28 weekdaysMin: days, 29 longDateFormat: { 30 LT: 'HH:mm', 31 LTS: 'HH:mm:ss', 32 L: 'DD/MM/YYYY', 33 LL: 'D MMMM YYYY', 34 LLL: 'D MMMM YYYY HH:mm', 35 LLLL: 'dddd، D MMMM YYYY HH:mm', 36 }, 37 meridiemParse: /صبح|شام/, 38 isPM: function (input) { 39 return 'شام' === input; 40 }, 41 meridiem: function (hour, minute, isLower) { 42 if (hour < 12) { 43 return 'صبح'; 44 } 45 return 'شام'; 46 }, 47 calendar: { 48 sameDay: '[اڄ] LT', 49 nextDay: '[سڀاڻي] LT', 50 nextWeek: 'dddd [اڳين هفتي تي] LT', 51 lastDay: '[ڪالهه] LT', 52 lastWeek: '[گزريل هفتي] dddd [تي] LT', 53 sameElse: 'L', 54 }, 55 relativeTime: { 56 future: '%s پوء', 57 past: '%s اڳ', 58 s: 'چند سيڪنڊ', 59 ss: '%d سيڪنڊ', 60 m: 'هڪ منٽ', 61 mm: '%d منٽ', 62 h: 'هڪ ڪلاڪ', 63 hh: '%d ڪلاڪ', 64 d: 'هڪ ڏينهن', 65 dd: '%d ڏينهن', 66 M: 'هڪ مهينو', 67 MM: '%d مهينا', 68 y: 'هڪ سال', 69 yy: '%d سال', 70 }, 71 preparse: function (string) { 72 return string.replace(/،/g, ','); 73 }, 74 postformat: function (string) { 75 return string.replace(/,/g, '،'); 76 }, 77 week: { 78 dow: 1, // Monday is the first day of the week. 79 doy: 4, // The week that contains Jan 4th is the first week of the year. 80 }, 81});