tzm.js (2860B)
1//! moment.js locale configuration 2//! locale : Central Atlas Tamazight [tzm] 3//! author : Abdel Said : https://github.com/abdelsaid 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 tzm = moment.defineLocale('tzm', { 15 months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( 16 '_' 17 ), 18 monthsShort: 19 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( 20 '_' 21 ), 22 weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 23 weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 24 weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), 25 longDateFormat: { 26 LT: 'HH:mm', 27 LTS: 'HH:mm:ss', 28 L: 'DD/MM/YYYY', 29 LL: 'D MMMM YYYY', 30 LLL: 'D MMMM YYYY HH:mm', 31 LLLL: 'dddd D MMMM YYYY HH:mm', 32 }, 33 calendar: { 34 sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', 35 nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', 36 nextWeek: 'dddd [ⴴ] LT', 37 lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', 38 lastWeek: 'dddd [ⴴ] LT', 39 sameElse: 'L', 40 }, 41 relativeTime: { 42 future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', 43 past: 'ⵢⴰⵏ %s', 44 s: 'ⵉⵎⵉⴽ', 45 ss: '%d ⵉⵎⵉⴽ', 46 m: 'ⵎⵉⵏⵓⴺ', 47 mm: '%d ⵎⵉⵏⵓⴺ', 48 h: 'ⵙⴰⵄⴰ', 49 hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', 50 d: 'ⴰⵙⵙ', 51 dd: '%d oⵙⵙⴰⵏ', 52 M: 'ⴰⵢoⵓⵔ', 53 MM: '%d ⵉⵢⵢⵉⵔⵏ', 54 y: 'ⴰⵙⴳⴰⵙ', 55 yy: '%d ⵉⵙⴳⴰⵙⵏ', 56 }, 57 week: { 58 dow: 6, // Saturday is the first day of the week. 59 doy: 12, // The week that contains Jan 12th is the first week of the year. 60 }, 61 }); 62 63 return tzm; 64 65})));