fix(client): translate the dashboard, drop redundant font sizes, reword the header
Three fixes from an audit of the dashboard against docs/coding-conventions.md.
Translations. The dashboard shipped English-only: all 18 other locales
had an empty pages.dashboard block, so every non-English user saw raw key
paths like pages.dashboard.cards.monitorStatus.title. All 18 are now
seeded, reusing each locale's own existing vocabulary for uptime,
incidents, checks and so on so the dashboard reads consistently with the
rest of that translation. Verified: all 91 keys the code uses resolve in
all 19 locales, with no interpolation placeholder mismatches.
Rule 3. Thirty-one fontSize={typographyLevels.m} props removed. The
conventions doc is explicit that 13px is the body default and the prop
should be dropped entirely; setting it to the token was my error while
fixing an earlier font-size complaint. Only the two xxl figures keep an
explicit size, which is correct. Nine now-dead typographyLevels imports
went with them.
Header description. "What is wrong right now, across every monitor type."
was a negative sentence fragment; every other page uses a full sentence
describing what the page gives you and why it helps. Reworded to match.
Rules 1, 2, 4, 5 and the i18n rule already passed and needed no change.
Claude-Session: https://claude.ai/code/session_01AbYLvwpEaZFXktHVcqrFRd
This commit is contained in:
1 parent
e3a565d976
commit
dad32bc475
30 files changed
+2572
-114
No files matched your search
+142
-1
@@ -181,7 +181,8 @@
|
||||
"statusPages": "หน้าสถานะ",
|
||||
"maintenance": "การบำรุงรักษา",
|
||||
"logs": "บันทึก",
|
||||
"settings": "การตั้งค่า"
|
||||
"settings": "การตั้งค่า",
|
||||
"dashboard": "แดชบอร์ด"
|
||||
},
|
||||
"bottomMenu": {
|
||||
"support": "การสนับสนุน",
|
||||
@@ -223,6 +224,146 @@
|
||||
}
|
||||
},
|
||||
"pages": {
|
||||
"dashboard": {
|
||||
"header": {
|
||||
"title": "แดชบอร์ด",
|
||||
"description": "ดู uptime โครงสร้างพื้นฐาน เหตุการณ์ และการตรวจสอบในที่เดียว เพื่อสังเกตสิ่งที่ต้องดูแลโดยไม่ต้องเปิดทุกหน้า"
|
||||
},
|
||||
"card": {
|
||||
"error": "ไม่สามารถโหลดการ์ดนี้ได้"
|
||||
},
|
||||
"cards": {
|
||||
"monitorStatus": {
|
||||
"title": "สถานะตัวตรวจสอบ",
|
||||
"empty": "ยังไม่มีตัวตรวจสอบ",
|
||||
"upOfTotal": "จาก {{total}} ที่ทำงาน"
|
||||
},
|
||||
"currentlyDown": {
|
||||
"title": "ขณะนี้ล่ม",
|
||||
"empty": "ตัวตรวจสอบทั้งหมดทำงานอยู่ ไม่มีเหตุการณ์ที่เปิดค้าง",
|
||||
"count": "{{count}} รายการต้องดูแล"
|
||||
},
|
||||
"monitorsByType": {
|
||||
"title": "ตัวตรวจสอบตามประเภท",
|
||||
"empty": "ยังไม่มีตัวตรวจสอบ",
|
||||
"down": "ล่ม {{count}} รายการ"
|
||||
},
|
||||
"recentIncidents": {
|
||||
"title": "เหตุการณ์ล่าสุด",
|
||||
"empty": "ไม่มีเหตุการณ์ — ทุกระบบปกติ",
|
||||
"active": "เปิดอยู่ {{count}} รายการ",
|
||||
"ongoing": "กำลังดำเนินอยู่",
|
||||
"manual": "ด้วยตนเอง",
|
||||
"unknownMonitor": "ตัวตรวจสอบที่ไม่รู้จัก"
|
||||
},
|
||||
"failedChecks": {
|
||||
"title": "การตรวจสอบที่ล้มเหลว",
|
||||
"empty": "ยังไม่มีการตรวจสอบ",
|
||||
"ratio": "{{failed}} จาก {{total}} ในวันที่ผ่านมา"
|
||||
},
|
||||
"checkmateServer": {
|
||||
"title": "เซิร์ฟเวอร์ Checkmate",
|
||||
"memory": "หน่วยความจำ",
|
||||
"eventLoop": "ความหน่วงของ event loop",
|
||||
"uptime": "เวลาทำงาน",
|
||||
"database": "ฐานข้อมูล",
|
||||
"readsWrites": "อ่าน {{reads}}/วิ · เขียน {{writes}}/วิ"
|
||||
},
|
||||
"ranking": {
|
||||
"topOf": "อันดับต้น {{shown}} จาก {{total}}",
|
||||
"notEnough": "มีตัวตรวจสอบไม่พอสำหรับจัดอันดับ"
|
||||
},
|
||||
"slowestMonitors": {
|
||||
"title": "ตัวตรวจสอบที่ช้าที่สุด"
|
||||
},
|
||||
"lowestUptime": {
|
||||
"title": "uptime ต่ำที่สุด"
|
||||
},
|
||||
"monitorsByGroup": {
|
||||
"title": "ตัวตรวจสอบตามกลุ่ม",
|
||||
"empty": "ยังไม่มีกลุ่ม กลุ่มถูกกำหนดในแต่ละตัวตรวจสอบ"
|
||||
},
|
||||
"busiestServers": {
|
||||
"title": "เซิร์ฟเวอร์ที่ใช้งานหนักที่สุด",
|
||||
"empty": "ยังไม่มีตัวตรวจสอบโครงสร้างพื้นฐาน",
|
||||
"cpu": "CPU",
|
||||
"memory": "หน่วยความจำ",
|
||||
"disk": "ดิสก์"
|
||||
},
|
||||
"incidentStats": {
|
||||
"title": "สถิติเหตุการณ์",
|
||||
"openNow": "เปิดอยู่ตอนนี้",
|
||||
"avgResolution": "เวลาแก้ไขโดยเฉลี่ย",
|
||||
"hours": "{{hours}} ชม.",
|
||||
"mostIncidents": "เหตุการณ์มากที่สุด",
|
||||
"total": "ทั้งหมด",
|
||||
"resolved": "แก้ไขแล้ว",
|
||||
"automatic": "อัตโนมัติ",
|
||||
"manual": "ด้วยตนเอง",
|
||||
"autoManual": "อัตโนมัติ {{automatic}} · ด้วยตนเอง {{manual}}"
|
||||
},
|
||||
"notificationChannels": {
|
||||
"title": "ช่องทางการแจ้งเตือน",
|
||||
"empty": "ยังไม่มีช่องทาง"
|
||||
},
|
||||
"maintenance": {
|
||||
"title": "ช่วงเวลาบำรุงรักษา",
|
||||
"empty": "ไม่มีการบำรุงรักษาที่กำหนดไว้",
|
||||
"runningNow": "กำลังดำเนินการ",
|
||||
"next": "ช่วงถัดไป"
|
||||
},
|
||||
"statusPages": {
|
||||
"title": "หน้าสถานะ",
|
||||
"empty": "ยังไม่มีหน้าสถานะ",
|
||||
"monitorCount": "{{count}} ตัวตรวจสอบ",
|
||||
"published": "เผยแพร่แล้ว",
|
||||
"draft": "ฉบับร่าง"
|
||||
},
|
||||
"checksOnSchedule": {
|
||||
"title": "คิวการตรวจสอบ",
|
||||
"healthy": "งานทั้ง {{jobs}} รายการเป็นไปตามกำหนดบน {{workers}} worker",
|
||||
"failing": "งานที่ล้มเหลว",
|
||||
"scheduled": "งานที่กำหนดเวลาไว้",
|
||||
"runningNow": "กำลังดำเนินการ"
|
||||
},
|
||||
"recentErrors": {
|
||||
"title": "ข้อผิดพลาดล่าสุด",
|
||||
"empty": "ไม่มีข้อผิดพลาดที่บันทึกไว้",
|
||||
"count": "{{count}} ข้อผิดพลาด",
|
||||
"warnings": "คำเตือน"
|
||||
},
|
||||
"team": {
|
||||
"title": "สมาชิกทีม",
|
||||
"members": "{{count}} สมาชิก",
|
||||
"unverified": "ยังไม่ยืนยัน"
|
||||
}
|
||||
},
|
||||
"picker": {
|
||||
"trigger": "แก้ไขการ์ด",
|
||||
"title": "การ์ดแดชบอร์ด",
|
||||
"done": "เสร็จสิ้น",
|
||||
"reset": "รีเซ็ตเป็นค่าเริ่มต้น",
|
||||
"groups": {
|
||||
"uptime": "Uptime",
|
||||
"infrastructure": "โครงสร้างพื้นฐาน",
|
||||
"incidents": "เหตุการณ์",
|
||||
"notifications": "การแจ้งเตือน",
|
||||
"maintenance": "การบำรุงรักษา",
|
||||
"statusPages": "หน้าสถานะ",
|
||||
"checks": "การตรวจสอบ",
|
||||
"logs": "ระบบ",
|
||||
"settings": "การตั้งค่า"
|
||||
}
|
||||
},
|
||||
"empty": {
|
||||
"title": "ไม่มีการ์ดบนแดชบอร์ดของคุณ",
|
||||
"description": "เลือกการ์ดที่ต้องการเห็น การเลือกของคุณจะถูกจดจำในเบราว์เซอร์นี้"
|
||||
},
|
||||
"reorder": {
|
||||
"moveUp": "เลื่อนขึ้น",
|
||||
"moveDown": "เลื่อนลง"
|
||||
}
|
||||
},
|
||||
"notFound": {
|
||||
"title": "โอ้ไม่! ซูชิของคุณหล่นแล้ว!",
|
||||
"subtitle": "URL ไม่มีอยู่ หรือคุณไม่มีสิทธิ์เข้าถึง"
|
||||
|
||||
Reference in new issue
Block a user