Skip to content

Commit a290670

Browse files
committed
feat: add Thai locale
1 parent d7fe08f commit a290670

4 files changed

Lines changed: 86 additions & 1 deletion

File tree

src/components/LocaleSelector.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ const localeItemList: LocaleItem[] = [
3232
value: "de",
3333
label: "Deutsch",
3434
},
35+
{
36+
value: "th",
37+
label: "ยาสุฟุมิ",
38+
},
3539
];
3640

3741
const LocaleSelector = () => {

src/locales/i18n.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import zhHant from "./zh-Hant.json";
66
import esLocale from "./es.json";
77
import jpLocale from "./jp.json";
88
import deLocale from "./de.json";
9+
import thLocale from "./th.json";
910

1011
i18n.use(initReactI18next).init({
1112
resources: {
@@ -27,6 +28,9 @@ i18n.use(initReactI18next).init({
2728
de: {
2829
translation: deLocale,
2930
},
31+
th: {
32+
translation: thLocale,
33+
},
3034
},
3135
fallbackLng: "en",
3236
});

src/locales/th.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"common": {
3+
"clear": "ล้าง",
4+
"close": "ปิด",
5+
"confirm": "ยืนยัน",
6+
"save": "บันทึก",
7+
"edit": "แก้ไข",
8+
"loading": "กำลังโหลด",
9+
"setting": "ตั้งค่า",
10+
"copy": "คัดลอก",
11+
"delete": "ลบ",
12+
"execute": "ดำเนินการ"
13+
},
14+
"conversation": {
15+
"new-chat": "แชทใหม่",
16+
"conversation-title": "หัวข้อการสนทนา",
17+
"update": "อัปเดตการสนทนา",
18+
"title": "หัวข้อ"
19+
},
20+
"connection": {
21+
"self": "การเชื่อมต่อ",
22+
"new": "สร้างการเชื่อมต่อ",
23+
"edit": "แก้ไขการเชื่อมต่อ",
24+
"select-database": "เลือกฐานข้อมูลของคุณ",
25+
"database-type": "ประเภทฐานข้อมูล",
26+
"title": "หัวข้อ",
27+
"host": "โฮสต์",
28+
"port": "พอร์ต",
29+
"database-name": "ชื่อฐานข้อมูล",
30+
"username": "ชื่อผู้ใช้",
31+
"password": "รหัสผ่าน"
32+
},
33+
"assistant": {
34+
"self": "บอท",
35+
"create-your-bot": "ไม่พบบอทที่คุณต้องการ? สร้างใหม่"
36+
},
37+
"execution": {
38+
"title": "ดำเนินการ SQL",
39+
"message": {
40+
"executing": "กำลังดำเนินการคำสั่ง...",
41+
"no-connection": "ไม่ได้เลือกการเชื่อมต่อ",
42+
"no-data": "ไม่มีข้อมูลที่ส่งกลับ"
43+
}
44+
},
45+
"editor": {
46+
"placeholder": "กรอกคำถามของคุณที่นี่..."
47+
},
48+
"setting": {
49+
"self": "ตั้งค่า",
50+
"basic": {
51+
"self": "พื้นฐาน",
52+
"language": "ภาษา"
53+
},
54+
"theme": {
55+
"self": "ธีม",
56+
"system": "ตามระบบ",
57+
"light": "สว่าง",
58+
"dark": "เข้ม"
59+
},
60+
"openai-api-configuration": {
61+
"self": "การกำหนดค่า OpenAI API"
62+
},
63+
"data": {
64+
"self": "ข้อมูล",
65+
"clear-all-data": "ลบข้อมูลทั้งหมด"
66+
}
67+
},
68+
"social": {
69+
"join-discord-channel": "เข้าร่วมช่อง Discord",
70+
"join-wechat-group": "เข้าร่วมกลุ่ม WeChat"
71+
},
72+
"banner": {
73+
"data-storage": "การตั้งค่าการเชื่อมต่อจะถูกเก็บไว้ในเบราว์เซอร์ของคุณ",
74+
"non-select-sql-warning": "คำสั่งปัจจุบันอาจเป็นคำสั่ง SQL ที่ไม่ใช่ SELECT ซึ่งจะทำให้เกิดการเปลี่ยนแปลงโครงสร้างฐานข้อมูลหรือข้อมูล โปรดตรวจสอบว่าคุณรู้ว่าตัวเองกำลังทำอะไร",
75+
"product-hunt": "🚀🚀🚀 เราเพิ่งเปิดตัวบน Product Hunt โปรดโหวตเรา! 🚀🚀🚀"
76+
}
77+
}

src/types/setting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type Locale = "en" | "zh" | "zhHant" | "es" | "jp" | "de";
1+
export type Locale = "en" | "zh" | "zhHant" | "es" | "jp" | "de" | "th";
22

33
export type Theme = "light" | "dark" | "system";
44

0 commit comments

Comments
 (0)