From a0d6daa3b4d736a9fe29b2ad15bea5f670f79dfa Mon Sep 17 00:00:00 2001
From: Alq <ahmed.elq53@gmail.com>
Date: Sat, 10 Feb 2024 17:02:28 +0000
Subject: [PATCH] feat(i18n): add Arabic translation (#837)
---
quartz/i18n/locales/ar-SA.ts | 65 ++++++++++++++++++++++++++++++++
quartz/i18n/index.ts | 21 ++++++++++
2 files changed, 86 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index 7fd978e..f9758d3 100644
--- a/quartz/i18n/index.ts
+++ b/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
diff --git a/quartz/i18n/locales/ar-SA.ts b/quartz/i18n/locales/ar-SA.ts
new file mode 100644
index 0000000..9c29b4d
--- /dev/null
+++ b/quartz/i18n/locales/ar-SA.ts
@@ -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
--
Gitblit v1.10.0