UNPKG

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