Debian Codegraph @

resources/lib/moment/locale/ss.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : siSwati [ss]
3 //! author : Nicolai Davies<[email protected]> : https://github.com/nicolaidavies
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 ss = moment.defineLocale('ss', {
15 months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
16 '_'
17 ),
18 monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
19 weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
20 '_'
21 ),
22 weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
23 weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
24 weekdaysParseExact: true,
25 longDateFormat: {
26 LT: 'h:mm A',
27 LTS: 'h:mm:ss A',
28 L: 'DD/MM/YYYY',
29 LL: 'D MMMM YYYY',
30 LLL: 'D MMMM YYYY h:mm A',
31 LLLL: 'dddd, D MMMM YYYY h:mm A',
32 },
33 calendar: {
34 sameDay: '[Namuhla nga] LT',
35 nextDay: '[Kusasa nga] LT',
36 nextWeek: 'dddd [nga] LT',
37 lastDay: '[Itolo nga] LT',
38 lastWeek: 'dddd [leliphelile] [nga] LT',
39 sameElse: 'L',
40 },
41 relativeTime: {
42 future: 'nga %s',
43 past: 'wenteka nga %s',
44 s: 'emizuzwana lomcane',
45 ss: '%d mzuzwana',
46 m: 'umzuzu',
47 mm: '%d emizuzu',
48 h: 'lihora',
49 hh: '%d emahora',
50 d: 'lilanga',
51 dd: '%d emalanga',
52 M: 'inyanga',
53 MM: '%d tinyanga',
54 y: 'umnyaka',
55 yy: '%d iminyaka',
56 },
57 meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
58 meridiem: function (hours, minutes, isLower) {
59 if (hours < 11) {
60 return 'ekuseni';
61 } else if (hours < 15) {
62 return 'emini';
63 } else if (hours < 19) {
64 return 'entsambama';
65 } else {
66 return 'ebusuku';
67 }
68 },
69 meridiemHour: function (hour, meridiem) {
70 if (hour === 12) {
71 hour = 0;
72 }
73 if (meridiem === 'ekuseni') {
74 return hour;
75 } else if (meridiem === 'emini') {
76 return hour >= 11 ? hour : hour + 12;
77 } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
78 if (hour === 0) {
79 return 0;
80 }
81 return hour + 12;
82 }
83 },
84 dayOfMonthOrdinalParse: /\d{1,2}/,
85 ordinal: '%d',
86 week: {
87 dow: 1, // Monday is the first day of the week.
88 doy: 4, // The week that contains Jan 4th is the first week of the year.
89 },
90 });
91
92 return ss;
93
94 })));