Client - update date display in german

This commit is contained in:
Sam 2022-11-01 12:17:20 +01:00
parent 9d37f32f6d
commit 1d142ae4dd
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ const availableDateFormats = [
'date_string',
]
const dateStringFormats: Record<string, string> = {
de: 'd MMM yyyy',
de: 'do MMM yyyy',
en: 'MMM. do, yyyy',
fr: 'd MMM yyyy',
}

View File

@ -335,7 +335,7 @@ describe('getDateFormat', () => {
dateFormat: 'date_string',
language: 'de',
},
expectedFormat: 'd MMM yyyy',
expectedFormat: 'do MMM yyyy',
},
]
testsParams.map((testParams) => {
@ -380,7 +380,7 @@ describe('availableDateFormatOptions', () => {
{ label: 'dd/MM/yyyy - 09/10/2022', value: 'dd/MM/yyyy' },
{ label: 'MM/dd/yyyy - 10/09/2022', value: 'MM/dd/yyyy' },
{ label: 'yyyy-MM-dd - 2022-10-09', value: 'yyyy-MM-dd' },
{ label: 'd MMM yyyy - 9 Okt. 2022', value: 'date_string' },
{ label: 'do MMM yyyy - 9. Okt. 2022', value: 'date_string' },
],
},
]