Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Thai translation #625

Merged
merged 3 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ LoveIt 支持下列语言:
* 越南语
* 阿拉伯语
* 加泰罗尼亚语
* 泰语
* [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls)

[语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 基本配置

Expand Down
199 changes: 199 additions & 0 deletions i18n/th.toml
Original file line number Diff line number Diff line change
@@ -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 ===