From b6cf3df84f452c22ac9ddaf452b0ecbe0828086f Mon Sep 17 00:00:00 2001
From: Eiko Wagenknecht <git@eiko-wagenknecht.de>
Date: Mon, 19 Feb 2024 21:49:07 +0000
Subject: [PATCH] fix: correctly parse falsy js as title (#900)
---
quartz/i18n/locales/definition.ts | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/locales/definition.ts b/quartz/i18n/locales/definition.ts
index de607eb..1d5d3dd 100644
--- a/quartz/i18n/locales/definition.ts
+++ b/quartz/i18n/locales/definition.ts
@@ -1,11 +1,28 @@
import { FullSlug } from "../../util/path"
+export interface CalloutTranslation {
+ note: string
+ abstract: string
+ info: string
+ todo: string
+ tip: string
+ success: string
+ question: string
+ warning: string
+ failure: string
+ danger: string
+ bug: string
+ example: string
+ quote: string
+}
+
export interface Translation {
propertyDefaults: {
title: string
description: string
}
components: {
+ callout: CalloutTranslation
backlinks: {
title: string
noBacklinksFound: string
@@ -38,6 +55,9 @@
tableOfContents: {
title: string
}
+ contentMeta: {
+ readingTime: (variables: { minutes: number }) => string
+ }
}
pages: {
rss: {
--
Gitblit v1.10.0