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