From 3c4d54352d69b6274dd62b9510d62419cd15baf4 Mon Sep 17 00:00:00 2001
From: Eledah <eledah@users.noreply.github.com>
Date: Mon, 13 May 2024 16:12:06 +0000
Subject: [PATCH] feat(i18n): add Farsi (#1133)
---
quartz/i18n/locales/fa-IR.ts | 83 +++++++++++++++++++++++++++++++++++++++++
quartz/i18n/index.ts | 2 +
2 files changed, 85 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index 6707ea3..9a86d61 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -15,6 +15,7 @@
import vi from "./locales/vi-VN"
import pt from "./locales/pt-BR"
import hu from "./locales/hu-HU"
+import fa from "./locales/fa-IR"
export const TRANSLATIONS = {
"en-US": en,
@@ -54,6 +55,7 @@
"vi-VN": vi,
"pt-BR": pt,
"hu-HU": hu,
+ "fa-IR": fa,
} as const
export const defaultTranslation = "en-US"
diff --git a/quartz/i18n/locales/fa-IR.ts b/quartz/i18n/locales/fa-IR.ts
new file mode 100644
index 0000000..6ea7730
--- /dev/null
+++ b/quartz/i18n/locales/fa-IR.ts
@@ -0,0 +1,83 @@
+import { Translation } from "./definition"
+
+export default {
+ propertyDefaults: {
+ title: "بدون عنوان",
+ description: "توضیح خاصی اضافه نشده است",
+ },
+ components: {
+ callout: {
+ note: "یادداشت",
+ abstract: "چکیده",
+ info: "اطلاعات",
+ todo: "اقدام",
+ tip: "نکته",
+ success: "تیک",
+ question: "سؤال",
+ warning: "هشدار",
+ failure: "شکست",
+ danger: "خطر",
+ bug: "باگ",
+ example: "مثال",
+ quote: "نقل قول",
+ },
+ 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: "فهرست",
+ },
+ contentMeta: {
+ readingTime: ({ minutes }) => `زمان تقریبی مطالعه: ${minutes} دقیقه`,
+ },
+ },
+ 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