PageRenderTime 30ms CodeModel.GetById 13ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/node_modules/moment/src/locale/ss.js

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