diff --git a/README.md b/README.md index 4d441eda..949bb2f6 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,7 @@ LoveIt supports the following languages: * Vietnamese * Arabic * Catalan +* Thai * [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls) [Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility) diff --git a/README.zh-cn.md b/README.zh-cn.md index 81c1fa37..51542b32 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -138,6 +138,7 @@ LoveIt 支持下列语言: * 越南语 * 阿拉伯语 * 加泰罗尼亚语 +* 泰语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 1174d7fe..a945c99b 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -845,6 +845,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s | Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Arabic | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Catalan | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| Thai | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | ### 4.2 Basic Configuration diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index d3a8395e..0f8abf07 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -847,6 +847,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac | 越南语 | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 阿拉伯语 | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 加泰罗尼亚语 | `ca` | `ca` | :(far fa-square fa-fw): | :(far fa-square fa-fw): | +| 泰语 | `th` | `th` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | ### 4.2 基本配置 diff --git a/i18n/th.toml b/i18n/th.toml new file mode 100644 index 00000000..d79ecf26 --- /dev/null +++ b/i18n/th.toml @@ -0,0 +1,199 @@ +# Translations for Thai +# คำแปลภาษาไทย +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "กลับไปด้านบนสุด" + +[viewComments] +other = "ดูความคิดเห็น" +# === baseof == + +# === Post === +[posts] +other = "โพสต์" +# === Post === + +# === Taxonomy === +[allSome] +other = "ทั้งหมด {{ .Some }}" + +[tag] +other = "แท็ก" + +[tags] +other = "แท็ก" + +[category] +other = "หมวดหมู่" + +[categories] +other = "หมวดหมู่" +# === Taxonomy === + +# === Pagination === +[more] +other = "เพิ่มเติม" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "เลือกภาษา" + +[switchTheme] +other = "เปลี่ยนธีม" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "เว็บนี้สร้างโดย {{ .Hugo }} | ธีม - {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "th" + +[valinePlaceholder] +other = "ความคิดเห็นของคุณ ..." + +[facebookLanguageCode] +other = "th_TH" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "ค้นหา" + +[searchPlaceholder] +other = "ค้นหาด้วย 'หัวข้อ' หรือ 'เนื้อหา'..." + +[clear] +other = "ล้าง" + +[cancel] +other = "ยกเลิก" + +[noResultsFound] +other = "ไม่พบเนื้อหา" + +[lunrLanguageCode] +other = "th" + +[lunrLanguageLib] +other = "lib/lunr/lunr.th.js" + +[copyToClipboard] +other = "คัดลอกไปยังคลิปบอร์ด" + +[cookieconsentMessage] +other = "เว็บไซต์นี้มีการใช้คุกกี้เพื่อปรับปรุงประสิทธิภาพการแสดงผล." + +[cookieconsentDismiss] +other = "เข้าใจแล้ว!" + +[cookieconsentLink] +other = "เรียนรู้เพิ่มเติม" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "แชร์ไปยัง" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "เนื้อหา" + +[publishedOnDate] +other = "เผยแพร่เมื่อวันที่ {{ .Date }}" + +[includedInCategories] +other = "เนื้อหานี้อยู่ในกลุ่ม {{ .Categories }}" + +[wordCount] +one = "1 คำ" +other = "{{ .Count }} คำ" + +[readingTime] +one = "1 นาที" +other = "{{ .Count }} นาที" + +[views] +other = "ครั้ง" + +[author] +other = "ผู้เขียน" + +[updatedOnDate] +other = "ปรับปรุงล่าสุดเมื่อ {{ .Date }}" + +[readMarkdown] +other = "ดูโค้ด Markdown ของหน้านี้" + +[back] +other = "กลับ" + +[home] +other = "หน้าหลัก" + +[readMore] +other = "อ่านเพิ่มเติม" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "ไม่พบหน้าที่ค้นหา" + +[pageNotFoundText] +other = "เสียใจด้วย! เราไม่พบหน้าที่คุณพยายามค้นหา." +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "โน๊ต" + +[abstract] +other = "บทคัดย่อ" + +[info] +other = "ข้อมูล" + +[tip] +other = "ทิป" + +[success] +other = "สำเร็จ" + +[question] +other = "คำถาม" + +[warning] +other = "คำเตือน" + +[failure] +other = "ล้มเหลว" + +[danger] +other = "อันตราย" + +[bug] +other = "บั๊ก" + +[example] +other = "ตัวอย่าง" + +[quote] +other = "อ้างถึง" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "ใหม่" + +[changed] +other = "เปลี่ยนแปลง" + +[deleted] +other = "ลบ" +# === shortcodes/version.html ===