Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

custom fr-FR date format

Maxime-J268c0366320f
diff --git a/lib/date.js b/lib/date.js
index cae39ce41..4f92a6cda 100644
--- a/lib/date.js
+++ b/lib/date.js
@@ -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') {