cd31845993f6c487079247fb28a2158b30c7aa949b3d44ca8eb3708b2024408559d6ac5089e238712c5e37cf5913658132b971e4ee39f864363f4662e4c126 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //! moment.js locale configuration
  2. //! locale : German (Austria) [de-at]
  3. //! author : lluchs : https://github.com/lluchs
  4. //! author: Menelion Elensúle: https://github.com/Oire
  5. //! author : Martin Groller : https://github.com/MadMG
  6. //! author : Mikolaj Dadela : https://github.com/mik01aj
  7. import moment from '../moment';
  8. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  9. var format = {
  10. 'm': ['eine Minute', 'einer Minute'],
  11. 'h': ['eine Stunde', 'einer Stunde'],
  12. 'd': ['ein Tag', 'einem Tag'],
  13. 'dd': [number + ' Tage', number + ' Tagen'],
  14. 'M': ['ein Monat', 'einem Monat'],
  15. 'MM': [number + ' Monate', number + ' Monaten'],
  16. 'y': ['ein Jahr', 'einem Jahr'],
  17. 'yy': [number + ' Jahre', number + ' Jahren']
  18. };
  19. return withoutSuffix ? format[key][0] : format[key][1];
  20. }
  21. export default moment.defineLocale('de-at', {
  22. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  23. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  24. monthsParseExact : true,
  25. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  26. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  27. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  28. weekdaysParseExact : true,
  29. longDateFormat : {
  30. LT: 'HH:mm',
  31. LTS: 'HH:mm:ss',
  32. L : 'DD.MM.YYYY',
  33. LL : 'D. MMMM YYYY',
  34. LLL : 'D. MMMM YYYY HH:mm',
  35. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  36. },
  37. calendar : {
  38. sameDay: '[heute um] LT [Uhr]',
  39. sameElse: 'L',
  40. nextDay: '[morgen um] LT [Uhr]',
  41. nextWeek: 'dddd [um] LT [Uhr]',
  42. lastDay: '[gestern um] LT [Uhr]',
  43. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  44. },
  45. relativeTime : {
  46. future : 'in %s',
  47. past : 'vor %s',
  48. s : 'ein paar Sekunden',
  49. m : processRelativeTime,
  50. mm : '%d Minuten',
  51. h : processRelativeTime,
  52. hh : '%d Stunden',
  53. d : processRelativeTime,
  54. dd : processRelativeTime,
  55. M : processRelativeTime,
  56. MM : processRelativeTime,
  57. y : processRelativeTime,
  58. yy : processRelativeTime
  59. },
  60. ordinalParse: /\d{1,2}\./,
  61. ordinal : '%d.',
  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. });