mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-11 07:10:48 +00:00
83 lines
2.9 KiB
JavaScript
83 lines
2.9 KiB
JavaScript
![]() |
/*
|
||
|
* de_DE.js
|
||
|
* Copyright (c) 2018 thegrumpydictator@gmail.com
|
||
|
*
|
||
|
* This file is part of Firefly III.
|
||
|
*
|
||
|
* Firefly III is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation, either version 3 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* Firefly III is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
//! moment.js locale configuration
|
||
|
|
||
|
function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
|
||
|
var format = {
|
||
|
'm': ['eine Minute', 'einer Minute'],
|
||
|
'h': ['eine Stunde', 'einer Stunde'],
|
||
|
'd': ['ein Tag', 'einem Tag'],
|
||
|
'dd': [number + ' Tage', number + ' Tagen'],
|
||
|
'M': ['ein Monat', 'einem Monat'],
|
||
|
'MM': [number + ' Monate', number + ' Monaten'],
|
||
|
'y': ['ein Jahr', 'einem Jahr'],
|
||
|
'yy': [number + ' Jahre', number + ' Jahren']
|
||
|
};
|
||
|
return withoutSuffix ? format[key][0] : format[key][1];
|
||
|
}
|
||
|
|
||
|
moment.defineLocale('de_DE', {
|
||
|
months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
|
||
|
monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
||
|
monthsParseExact : true,
|
||
|
weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
|
||
|
weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
||
|
weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
||
|
weekdaysParseExact : true,
|
||
|
longDateFormat : {
|
||
|
LT: 'HH:mm',
|
||
|
LTS: 'HH:mm:ss',
|
||
|
L : 'DD.MM.YYYY',
|
||
|
LL : 'D. MMMM YYYY',
|
||
|
LLL : 'D. MMMM YYYY HH:mm',
|
||
|
LLLL : 'dddd, D. MMMM YYYY HH:mm'
|
||
|
},
|
||
|
calendar : {
|
||
|
sameDay: '[heute um] LT [Uhr]',
|
||
|
sameElse: 'L',
|
||
|
nextDay: '[morgen um] LT [Uhr]',
|
||
|
nextWeek: 'dddd [um] LT [Uhr]',
|
||
|
lastDay: '[gestern um] LT [Uhr]',
|
||
|
lastWeek: '[letzten] dddd [um] LT [Uhr]'
|
||
|
},
|
||
|
relativeTime : {
|
||
|
future : 'in %s',
|
||
|
past : 'vor %s',
|
||
|
s : 'ein paar Sekunden',
|
||
|
ss : '%d Sekunden',
|
||
|
m : processRelativeTime$2,
|
||
|
mm : '%d Minuten',
|
||
|
h : processRelativeTime$2,
|
||
|
hh : '%d Stunden',
|
||
|
d : processRelativeTime$2,
|
||
|
dd : processRelativeTime$2,
|
||
|
M : processRelativeTime$2,
|
||
|
MM : processRelativeTime$2,
|
||
|
y : processRelativeTime$2,
|
||
|
yy : processRelativeTime$2
|
||
|
},
|
||
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
||
|
ordinal : '%d.',
|
||
|
week : {
|
||
|
dow : 1, // Monday is the first day of the week.
|
||
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||
|
}
|
||
|
});
|