tet.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. //! author : Sonia Simoes : https://github.com/soniasimoes
  6. import moment from '../moment';
  7. export default moment.defineLocale('tet', {
  8. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  9. '_'
  10. ),
  11. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  12. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  13. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  14. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  15. longDateFormat: {
  16. LT: 'HH:mm',
  17. LTS: 'HH:mm:ss',
  18. L: 'DD/MM/YYYY',
  19. LL: 'D MMMM YYYY',
  20. LLL: 'D MMMM YYYY HH:mm',
  21. LLLL: 'dddd, D MMMM YYYY HH:mm',
  22. },
  23. calendar: {
  24. sameDay: '[Ohin iha] LT',
  25. nextDay: '[Aban iha] LT',
  26. nextWeek: 'dddd [iha] LT',
  27. lastDay: '[Horiseik iha] LT',
  28. lastWeek: 'dddd [semana kotuk] [iha] LT',
  29. sameElse: 'L',
  30. },
  31. relativeTime: {
  32. future: 'iha %s',
  33. past: '%s liuba',
  34. s: 'segundu balun',
  35. ss: 'segundu %d',
  36. m: 'minutu ida',
  37. mm: 'minutu %d',
  38. h: 'oras ida',
  39. hh: 'oras %d',
  40. d: 'loron ida',
  41. dd: 'loron %d',
  42. M: 'fulan ida',
  43. MM: 'fulan %d',
  44. y: 'tinan ida',
  45. yy: 'tinan %d',
  46. },
  47. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  48. ordinal: function (number) {
  49. var b = number % 10,
  50. output =
  51. ~~((number % 100) / 10) === 1
  52. ? 'th'
  53. : b === 1
  54. ? 'st'
  55. : b === 2
  56. ? 'nd'
  57. : b === 3
  58. ? 'rd'
  59. : 'th';
  60. return number + output;
  61. },
  62. week: {
  63. dow: 1, // Monday is the first day of the week.
  64. doy: 4, // The week that contains Jan 4th is the first week of the year.
  65. },
  66. });