diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js index 2c0b0c5..1d23a79 100644 --- a/frontend/src/locales/th.js +++ b/frontend/src/locales/th.js @@ -3,6 +3,7 @@ export default { // --- generic --- 'Confirm': 'ยืนยัน', 'Cancel': 'ยกเลิก', + 'Press back again to exit': 'กดย้อนกลับอีกครั้งเพื่อออก', 'Delete': 'ลบ', 'Save': 'บันทึก', 'Import': 'นำเข้า', @@ -94,6 +95,11 @@ export default { 'Weight ({0})': 'น้ำหนัก ({0})', 'Add to routine': 'เพิ่มเข้ารูทีน', 'Remove exercise': 'ลบท่าออกกำลังกาย', + 'Remove {0}?': 'ลบ {0}?', + 'The sets you logged for this exercise in this session will be lost.': 'เซ็ตที่บันทึกไว้สำหรับท่านี้ในรอบนี้จะหายไป', + 'This removes the exercise from your current session.': 'จะลบท่านี้ออกจากรอบออกกำลังกายปัจจุบันของคุณ', + 'Remove': 'ลบ', + 'Which exercise in this superset do you want to remove?': 'ต้องการลบท่าไหนในซูเปอร์เซ็ตนี้?', 'Pick an icon': 'เลือกไอคอน', // --- day planning / calendar --- 'Back to weekly plan': 'กลับไปแผนรายสัปดาห์', @@ -159,13 +165,33 @@ export default { 'Last time you hit all reps — try {0}': 'ครั้งก่อนทำครบทุกครั้งแล้ว — ลอง {0}', 'Weights bumped to {0}': 'เพิ่มน้ำหนักเป็น {0}', 'Remove set': 'ลบเซ็ต', + 'Warm-up': 'วอร์มอัพ', + 'Add warm-up set': 'เพิ่มเซ็ตวอร์มอัพ', 'Add set': 'เพิ่มเซ็ต', + '+ Drop': '+ ดรอป', + '+ Burst': '+ เบิร์สต์', + 'Drop {0}': 'ดรอป {0}', + 'Burst {0}': 'เบิร์สต์ {0}', + 'Remove drop': 'ลบดรอป', + 'Remove burst': 'ลบเบิร์สต์', + 'Rest (s)': 'พัก (วินาที)', + 'Drop-set / rest-pause': 'ดรอปเซ็ต / เรสต์-พอส', + 'Intensifier': 'เทคนิคเพิ่มความหนัก', + 'None': 'ไม่มี', + 'Drop-set': 'ดรอปเซ็ต', + 'Rest-pause': 'เรสต์-พอส', + 'Drops': 'จำนวนดรอป', + 'Weight drop (%)': 'ลดน้ำหนัก (%)', + 'Rest-pause reps': 'จำนวนครั้งเรสต์-พอส', + 'Rest-pause rest': 'พักเรสต์-พอส', + 'Every set becomes a drop-set: after the main set, {0} drop(s) with no rest, each about {1}% lighter.': 'ทุกเซ็ตจะกลายเป็นดรอปเซ็ต: หลังเซ็ตหลักจะมี {0} ดรอปโดยไม่พัก แต่ละดรอปเบาลงประมาณ {1}%', + 'Every set becomes rest-pause: {0} reps to start, then {1} more split into short bursts, {2}s rest before each, roughly halving each time.': 'ทุกเซ็ตจะกลายเป็นเรสต์-พอส: เริ่มด้วย {0} ครั้ง จากนั้นอีก {1} ครั้งแบ่งเป็นชุดสั้น ๆ พัก {2} วินาทีก่อนแต่ละชุด โดยลดลงเกือบครึ่งทุกครั้ง', 'Cardio logged': 'บันทึกคาร์ดิโอแล้ว', 'Discard workout?': 'ทิ้งการออกกำลังกายนี้?', 'The sets you logged in this session will be lost.': 'เซ็ตที่บันทึกไว้ในรอบนี้จะหายไป', 'Superset {0} / {1}': 'ซูเปอร์เซ็ต {0} / {1}', 'Exercise {0} / {1}': 'ท่า {0} / {1}', - 'Superset · do these back-to-back, rest after both': 'ซูเปอร์เซ็ต · ทำต่อเนื่องกัน แล้วค่อยพักหลังทำครบทั้งคู่', + 'Superset · do these back-to-back, rest when done': 'ซูเปอร์เซ็ต · ทำต่อเนื่องกัน แล้วค่อยพักหลังทำครบทั้งคู่', 'Freestyle workout — add your first exercise.': 'ออกกำลังกายแบบฟรีสไตล์ — เพิ่มท่าแรกของคุณ', 'Finish workout early · {0} exercises': 'จบก่อนกำหนด · {0} ท่า', 'Rest over — next set!': 'หมดเวลาพัก — เซ็ตถัดไป!', @@ -207,6 +233,7 @@ export default { 'Load starter plan (Push / Pull / Legs)': 'โหลดแผนเริ่มต้น (Push / Pull / Legs)', // --- routine edit --- 'Superset with exercise above': 'ซูเปอร์เซ็ตกับท่าด้านบน', + 'Note (optional) — loading cues, "bar only then +1 plate/side each set", anything worth remembering here': 'บันทึก (ไม่บังคับ) — เคล็ดลับการตั้งน้ำหนัก เช่น "เอาแค่บาร์เปล่าก่อน แล้วค่อยเพิ่มแผ่นละ 1 แผ่นต่อข้างทุกเซ็ต" หรืออะไรก็ตามที่อยากจดจำไว้', 'No exercises yet — add your first one.': 'ยังไม่มีท่า — เพิ่มท่าแรกของคุณ', 'Tap the link button on an exercise to superset it with the one above — you’ll do them back-to-back.': 'แตะปุ่มเชื่อมที่ท่าออกกำลังกายเพื่อทำเป็นซูเปอร์เซ็ตกับท่าด้านบน — จะทำต่อเนื่องกัน', 'Delete routine?': 'ลบรูทีนนี้?', @@ -234,6 +261,7 @@ export default { 'Sign in with passkey': 'เข้าสู่ระบบด้วยพาสคีย์', 'Create new profile': 'สร้างโปรไฟล์ใหม่', "This browser doesn't support passkeys — you can still use openGym locally on this device.": 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์ — แต่ยังใช้ openGym บนเครื่องนี้ได้ตามปกติ', + "This browser doesn't support passkeys, and this instance requires an account. Try a browser or device with passkey support.": 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์ และเซิร์ฟเวอร์นี้ต้องมีบัญชีผู้ใช้ ลองใช้เบราว์เซอร์หรืออุปกรณ์ที่รองรับพาสคีย์', 'Continue without account': 'ใช้งานต่อโดยไม่มีบัญชี', 'Passkeys use {0} — no passwords.': 'พาสคีย์ใช้ {0} — ไม่ต้องใช้รหัสผ่าน', 'Each profile keeps its own plan, workouts & body weight.': 'แต่ละโปรไฟล์เก็บแผน, การออกกำลังกาย และน้ำหนักตัวของตัวเองแยกกัน', @@ -259,6 +287,7 @@ export default { 'Theme': 'ธีม', 'Dark': 'มืด', 'Light': 'สว่าง', + 'System': 'ระบบ', 'Accent color': 'สีเน้น', 'General': 'ทั่วไป', 'During a workout': 'ระหว่างออกกำลังกาย', @@ -271,6 +300,8 @@ export default { 'Data': 'ข้อมูล', 'Export backup (JSON)': 'ส่งออกข้อมูลสำรอง (JSON)', 'Import backup': 'นำเข้าข้อมูลสำรอง', + 'Auto-backup on changes': 'สำรองข้อมูลอัตโนมัติเมื่อมีการเปลี่ยนแปลง', + 'Saves a dated copy to the Documents folder after finishing a workout or editing a routine — point a sync app at it, or copy it out by hand.': 'บันทึกสำเนาที่มีวันที่กำกับไว้ในโฟลเดอร์ Documents หลังจบการออกกำลังกายหรือแก้ไขรูทีน — ตั้งแอปซิงก์ให้ชี้มาที่นี่ หรือคัดลอกออกไปเองก็ได้', 'Reset everything?': 'รีเซ็ตทุกอย่าง?', 'Reset everything': 'รีเซ็ตทุกอย่าง', 'Deletes your plan, workouts and body weight on this device. This cannot be undone.': 'จะลบแผน, การออกกำลังกาย และน้ำหนักตัวบนเครื่องนี้ ไม่สามารถย้อนกลับได้', @@ -376,6 +407,15 @@ export default { 'Admin dashboard': 'แดชบอร์ดผู้ดูแลระบบ', // --- muscle map --- 'Muscle balance': 'ความสมดุลของกล้ามเนื้อ', + 'Fatigue': 'ความล้า', + 'Ready': 'พร้อม', + 'Recovering': 'กำลังฟื้นตัว', + 'Fatigued': 'ล้า', + 'Fatigue shows how recently each muscle was trained. High means rest.': 'ความล้าแสดงว่าแต่ละกล้ามเนื้อถูกฝึกเมื่อไหร่ ค่าสูงหมายถึงควรพัก', + 'Strength shows retained muscle strength. Train again to reset it.': 'ความแข็งแรงแสดงกำลังกล้ามเนื้อที่ยังคงเหลืออยู่ ฝึกอีกครั้งเพื่อรีเซ็ตค่านี้', + 'full': 'เต็ม', + 'floor': 'ต่ำสุด', + 'Weeks since training: {0}': 'ไม่ได้ฝึกมา {0} สัปดาห์', 'by sets worked': 'ตามจำนวนเซ็ตที่ฝึก', 'Week': 'สัปดาห์', 'not trained': 'ยังไม่ได้ฝึก', @@ -569,4 +609,84 @@ export default { '{0} sets of {1} — time to add weight or move to a harder variation.': '{0} เซ็ตของ {1} — ถึงเวลาเพิ่มน้ำหนักหรือเปลี่ยนไปท่าที่ยากขึ้น', '{0} per side': '{0} ต่อข้าง', 'You still log the total: {0} is {1} per side.': 'บันทึกจำนวนรวมตามปกติ: {0} คือ {1} ต่อข้าง', + '{0} sets · {1} work': '{0} เซ็ต · เซ็ตหลัก {1}', + 'Make superset with previous': 'รวมเป็นซูเปอร์เซ็ตกับท่าก่อนหน้า', + 'Make superset with next': 'รวมเป็นซูเปอร์เซ็ตกับท่าถัดไป', + 'primary': 'หลัก', + 'secondary': 'รอง', + 'No exercises with an estimated 1RM yet.': 'ยังไม่มีท่าที่มีการประเมิน 1RM', + 'Tap a muscle to see its exercises.': 'แตะกล้ามเนื้อเพื่อดูท่าที่เกี่ยวข้อง', + 'Unpair': 'ยกเลิกการจับคู่', + + // --- equipment profiles --- + 'Showing all equipment': 'กำลังแสดงอุปกรณ์ทั้งหมด', + 'Showing what you have in "{0}"': 'แสดงเฉพาะที่คุณมีใน "{0}"', + 'Show all equipment': 'แสดงอุปกรณ์ทั้งหมด', + 'Filter by "{0}"': 'กรองตาม "{0}"', + 'Edit profile': 'แก้ไขโปรไฟล์', + 'New equipment profile': 'โปรไฟล์อุปกรณ์ใหม่', + 'Name it after where you train — e.g. "Home" or "Gym" — then check what you have there.': 'ตั้งชื่อตามสถานที่ที่คุณฝึก เช่น "บ้าน" หรือ "ยิม" แล้วเลือกอุปกรณ์ที่มีอยู่ที่นั่น', + 'Profile name': 'ชื่อโปรไฟล์', + 'Body-weight exercises are always available, in every profile.': 'ท่าที่ใช้น้ำหนักตัวจะพร้อมใช้งานเสมอในทุกโปรไฟล์', + '{0} of {1} exercises need equipment outside "{2}"': '{0} จาก {1} ท่าต้องใช้อุปกรณ์นอกเหนือจาก "{2}"', + 'Needs {0} — not in your active profile': 'ต้องใช้ {0} — ไม่มีในโปรไฟล์ที่ใช้งานอยู่', + 'Filter by equipment': 'กรองตามอุปกรณ์', + 'Active profile': 'โปรไฟล์ที่ใช้งานอยู่', + '{0} equipment types': 'อุปกรณ์ {0} ประเภท', + 'Add equipment profile': 'เพิ่มโปรไฟล์อุปกรณ์', + 'Delete profile?': 'ลบโปรไฟล์นี้?', + '"{0}" and its equipment list will be removed.': '"{0}" และรายการอุปกรณ์จะถูกลบ', + 'Filters the exercise library and picker, and flags routine exercises that need something you don’t have in the active profile.': 'กรองคลังท่าออกกำลังกายและตัวเลือกท่า พร้อมทั้งทำเครื่องหมายท่าในรูทีนที่ต้องใช้อุปกรณ์ที่ไม่มีในโปรไฟล์ที่ใช้งานอยู่', + + // --- muscle groups --- + 'Primary muscle groups': 'กลุ่มกล้ามเนื้อหลัก', + 'Additional muscle groups': 'กลุ่มกล้ามเนื้อเสริม', + 'No explicit muscle group': 'ไม่มีกลุ่มกล้ามเนื้อที่ระบุ', + + // "Connect to my server" (mobile app pairing) + 'Your server': 'เซิร์ฟเวอร์ของคุณ', + 'Synced with your openGym server.': 'ซิงก์กับเซิร์ฟเวอร์ openGym ของคุณแล้ว', + 'Disconnect': 'ยกเลิกการเชื่อมต่อ', + 'Disconnect from your server?': 'ยกเลิกการเชื่อมต่อกับเซิร์ฟเวอร์?', + 'Your data is synced to your server first, then this device switches back to local-only.': 'ข้อมูลของคุณจะถูกซิงก์กับเซิร์ฟเวอร์ก่อน จากนั้นอุปกรณ์นี้จะกลับไปใช้งานแบบเก็บข้อมูลในเครื่องเท่านั้น', + 'Disconnected — back to local-only': 'ยกเลิกการเชื่อมต่อแล้ว — กลับไปใช้งานแบบเก็บข้อมูลในเครื่อง', + 'Connect to my server': 'เชื่อมต่อกับเซิร์ฟเวอร์ของฉัน', + 'Sync this device to your own self-hosted openGym instead.': 'ซิงก์อุปกรณ์นี้กับ openGym ที่คุณโฮสต์เองแทน', + 'Pair the mobile app': 'จับคู่แอปมือถือ', + 'Connect the openGym app on your phone to this account.': 'เชื่อมต่อแอป openGym บนโทรศัพท์ของคุณกับบัญชีนี้', + 'Could not generate a code': 'สร้างรหัสไม่สำเร็จ', + 'On the openGym app, choose “Connect to my server”, then enter this address and the code below. It expires in 5 minutes.': 'ในแอป openGym เลือก “เชื่อมต่อกับเซิร์ฟเวอร์ของฉัน” แล้วป้อนที่อยู่นี้พร้อมรหัสด้านล่าง รหัสจะหมดอายุใน 5 นาที', + 'Enter your server address and the code': 'ป้อนที่อยู่เซิร์ฟเวอร์และรหัส', + 'Connected': 'เชื่อมต่อแล้ว', + 'Could not connect': 'เชื่อมต่อไม่สำเร็จ', + 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'เปิดการตั้งค่า → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ที่คุณเข้าสู่ระบบอยู่แล้ว จากนั้นป้อนที่อยู่และรหัสที่แสดงไว้ที่นั่น', + 'Server address (e.g. gym.example.com)': 'ที่อยู่เซิร์ฟเวอร์ (เช่น gym.example.com)', + 'Pairing code': 'รหัสจับคู่', + 'Connecting…': 'กำลังเชื่อมต่อ…', + 'Connect': 'เชื่อมต่อ', + 'How do you want to use openGym?': 'คุณต้องการใช้งาน openGym แบบไหน?', + 'Use on this device': 'ใช้งานบนอุปกรณ์นี้', + 'Local keeps everything on this phone. Connecting syncs to your own openGym server instead — you can switch later in Settings.': 'แบบเก็บในเครื่องจะเก็บทุกอย่างไว้ในโทรศัพท์นี้ ส่วนการเชื่อมต่อจะซิงก์กับเซิร์ฟเวอร์ openGym ของคุณแทน — เปลี่ยนภายหลังได้ในการตั้งค่า', + + // --- workout notes and planned warm-ups --- + '{0} — done': '{0} — เสร็จแล้ว', + 'Workout done': 'ออกกำลังกายเสร็จแล้ว', + 'reps': 'ครั้ง', + 'Most reps in a set per workout': 'จำนวนครั้งมากที่สุดในหนึ่งเซ็ตต่อการออกกำลังกาย', + 'Warm-up sets': 'เซ็ตวอร์มอัพ', + 'Added before your work sets and left out of volume, records and progression. Each one closes half the gap to the work weight — you can still change any of them mid-session.': 'เพิ่มไว้ก่อนเซ็ตหลัก และไม่นับรวมในปริมาณงาน สถิติ หรือการปรับน้ำหนัก แต่ละเซ็ตจะลดช่องว่างไปครึ่งหนึ่งของน้ำหนักเซ็ตหลัก — ยังปรับเปลี่ยนได้ระหว่างออกกำลังกาย', + 'Ramp-up sets added before the work sets, so you do not have to add them by hand each session.': 'เพิ่มเซ็ตไต่ระดับไว้ก่อนเซ็ตหลัก จะได้ไม่ต้องเพิ่มเองทุกครั้ง', + 'Note': 'บันทึก', + 'This session': 'รอบนี้', + 'How it went, what to change — kept with today’s workout.': 'เป็นอย่างไรบ้าง อยากเปลี่ยนอะไร — จะถูกเก็บไว้กับการออกกำลังกายวันนี้', + 'Show this next time': 'แสดงอีกครั้งครั้งถัดไป', + 'Brings it up again the next time you train this exercise.': 'จะแสดงขึ้นอีกครั้งเมื่อคุณฝึกท่านี้ครั้งถัดไป', + 'Always for this exercise': 'ใช้ตลอดสำหรับท่านี้', + 'Seat height, pin position, a form cue — shown every session.': 'ความสูงเบาะ ตำแหน่งพิน หรือเคล็ดลับท่าทาง — แสดงทุกครั้งที่ฝึก', + 'From {0}:': 'จาก {0}:', + 'Session note': 'บันทึกประจำรอบ', + 'Add session note': 'เพิ่มบันทึกประจำรอบ', + 'Edit session note': 'แก้ไขบันทึกประจำรอบ', + 'How the session went as a whole.': 'ภาพรวมของการออกกำลังกายรอบนี้เป็นอย่างไร', + 'Rest-pause always trains as one warm-up set at this rep count, then one rest-pause work set — "Sets" is not used.': 'เรสต์-พอสจะฝึกเป็นเซ็ตวอร์มอัพหนึ่งเซ็ตที่จำนวนครั้งนี้ ตามด้วยเซ็ตหลักแบบเรสต์-พอสหนึ่งเซ็ตเสมอ — ไม่ใช้ค่า "เซ็ต"' } diff --git a/frontend/src/views/Workout.remove.test.jsx b/frontend/src/views/Workout.remove.test.jsx index 2b50bf8..acc22d1 100644 --- a/frontend/src/views/Workout.remove.test.jsx +++ b/frontend/src/views/Workout.remove.test.jsx @@ -110,8 +110,8 @@ describe('remove-exercise locale coverage', () => { ] const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' }) - it('defines every new prompt in all twelve locale packs', () => { - expect(Object.keys(packs)).toHaveLength(12) + it('defines every new prompt in all thirteen locale packs', () => { + expect(Object.keys(packs)).toHaveLength(13) Object.entries(packs).forEach(([path, pack]) => { required.forEach(key => expect(pack, `${path} is missing ${key}`).toHaveProperty(key)) })