/** '2026-05-05' as '05.05.', with the year as '05.05.2026'. */ export function formatDayDe(day: string, withYear = false): string { const [year, month, date] = day.split('-'); return withYear ? `${date}.${month}.${year}` : `${date}.${month}.`; } /** * Closes a sentence with one period. A day formatted by formatDayDe ends with * its own dot ('13.10.'), which then is the end of the sentence. */ export function endSentence(text: string): string { return text.endsWith('.') ? text : `${text}.`; }