From fbb452385325d4418ce53e61178fe2494255caf5 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 14 Mar 2025 22:08:23 +0000
Subject: [PATCH] fix(folder): use memoized trie instead of handrolled path solution (closes #1767)
---
quartz/i18n/locales/definition.ts | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/locales/definition.ts b/quartz/i18n/locales/definition.ts
index de607eb..25a8cd7 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: {
@@ -47,6 +67,7 @@
error: {
title: string
notFound: string
+ home: string
}
folderContent: {
folder: string
--
Gitblit v1.10.0