From d93f7b63adfeff1459f84c1fb5cd0654b7e3b6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Gon=C3=A7alves?= Date: Tue, 5 Mar 2019 10:39:18 +0000 Subject: [PATCH] fix: Add de-AT locale (#515) --- src/locale/de-at.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/locale/de-at.js diff --git a/src/locale/de-at.js b/src/locale/de-at.js new file mode 100644 index 000000000..11db724b9 --- /dev/null +++ b/src/locale/de-at.js @@ -0,0 +1,37 @@ +import dayjs from 'dayjs' + +const locale = { + name: 'de-at', + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), + ordinal: n => `${n}.`, + weekStart: 1, + formats: { + LTS: 'HH:mm:ss', + LT: 'HH:mm', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm' + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + m: 'einer Minute', + mm: '%d Minuten', + h: 'einer Stunde', + hh: '%d Stunden', + d: 'einem Tag', + dd: '%d Tagen', + M: 'einem Monat', + MM: '%d Monaten', + y: 'einem Jahr', + yy: '%d Jahren' + } +} + +dayjs.locale(locale, null, true) + +export default locale