Nizav
2025-05-24 73983cfb0edb93185df5ec65cda33f3636943c0f
feat(i18n): Bahasa Indonesia translations (#1981)

1 files added
1 files modified
89 ■■■■■ changed files
quartz/i18n/index.ts 2 ●●●●● patch | view | raw | blame | history
quartz/i18n/locales/id-ID.ts 87 ●●●●● patch | view | raw | blame | history
quartz/i18n/index.ts
@@ -26,6 +26,7 @@
import lt from "./locales/lt-LT"
import fi from "./locales/fi-FI"
import no from "./locales/nb-NO"
import id from "./locales/id-ID"
export const TRANSLATIONS = {
  "en-US": enUs,
@@ -76,6 +77,7 @@
  "lt-LT": lt,
  "fi-FI": fi,
  "nb-NO": no,
  "id-ID": id,
} as const
export const defaultTranslation = "en-US"
quartz/i18n/locales/id-ID.ts
New file
@@ -0,0 +1,87 @@
import { Translation } from "./definition"
export default {
  propertyDefaults: {
    title: "Tanpa Judul",
    description: "Tidak ada deskripsi",
  },
  components: {
    callout: {
      note: "Catatan",
      abstract: "Abstrak",
      info: "Info",
      todo: "Daftar Tugas",
      tip: "Tips",
      success: "Berhasil",
      question: "Pertanyaan",
      warning: "Peringatan",
      failure: "Gagal",
      danger: "Bahaya",
      bug: "Bug",
      example: "Contoh",
      quote: "Kutipan",
    },
    backlinks: {
      title: "Tautan Balik",
      noBacklinksFound: "Tidak ada tautan balik ditemukan",
    },
    themeToggle: {
      lightMode: "Mode Terang",
      darkMode: "Mode Gelap",
    },
    readerMode: {
      title: "Mode Pembaca",
    },
    explorer: {
      title: "Penjelajah",
    },
    footer: {
      createdWith: "Dibuat dengan",
    },
    graph: {
      title: "Tampilan Grafik",
    },
    recentNotes: {
      title: "Catatan Terbaru",
      seeRemainingMore: ({ remaining }) => `Lihat ${remaining} lagi →`,
    },
    transcludes: {
      transcludeOf: ({ targetSlug }) => `Transklusi dari ${targetSlug}`,
      linkToOriginal: "Tautan ke asli",
    },
    search: {
      title: "Cari",
      searchBarPlaceholder: "Cari sesuatu",
    },
    tableOfContents: {
      title: "Daftar Isi",
    },
    contentMeta: {
      readingTime: ({ minutes }) => `${minutes} menit baca`,
    },
  },
  pages: {
    rss: {
      recentNotes: "Catatan terbaru",
      lastFewNotes: ({ count }) => `${count} catatan terakhir`,
    },
    error: {
      title: "Tidak Ditemukan",
      notFound: "Halaman ini bersifat privat atau tidak ada.",
      home: "Kembali ke Beranda",
    },
    folderContent: {
      folder: "Folder",
      itemsUnderFolder: ({ count }) =>
        count === 1 ? "1 item di bawah folder ini." : `${count} item di bawah folder ini.`,
    },
    tagContent: {
      tag: "Tag",
      tagIndex: "Indeks Tag",
      itemsUnderTag: ({ count }) =>
        count === 1 ? "1 item dengan tag ini." : `${count} item dengan tag ini.`,
      showingFirst: ({ count }) => `Menampilkan ${count} tag pertama.`,
      totalTags: ({ count }) => `Ditemukan total ${count} tag.`,
    },
  },
} as const satisfies Translation