yavidor
2025-10-31 4260214a07b180ce0a5e978e9954c2ace7e25ef3
feat(i18n): add Hebrew translations for UI components and pages (#2186)

* Added hebrew

* Better translations

* Added NewLine at EOF
1 files added
1 files modified
90 ■■■■■ changed files
quartz/i18n/index.ts 2 ●●●●● patch | view | raw | blame | history
quartz/i18n/locales/he-IL.ts 88 ●●●●● patch | view | raw | blame | history
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"
quartz/i18n/locales/he-IL.ts
New file
@@ -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