From 8cf3e3001f2cbd18da73fcc92ae5f4b76d3ecf21 Mon Sep 17 00:00:00 2001
From: Patsagorn Y. <49602385+ptsgrn@users.noreply.github.com>
Date: Thu, 16 Jan 2025 20:44:33 +0000
Subject: [PATCH] feat(i18n): Thai translations (#1722)
---
quartz/i18n/locales/th-TH.ts | 82 +++++++++++++++++++++++++++++++++++++++++
quartz/i18n/index.ts | 2 +
2 files changed, 84 insertions(+), 0 deletions(-)
diff --git a/quartz/i18n/index.ts b/quartz/i18n/index.ts
index 97b0323..66200ae 100644
--- a/quartz/i18n/index.ts
+++ b/quartz/i18n/index.ts
@@ -22,6 +22,7 @@
import pl from "./locales/pl-PL"
import cs from "./locales/cs-CZ"
import tr from "./locales/tr-TR"
+import th from "./locales/th-TH"
export const TRANSLATIONS = {
"en-US": enUs,
@@ -68,6 +69,7 @@
"pl-PL": pl,
"cs-CZ": cs,
"tr-TR": tr,
+ "th-TH": th,
} as const
export const defaultTranslation = "en-US"
diff --git a/quartz/i18n/locales/th-TH.ts b/quartz/i18n/locales/th-TH.ts
new file mode 100644
index 0000000..4ea8486
--- /dev/null
+++ b/quartz/i18n/locales/th-TH.ts
@@ -0,0 +1,82 @@
+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: "หน้านี้อาจตั้งค่าเป็นส่วนตัวหรือยังไม่ถูกสร้าง",
+ home: "กลับหน้าหลัก",
+ },
+ folderContent: {
+ folder: "โฟลเดอร์",
+ itemsUnderFolder: ({ count }) => `มี ${count} รายการในโฟลเดอร์นี้`,
+ },
+ tagContent: {
+ tag: "แท็ก",
+ tagIndex: "แท็กทั้งหมด",
+ itemsUnderTag: ({ count }) => `มี ${count} รายการในแท็กนี้`,
+ showingFirst: ({ count }) => `แสดง ${count} แท็กแรก`,
+ totalTags: ({ count }) => `มีทั้งหมด ${count} แท็ก`,
+ },
+ },
+} as const satisfies Translation
--
Gitblit v1.10.0