Alq
2024-02-10 a0d6daa3b4d736a9fe29b2ad15bea5f670f79dfa
feat(i18n): add Arabic translation (#837)

* feat(i18n): add Arabic translation

* chore: format
1 files added
1 files modified
86 ■■■■■ changed files
quartz/i18n/index.ts 21 ●●●●● patch | view | raw | blame | history
quartz/i18n/locales/ar-SA.ts 65 ●●●●● patch | view | raw | blame | history
quartz/i18n/index.ts
@@ -6,6 +6,7 @@
import nl from "./locales/nl-NL"
import ro from "./locales/ro-RO"
import es from "./locales/es-ES"
import ar from "./locales/ar-SA"
import uk from "./locales/uk-UA"
export const TRANSLATIONS = {
@@ -17,6 +18,26 @@
  "ro-RO": ro,
  "ro-MD": ro,
  "es-ES": es,
  "ar-SA": ar,
  "ar-AE": ar,
  "ar-QA": ar,
  "ar-BH": ar,
  "ar-KW": ar,
  "ar-OM": ar,
  "ar-YE": ar,
  "ar-IR": ar,
  "ar-SY": ar,
  "ar-IQ": ar,
  "ar-JO": ar,
  "ar-PL": ar,
  "ar-LB": ar,
  "ar-EG": ar,
  "ar-SD": ar,
  "ar-LY": ar,
  "ar-MA": ar,
  "ar-TN": ar,
  "ar-DZ": ar,
  "ar-MR": ar,
  "uk-UA": uk,
} as const
quartz/i18n/locales/ar-SA.ts
New file
@@ -0,0 +1,65 @@
import { Translation } from "./definition"
export default {
  propertyDefaults: {
    title: "غير معنون",
    description: "لم يتم تقديم أي وصف",
  },
  components: {
    backlinks: {
      title: "وصلات العودة",
      noBacklinksFound: "لا يوجد وصلات عودة",
    },
    themeToggle: {
      lightMode: "الوضع النهاري",
      darkMode: "الوضع الليلي",
    },
    explorer: {
      title: "المستعرض",
    },
    footer: {
      createdWith: "أُنشئ باستخدام",
    },
    graph: {
      title: "التمثيل التفاعلي",
    },
    recentNotes: {
      title: "آخر الملاحظات",
      seeRemainingMore: ({ remaining }) => `تصفح ${remaining} أكثر →`,
    },
    transcludes: {
      transcludeOf: ({ targetSlug }) => `مقتبس من ${targetSlug}`,
      linkToOriginal: "وصلة للملاحظة الرئيسة",
    },
    search: {
      title: "بحث",
      searchBarPlaceholder: "ابحث عن شيء ما",
    },
    tableOfContents: {
      title: "فهرس المحتويات",
    },
  },
  pages: {
    rss: {
      recentNotes: "آخر الملاحظات",
      lastFewNotes: ({ count }) => `آخر ${count} ملاحظة`,
    },
    error: {
      title: "غير موجود",
      notFound: "إما أن هذه الصفحة خاصة أو غير موجودة.",
    },
    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