Osman Tunahan ARIKAN
2024-10-30 a53772bbd1dd2804872ae0e519bedeb2a2fd4287
feat(i18n): add turkish language (#1554)

1 files added
1 files modified
86 ■■■■■ changed files
quartz/i18n/index.ts 2 ●●●●● patch | view | raw | blame | history
quartz/i18n/locales/tr-TR.ts 84 ●●●●● patch | view | raw | blame | history
quartz/i18n/index.ts
@@ -20,6 +20,7 @@
import fa from "./locales/fa-IR"
import pl from "./locales/pl-PL"
import cs from "./locales/cs-CZ"
import tr from "./locales/tr-TR"
export const TRANSLATIONS = {
  "en-US": enUs,
@@ -64,6 +65,7 @@
  "fa-IR": fa,
  "pl-PL": pl,
  "cs-CZ": cs,
  "tr-TR": tr,
} as const
export const defaultTranslation = "en-US"
quartz/i18n/locales/tr-TR.ts
New file
@@ -0,0 +1,84 @@
import { Translation } from "./definition"
export default {
  propertyDefaults: {
    title: "İsimsiz",
    description: "Herhangi bir açıklama eklenmedi",
  },
  components: {
    callout: {
      note: "Not",
      abstract: "Özet",
      info: "Bilgi",
      todo: "Yapılacaklar",
      tip: "İpucu",
      success: "Başarılı",
      question: "Soru",
      warning: "Uyarı",
      failure: "Başarısız",
      danger: "Tehlike",
      bug: "Hata",
      example: "Örnek",
      quote: "Alıntı",
    },
    backlinks: {
      title: "Backlinkler",
      noBacklinksFound: "Backlink bulunamadı",
    },
    themeToggle: {
      lightMode: "Açık mod",
      darkMode: "Koyu mod",
    },
    explorer: {
      title: "Gezgin",
    },
    footer: {
      createdWith: "Şununla oluşturuldu",
    },
    graph: {
      title: "Grafik Görünümü",
    },
    recentNotes: {
      title: "Son Notlar",
      seeRemainingMore: ({ remaining }) => `${remaining} tane daha gör →`,
    },
    transcludes: {
      transcludeOf: ({ targetSlug }) => `${targetSlug} sayfasından alıntı`,
      linkToOriginal: "Orijinal bağlantı",
    },
    search: {
      title: "Arama",
      searchBarPlaceholder: "Bir şey arayın",
    },
    tableOfContents: {
      title: "İçindekiler",
    },
    contentMeta: {
      readingTime: ({ minutes }) => `${minutes} dakika okuma süresi`,
    },
  },
  pages: {
    rss: {
      recentNotes: "Son notlar",
      lastFewNotes: ({ count }) => `Son ${count} not`,
    },
    error: {
      title: "Bulunamadı",
      notFound: "Bu sayfa ya özel ya da mevcut değil.",
      home: "Anasayfaya geri dön",
    },
    folderContent: {
      folder: "Klasör",
      itemsUnderFolder: ({ count }) =>
        count === 1 ? "Bu klasör altında 1 öğe." : `Bu klasör altındaki ${count} öğe.`,
    },
    tagContent: {
      tag: "Etiket",
      tagIndex: "Etiket Sırası",
      itemsUnderTag: ({ count }) =>
        count === 1 ? "Bu etikete sahip 1 öğe." : `Bu etiket altındaki ${count} öğe.`,
      showingFirst: ({ count }) => `İlk ${count} etiket gösteriliyor.`,
      totalTags: ({ count }) => `Toplam ${count} adet etiket bulundu.`,
    },
  },
} as const satisfies Translation