From 7d0769e8dc3b3f1586374a2a6aa2ad931b4332a2 Mon Sep 17 00:00:00 2001 From: ChaiyoKung Date: Wed, 1 Oct 2025 23:50:05 +0700 Subject: [PATCH] docs: add Thai translation and update README language links --- README.md | 2 +- docs/th/README-th.md | 175 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+), 1 deletion(-) create mode 100644 docs/th/README-th.md diff --git a/README.md b/README.md index 412219c53..f7e007dba 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ --- -English | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) | [עברית](./docs/he/README-he.md) +English | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) | [עברית](./docs/he/README-he.md) | [ไทย](./docs/th/README-th.md)

+ +Warp sponsorship +
+Warp ถูกสร้างขึ้นเพื่อการเขียนโค้ดร่วมกับ AI agent หลายตัว +
+ + +--- + +[English](../../README.md) | [简体中文](../zh-cn/README.zh-CN.md) | [日本語](../ja/README-ja.md) | [Português Brasileiro](../pt-br/README-pt-br.md) | [한국어](../ko/README-ko.md) | [Español (España)](../es-es/README-es-es.md) | [Русский](../ru/README-ru.md) | [Türkçe](../tr/README-tr.md) | [සිංහල](../si/README-si.md) | [עברית](../he/README-he.md) | ไทย + +

Day.js

+

ทางเลือกที่รวดเร็ว 2kB สำหรับ Moment.js พร้อม API สมัยใหม่แบบเดียวกัน

+

+ Gzip Size + NPM Version + Build Status + Codecov + License +
+ + Sauce Test Status + +

+ +> Day.js เป็นไลบรารี JavaScript ขนาดเล็กที่ใช้สำหรับแปลง ตรวจสอบ ปรับแต่ง และแสดงวันที่และเวลาในเบราว์เซอร์สมัยใหม่ โดยมี API ที่คล้ายกับ Moment.js หากคุณเคยใช้ Moment.js คุณก็สามารถใช้ Day.js ได้ทันที + +```js +dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss'); +``` + +* 🕒 API และรูปแบบการใช้งานคล้าย Moment.js +* 💪 ไม่เปลี่ยนแปลงค่าเดิม (Immutable) +* 🔥 เชื่อมต่อคำสั่งได้ (Chainable) +* 🌐 รองรับหลายภาษา (I18n) +* 📦 ไลบรารีขนาดเล็ก 2kb +* 👫 รองรับทุกเบราว์เซอร์ + +--- + +## เริ่มต้นใช้งาน + +### เอกสารประกอบ + +สามารถดูรายละเอียดเพิ่มเติม, API และเอกสารอื่น ๆ ได้ที่เว็บไซต์ [day.js.org](https://day.js.org/) + +### การติดตั้ง + +```console +npm install dayjs --save +``` + +📚[คู่มือการติดตั้ง](https://day.js.org/docs/en/installation/installation) + +### API + +ใช้งาน API ของ Day.js ได้ง่ายในการแปลง ตรวจสอบ ปรับแต่ง และแสดงวันที่และเวลา + +```javascript +dayjs('2018-08-08') // แปลง + +dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // แสดงผล + +dayjs().set('month', 3).month() // get & set + +dayjs().add(1, 'year') // ปรับแต่ง + +dayjs().isBefore(dayjs()) // ตรวจสอบ +``` + +📚[API Reference](https://day.js.org/docs/en/parse/parse) + +### I18n + +Day.js รองรับการแปลหลายภาษาอย่างดี + +แต่จะไม่ถูกเพิ่มเข้าไปใน build ของคุณ เว้นแต่คุณจะเรียกใช้งาน + +```javascript +import 'dayjs/locale/es' // โหลดเมื่อจำเป็น + +dayjs.locale('es') // ใช้ภาษา Spanish ทั่วทั้งโปรเจกต์ + +dayjs('2018-05-05').locale('zh-cn').format() // ใช้ภาษาจีนใน instance เฉพาะ +``` + +📚[Internationalization](https://day.js.org/docs/en/i18n/i18n) + +### Plugin + +Plugin คือโมดูลอิสระที่สามารถเพิ่มเข้าไปใน Day.js เพื่อขยายความสามารถหรือเพิ่มฟีเจอร์ใหม่ + +```javascript +import advancedFormat from 'dayjs/plugin/advancedFormat' // โหลดเมื่อจำเป็น + +dayjs.extend(advancedFormat) // ใช้งาน plugin + +dayjs().format('Q Do k kk X x') // รูปแบบเพิ่มเติม +``` + +📚[รายการ Plugin](https://day.js.org/docs/en/plugin/plugin) + +## ผู้สนับสนุน + +สนับสนุนโปรเจกต์นี้โดยการเป็นผู้สนับสนุน โลโก้ของคุณจะปรากฏที่นี่พร้อมลิงก์ไปยังเว็บไซต์ของคุณ + +[[เป็นผู้สนับสนุนผ่าน Github](https://github.com/sponsors/iamkun/)] [[เป็นผู้สนับสนุนผ่าน OpenCollective](https://opencollective.com/dayjs#sponsor)] + + + + +         + + + +         + + + +         + + + +         + + + +         + + BestKru + +         + + + +         + + Route Optimizer and Route Planner Software + +         + + + +         + + + + +## ผู้ร่วมพัฒนา + +โปรเจกต์นี้เกิดขึ้นได้ด้วยผู้ร่วมพัฒนาทุกคน + +ขอเชิญให้กด 💖 star 💖 เพื่อสนับสนุนเรา ขอบคุณมาก + +และขอขอบคุณผู้สนับสนุนทุกท่าน! 🙏 + + + + + +
+ + +## ลิขสิทธิ์ + +Day.js ได้รับอนุญาตภายใต้ [สัญญาอนุญาต MIT](../../LICENSE)