[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  //! moment.js locale configuration
   2  //! locale : Portuguese [pt]
   3  //! author : Jefferson : https://github.com/jalex79
   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      var pt = moment.defineLocale('pt', {
  14          months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  15          monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  16          weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  17          weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  18          weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  19          weekdaysParseExact : true,
  20          longDateFormat : {
  21              LT : 'HH:mm',
  22              LTS : 'HH:mm:ss',
  23              L : 'DD/MM/YYYY',
  24              LL : 'D [de] MMMM [de] YYYY',
  25              LLL : 'D [de] MMMM [de] YYYY HH:mm',
  26              LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  27          },
  28          calendar : {
  29              sameDay: '[Hoje às] LT',
  30              nextDay: '[Amanhã às] LT',
  31              nextWeek: 'dddd [às] LT',
  32              lastDay: '[Ontem às] LT',
  33              lastWeek: function () {
  34                  return (this.day() === 0 || this.day() === 6) ?
  35                      '[Último] dddd [às] LT' : // Saturday + Sunday
  36                      '[Última] dddd [às] LT'; // Monday - Friday
  37              },
  38              sameElse: 'L'
  39          },
  40          relativeTime : {
  41              future : 'em %s',
  42              past : 'há %s',
  43              s : 'segundos',
  44              m : 'um minuto',
  45              mm : '%d minutos',
  46              h : 'uma hora',
  47              hh : '%d horas',
  48              d : 'um dia',
  49              dd : '%d dias',
  50              M : 'um mês',
  51              MM : '%d meses',
  52              y : 'um ano',
  53              yy : '%d anos'
  54          },
  55          ordinalParse: /\d{1,2}º/,
  56          ordinal : '%dº',
  57          week : {
  58              dow : 1, // Monday is the first day of the week.
  59              doy : 4  // The week that contains Jan 4th is the first week of the year.
  60          }
  61      });
  62  
  63      return pt;
  64  
  65  }));


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