From 603c181ad27109327617a78e5f672ebf68edc267 Mon Sep 17 00:00:00 2001
From: Mara-Li <lili.simonetti@outlook.fr>
Date: Mon, 29 Jan 2024 06:13:59 +0000
Subject: [PATCH] feat: allow to config a translation for date (#739)
---
quartz/cfg.ts | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/quartz/cfg.ts b/quartz/cfg.ts
index 7f0f206..153bbe2 100644
--- a/quartz/cfg.ts
+++ b/quartz/cfg.ts
@@ -35,6 +35,12 @@
*/
baseUrl?: string
theme: Theme
+ /**
+ * The locale to use for date formatting. Default to "en-US"
+ * Allow to translate the date in the language of your choice.
+ * Need to be formated following the IETF language tag format (https://en.wikipedia.org/wiki/IETF_language_tag)
+ */
+ locale?: string
}
export interface QuartzConfig {
--
Gitblit v1.10.0