From 4260214a07b180ce0a5e978e9954c2ace7e25ef3 Mon Sep 17 00:00:00 2001
From: yavidor <46024219+yavidor@users.noreply.github.com>
Date: Fri, 31 Oct 2025 23:58:37 +0000
Subject: [PATCH] feat(i18n): add Hebrew translations for UI components and pages (#2186)
---
quartz/i18n/locales/he-IL.ts | 88 ++++++++++++++++++++++++++++++++++++++++++++
quartz/i18n/index.ts | 2 +
2 files changed, 90 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index ae5e615..6c7e378 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -28,6 +28,7 @@
import no from "./locales/nb-NO"
import id from "./locales/id-ID"
import kk from "./locales/kk-KZ"
+import he from "./locales/he-IL"
export const TRANSLATIONS = {
"en-US": enUs,
@@ -80,6 +81,7 @@
"nb-NO": no,
"id-ID": id,
"kk-KZ": kk,
+ "he-IL": he,
} as const
export const defaultTranslation = "en-US"
diff --git a/quartz/i18n/locales/he-IL.ts b/quartz/i18n/locales/he-IL.ts
new file mode 100644
index 0000000..6bd4faa
--- /dev/null
+++ b/quartz/i18n/locales/he-IL.ts
@@ -0,0 +1,88 @@
+import { Translation } from "./definition"
+
+export default {
+ propertyDefaults: {
+ title: "ללא כותרת",
+ description: "לא סופק תיאור",
+ },
+ direction: "rtl" as const,
+ components: {
+ callout: {
+ note: "הערה",
+ abstract: "תקציר",
+ info: "מידע",
+ todo: "לעשות",
+ tip: "טיפ",
+ success: "הצלחה",
+ question: "שאלה",
+ warning: "אזהרה",
+ failure: "כשלון",
+ danger: "סכנה",
+ bug: "באג",
+ example: "דוגמה",
+ quote: "ציטוט",
+ },
+ backlinks: {
+ title: "קישורים חוזרים",
+ noBacklinksFound: "לא נמצאו קישורים חוזרים",
+ },
+ themeToggle: {
+ lightMode: "מצב בהיר",
+ darkMode: "מצב כהה",
+ },
+ readerMode: {
+ title: "מצב קריאה",
+ },
+ explorer: {
+ title: "סייר",
+ },
+ footer: {
+ createdWith: "נוצר באמצעות",
+ },
+ graph: {
+ title: "מבט גרף",
+ },
+ recentNotes: {
+ title: "הערות אחרונות",
+ seeRemainingMore: ({ remaining }) => `עיין ב ${remaining} נוספים →`,
+ },
+ transcludes: {
+ transcludeOf: ({ targetSlug }) => `מצוטט מ ${targetSlug}`,
+ linkToOriginal: "קישור למקורי",
+ },
+ search: {
+ title: "חיפוש",
+ searchBarPlaceholder: "חפשו משהו",
+ },
+ tableOfContents: {
+ title: "תוכן עניינים",
+ },
+ contentMeta: {
+ readingTime: ({ minutes }) => `${minutes} דקות קריאה`,
+ },
+ },
+ pages: {
+ rss: {
+ recentNotes: "הערות אחרונות",
+ lastFewNotes: ({ count }) => `${count} הערות אחרונות`,
+ },
+ error: {
+ title: "לא נמצא",
+ notFound: "העמוד הזה פרטי או לא קיים.",
+ home: "חזרה לעמוד הבית",
+ },
+ folderContent: {
+ folder: "תיקייה",
+ itemsUnderFolder: ({ count }) =>
+ count === 1 ? "פריט אחד תחת תיקייה זו." : `${count} פריטים תחת תיקייה זו.`,
+ },
+ tagContent: {
+ tag: "תגית",
+ tagIndex: "מפתח התגיות",
+ itemsUnderTag: ({ count }) =>
+ count === 1 ? "פריט אחד עם תגית זו." : `${count} פריטים עם תגית זו.`,
+ showingFirst: ({ count }) => `מראה את ה-${count} תגיות הראשונות.`,
+ totalTags: ({ count }) => `${count} תגיות נמצאו סך הכל.`,
+ },
+ },
+} as const satisfies Translation
--
Gitblit v1.10.0