feat(i18n): add Farsi (#1133)
* Add fa-IR translation via upload * Add files via upload * Ran npm run format
This commit is contained in:
		@@ -15,6 +15,7 @@ import zh from "./locales/zh-CN"
 | 
			
		||||
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 @@ export const TRANSLATIONS = {
 | 
			
		||||
  "vi-VN": vi,
 | 
			
		||||
  "pt-BR": pt,
 | 
			
		||||
  "hu-HU": hu,
 | 
			
		||||
  "fa-IR": fa,
 | 
			
		||||
} as const
 | 
			
		||||
 | 
			
		||||
export const defaultTranslation = "en-US"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										83
									
								
								quartz/i18n/locales/fa-IR.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								quartz/i18n/locales/fa-IR.ts
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user