[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> ss.js (source)

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


Generated: Thu Aug 24 01:01:27 2023 Cross-referenced by PHPXref 0.7.1