Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
custom fr-FR date format
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime-J committed Nov 7, 2022
1 parent 990d76f commit 268c036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ export const customFormats = {
p: 'ha',
pp: 'h:mm:ss',
},
'fr-FR': {
'M/d': 'd/M',
'MMM d': 'd MMM',
'EEE M/d': 'EEE d/M',
},
};

export function dateFormat(date, str, locale = 'en-US') {
Expand Down

0 comments on commit 268c036

Please sign in to comment.