refactor: migrate i18n files from YAML to TOML format and simplify structure (#1230)

* refactor: migrate i18n files from YAML to TOML format and simplify structure

* refactor: make translation file adjust to gohugoio/locales language code so date translation can work properly

* refactor: use hyphens instead of underscores for i18n, because that's how Hugo pick the translation file

* docs: update comments for i18n language availability and CJK language detection in hugo.toml.
This commit is contained in:
Jimmy
2026-01-25 21:01:32 +01:00
committed by GitHub
parent 406fcef7cd
commit c872a77edb
73 changed files with 1495 additions and 2303 deletions
+44
View File
@@ -0,0 +1,44 @@
toggleMenu = "สลับเมนู"
darkMode = "ธีมมืด"
[list]
section = "หมวดหมู่"
[list.page]
one = "{{ .Count }} หน้า"
other = "{{ .Count }} หน้า"
[list.subsection]
one = "หมวดหมู่ย่อย"
other = "หมวดหมู่ย่อยอื่นๆ"
[article]
back = "กลับไป"
tableOfContents = "สารบัญ"
relatedContent = "เนื้อหาคล้ายคลึงกัน"
lastUpdatedOn = "อัปเดตล่าสุดเมื่อ"
[article.readingTime]
one = "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
other = "น่าจะใช้เวลา {{ .Count }} นาทีในการอ่าน"
[notFound]
title = "ไม่พบหัวข้อ"
subtitle = "ไม่พบหน้านี้ในระบบ"
[widget]
[widget.archives]
title = "เนื้อหาที่เก็บถาวรแล้ว"
more = "อื่นๆ นอกจากนี้"
[widget.tagCloud]
title = "แท็ก"
[search]
title = "ค้นหา"
placeholder = "พิมพ์เพื่อค้นหา ..."
resultTitle = "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
[footer]
builtWith = "ถูกสร้างด้วย {{ .Generator }}"
designedBy = "ธีม {{ .Theme }} ออกแบบโดย {{ .DesignedBy }}"