tet.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //! moment.js locale configuration
  2. //! locale : Tetun Dili (East Timor) [tet]
  3. //! author : Joshua Brooks : https://github.com/joshbrooks
  4. //! author : Onorio De J. Afonso : https://github.com/marobo
  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. var tet = moment.defineLocale('tet', {
  12. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  13. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  14. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  15. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  16. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  17. longDateFormat : {
  18. LT : 'HH:mm',
  19. LTS : 'HH:mm:ss',
  20. L : 'DD/MM/YYYY',
  21. LL : 'D MMMM YYYY',
  22. LLL : 'D MMMM YYYY HH:mm',
  23. LLLL : 'dddd, D MMMM YYYY HH:mm'
  24. },
  25. calendar : {
  26. sameDay: '[Ohin iha] LT',
  27. nextDay: '[Aban iha] LT',
  28. nextWeek: 'dddd [iha] LT',
  29. lastDay: '[Horiseik iha] LT',
  30. lastWeek: 'dddd [semana kotuk] [iha] LT',
  31. sameElse: 'L'
  32. },
  33. relativeTime : {
  34. future : 'iha %s',
  35. past : '%s liuba',
  36. s : 'minutu balun',
  37. ss : 'minutu %d',
  38. m : 'minutu ida',
  39. mm : 'minutus %d',
  40. h : 'horas ida',
  41. hh : 'horas %d',
  42. d : 'loron ida',
  43. dd : 'loron %d',
  44. M : 'fulan ida',
  45. MM : 'fulan %d',
  46. y : 'tinan ida',
  47. yy : 'tinan %d'
  48. },
  49. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  50. ordinal : function (number) {
  51. var b = number % 10,
  52. output = (~~(number % 100 / 10) === 1) ? 'th' :
  53. (b === 1) ? 'st' :
  54. (b === 2) ? 'nd' :
  55. (b === 3) ? 'rd' : 'th';
  56. return number + output;
  57. },
  58. week : {
  59. dow : 1, // Monday is the first day of the week.
  60. doy : 4 // The week that contains Jan 4th is the first week of the year.
  61. }
  62. });
  63. return tet;
  64. })));