Skip to content

Commit

Permalink
Add Thai language in i18n (#329)
Browse files Browse the repository at this point in the history
* Update i18n.js

* Create peppermint.json

* Update peppermint.json

* Update peppermint.json

* Update new.tsx

* Update register.tsx

* Update profile.tsx
  • Loading branch information
TinnerKun authored May 31, 2024
1 parent f7941f3 commit 4735c7d
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/client/i18n.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
locales: ["en", "da", "de", "es", "fr", "no", "pt", "se", "tl", "it", "he", "tr", "hu"],
locales: ["en", "da", "de", "es", "fr", "no", "pt", "se", "tl", "it", "he", "tr", "hu", "th"],
defaultLocale: "en",
pages: {
"*": ["peppermint"],
},
localeDetection: false,
};
};
92 changes: 92 additions & 0 deletions apps/client/locales/th/peppermint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"hello_good": "สวัสดี",
"hello_morning": "ตอนเช้า",
"hello_afternoon": "ตอนบ่าย",
"sl_dashboard": "แผงควบคุม",
"sl_tickets": "ตั๋ว",
"sl_history": "ประวัติ",
"sl_notebook": "สมุดบันทึกส่วนตัว",
"sl_users": "ผู้ใช้",
"sl_clients": "ลูกค้า",
"sl_settings": "การตั้งค่า",
"open_tickets": "เปิดตั๋ว",
"completed_tickets": "ตั๋วที่เสร็จแล้ว",
"account_status": "สถานะบัญชี",
"todo_list": "รายการสิ่งที่ต้องทำ",
"personal_files": "ไฟล์ส่วนบุคคล",
"create_ticket": "สร้างตั๋ว",
"ticket_new": "ตั๋วใหม่",
"ticket_name_here": "ชื่อ",
"ticket_email_here": "อีเมล",
"ticket_details": "หัวเรื่อง",
"ticket_select_client": "เลือกลูกค้า",
"ticket_select_eng": "เลือกผู้ช่วยเหลือ",
"ticket_extra_details": "ป้อนรายละเอียดเพิ่มเติมที่นี่ (สามารถรองรับ Markdown ได้)",
"cancel": "ยกเลิก",
"create": "สร้าง",
"low": "ระดับ ต่ำ",
"normal": "ระดับ ปกติ",
"high": "ระดับ สูง",
"edit-btn": "แก้ไข",
"reset_password": "รีเซ็ตรหัสผ่าน",
"internal_users": "ผู้ใช้ภายใน",
"clients": "ลูกค้า",
"new_user": "ผู้ใช้ใหม่",
"new_client": "ลูกค้าใหม่",
"previous": "ก่อนหน้า",
"next": "ต่อไป",
"show": "แสดง",
"name": "ชื่อ",
"email": "อีเมล",
"settings": "การตั้งค่า",
"webhooks": "เว็บฮุค",
"version": "เวอร์ชัน",
"v_profile": "ดูข้อมูลส่วนตัว",
"reminders": "การแจ้งเตือน",
"title": "หัวเรื่อง",
"priority": "ลำดับความสำคัญ",
"status": "สถานะ",
"created": "สร้าง",
"assigned_to": "ได้รับมอบหมายให้",
"enter_todo": "เข้าสู่สิ่งที่ต้องทำ",
"notebooks": "สมุดบันทึก",
"notebooks_description": "นี่คือสมุดบันทึกส่วนตัว ที่นี่คุณสามารถบันทึกบันทึกย่อ ลิงก์ ข้อมูลโค้ด ฯลฯ",
"create_notebook": "สร้างสมุดบันทึก",
"open": "เปิด",
"assigned_to_me": "มอบหมายให้ฉัน",
"unassigned": "ยังไม่ได้มอบหมาย",
"closed": "ปิด",
"description": "คำอธิบาย",
"comments": "ความคิดเห็น",
"leave_comment": "ทิ้งข้อความไว้",
"close_issue": "ปิดประเด็น",
"comment": "ความคิดเห็น",
"save": "บันทึก",
"labels": "ป้ายกำกับ",
"created_at": "สร้างเมื่อ",
"updated_at": "อัปเดตที่",
"hide_ticket": "ซ่อนตั๋ว",
"show_ticket": "แสดงสู่สาธารณะ",
"open_issue": "เปิดประเด็น",
"closed_issue": "ประเด็นที่ปิดแล้ว",
"recent_tickets": "ตั๋วล่าสุด",
"notebook_title": "หัวเรื่องสมุดบันทึก",
"admin_settings": "การตั้งค่าแอดมิน",
"profile": "โปรไฟล์",
"logout": "ออกจากระบบ",
"unassigned_tickets": "ตั๋วที่ยังไม่ได้มอบหมาย",
"profile_desc": "ข้อมูลนี้จะถูกแสดงต่อสาธารณะดังนั้นกรุณาระมัดระวังเมื่อแชร์",
"language": "ภาษา",
"notifications": "การแจ้งเตือน",
"save_and_reload": "บันทึกและรีโหลด",
"select_a_client": "เลือกลูกค้า",
"select_an_engineer": "เลือกผู้ช่ายเหลือ",
"ticket_create": "สร้างตั๋ว",
"internallycommented_at": "ความคิดเห็นภายในเมื่อ",
"reopen_issue": "เปิดใหม่",
"needs_support": "ต้องการการสนับสนุน",
"in_progress": "กำลังดำเนินการ",
"in_review": "กำลังตรวจสอบ",
"done": "เสร็จแล้ว",
"select_new_user": "เลือกผู้ใช้ใหม่"
}
3 changes: 2 additions & 1 deletion apps/client/pages/admin/users/internal/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export default function CreateUser() {
<option value="he">Hebrew</option>
<option value="tr">Turkish</option>
<option value="hu">Hungarian</option>
<option value="th">Thai (ภาษาไทย)</option>
</select>
</div>
<div>
Expand Down Expand Up @@ -173,4 +174,4 @@ export default function CreateUser() {
</main>
</div>
);
}
}
1 change: 1 addition & 0 deletions apps/client/pages/auth/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default function Login({}) {
<option value="he">Hebrew</option>
<option value="tr">Turkish</option>
<option value="hu">Hungarian</option>
<option value="th">Thai (ภาษาไทย)</option>
</select>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion apps/client/pages/settings/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default function UserProfile() {
<option value="he">Hebrew</option>
<option value="tr">Turkish</option>
<option value="hu">Hungarian</option>
<option value="th">Thai (ภาษาไทย)</option>
</select>
</div>
</div>
Expand All @@ -129,4 +130,4 @@ export default function UserProfile() {
</div>
</>
);
}
}

0 comments on commit 4735c7d

Please sign in to comment.