Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Settings: one-screen root with search, account card and sub-pages (/settings/:page), rest timers on the wheel, Vibrate on iPhone says why
Duarte Santos0960110ccae8
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsxindex 5b9eeda9d..6d7cf8e91 100644--- a/frontend/src/App.jsx+++ b/frontend/src/App.jsx@@ -38,7 +38,7 @@ import Library from './views/Library.jsx'import Muscles from './views/Muscles.jsx'import StructuralBalance from './views/StructuralBalance.jsx'import ProgressPhotos from './views/ProgressPhotos.jsx'-import Settings from './views/Settings.jsx'+import { SettingsRoute } from './views/Settings.jsx'import Admin from './views/Admin.jsx'import CoachChat from './views/CoachChat.jsx'import CoachIntake from './views/CoachIntake.jsx'@@ -193,7 +193,8 @@ function Shell() {<Route path="/muscles" element={<Muscles />} /><Route path="/structural-balance" element={<StructuralBalance />} /><Route path="/progress-photos" element={<ProgressPhotos />} />- <Route path="/settings" element={<Settings />} />+ <Route path="/settings" element={<SettingsRoute />} />+ <Route path="/settings/:page" element={<SettingsRoute />} />{/* The Coach screens gate themselves on the instance config; the routes existunconditionally so a deep link from a notification lands somewhere sanerather than on the catch-all. */}diff --git a/frontend/src/components/Passkeys.jsx b/frontend/src/components/Passkeys.jsxindex c22a886f1..7c135f563 100644--- a/frontend/src/components/Passkeys.jsx+++ b/frontend/src/components/Passkeys.jsx@@ -322,7 +322,7 @@ export function DeviceLinkRedeemSheet({ close }) {<h3>{t('Add this device')}</h3><div className="muted small" style={{ marginBottom: 14 }}>{joining? t('Create a passkey on this device for the profile “{0}”. It signs you in here from now on.', joining.name)- : t('Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.')}</div>+ : t('Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.')}</div>{elsewhere && <div className="card small" style={{ textAlign: 'start', marginBottom: 14 }}>{user && <div style={{ marginBottom: 8 }}>{user.name === joining.name? t('This code is for a different profile that is also called “{0}”, not the one this browser is signed in as. Adding it there signs yours out here.', joining.name)diff --git a/frontend/src/components/SyncBanner.jsx b/frontend/src/components/SyncBanner.jsxindex 8bc672efe..82cf00b1f 100644--- a/frontend/src/components/SyncBanner.jsx+++ b/frontend/src/components/SyncBanner.jsx@@ -88,7 +88,7 @@ export default function SyncBanner() {connect: connectServer,// Signed in, or with a session the server ended: the passkey right here. A guest goes to// Settings, where signing in sits next to creating a profile.- signin: () => (user || status === 'auth' ? signInAgain() : nav('/settings')),+ signin: () => (user || status === 'auth' ? signInAgain() : nav('/settings/account')),}[view.action]const label = actionLabel(view)const inner = <>diff --git a/frontend/src/components/SyncBanner.test.jsx b/frontend/src/components/SyncBanner.test.jsxindex 3825b7781..0ed7d8265 100644--- a/frontend/src/components/SyncBanner.test.jsx+++ b/frontend/src/components/SyncBanner.test.jsx@@ -226,7 +226,7 @@ describe('no server at all', () => {render()expect(text()).toBe('Guest mode: your data lives only in this browser.')act(() => button().click())- expect(mocks.navs).toEqual(['/settings'])+ expect(mocks.navs).toEqual(['/settings/account'])expect(mocks.passkeyLogin).not.toHaveBeenCalled()})diff --git a/frontend/src/lib/backup-media.js b/frontend/src/lib/backup-media.jsindex be134d6e8..9b8edf5d5 100644--- a/frontend/src/lib/backup-media.js+++ b/frontend/src/lib/backup-media.js@@ -35,7 +35,7 @@ media/ the photos, GIFs and videos of your own exercises and of yoworkouts, each named by its SHA-256, plus the small previewsshown in lists.-To bring it back: openGym -> Settings -> Import backup, and pick this .zip as it is.+To bring it back: openGym -> Settings -> Data & backup -> Import backup, and pick this .zip as it is.Do not unpack and re-zip it: the app reads zips that are stored, not compressed.`diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex b64c1dcde..401ccf36a 100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {// has to be taught is a number nobody reads. What the numbers stood for is asserted above.// If the hash fails, review the changed keys and wording before accepting a new one. From// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('0d3936879fb5695275061947fbd177bd665e4766332f16e9db9486322dde9eb3')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('213c715b6fd391b74bae4ad97762da34e7f34310124979096808d06d554ae450')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/lib/sound.js b/frontend/src/lib/sound.jsindex 44ad7b7d7..e81b00f7a 100644--- a/frontend/src/lib/sound.js+++ b/frontend/src/lib/sound.js@@ -128,6 +128,12 @@ export function unlock(enabled) {// this one). Applied by App.jsx whenever the setting is loaded or changed.export const playOnSilentSupported = () => {if (typeof navigator === 'undefined' || !navigator.audioSession) return false+ return appleTouchDevice()+}+// An iPhone or iPad, in Safari, a home-screen web app or the iOS app (an iPad reports itself as+// a Mac with a touch screen). Settings says "Not on iPhone" on the Vibrate row here.+export const appleTouchDevice = () => {+ if (typeof navigator === 'undefined') return falseconst ua = navigator.userAgent || ''return /iPhone|iPad|iPod/.test(ua) || (/Macintosh/.test(ua) && navigator.maxTouchPoints > 1)}diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.jsindex 2f31815c1..5f540f4cf 100644--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@ -291,7 +291,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'تعذّر تسجيل الخروج من كل الأجهزة. ما زلت مسجّلًا الدخول.','Create passkey profile': 'إنشاء ملف شخصي بمفتاح مرور','Passkeys not supported in this browser.': 'مفاتيح المرور غير مدعومة في هذا المتصفح.',- 'Appearance': 'المظهر','synced with your profile': 'متزامن مع ملفك الشخصي','Language': 'اللغة','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'تعليمات التمارين لم تُترجم إلى هذه اللغة بعد، لذا تبقى بالإنجليزية.',@@ -301,12 +300,10 @@ export default {'System': 'النظام','Accent color': 'اللون المميز','General': 'عام',- 'During a workout': 'أثناء التمرين','Keep screen awake': 'إبقاء الشاشة مضاءة','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'تبقى الشاشة مضاءة أثناء تشغيل التمرين، حتى لا تضطر إلى فتح قفل هاتفك بين المجموعات.','Weight unit': 'وحدة الوزن','Rest timer': 'مؤقت الراحة',- 'Sounds': 'الأصوات','Data': 'البيانات','Export backup (JSON)': 'تصدير نسخة احتياطية (JSON)','Import backup': 'استيراد نسخة احتياطية',@@ -531,7 +528,6 @@ export default {'Nothing to import from that file': 'لا يوجد شيء لاستيراده من هذا الملف','Your data': 'بياناتك','All data stays on this phone': 'جميع البيانات تبقى على هذا الهاتف',- 'No account, no cloud. Back it up anytime with Export below.': 'لا حساب ولا سحابة. انسخ بياناتك احتياطيًا في أي وقت من خلال التصدير أدناه.','Reminds you at this time on days that have a routine planned.': 'يذكّرك في هذا الوقت في الأيام التي تحتوي روتينًا مجدولًا.','Workout day': 'يوم التمرين','{0} is on the plan today. Let’s go!': '{0} في خطة اليوم. هيا بنا!',@@ -642,7 +638,6 @@ export default {'average effort': 'متوسط الجهد','at {0} {1} or harder': 'عند {0} {1} أو أعلى','{0} of {1} finished sets rated': '{0} من {1} مجموعات منتهية مُقيّمة',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'الجهد لكل مجموعة متوقف. فعّله في الإعدادات لمواصلة التقييم.','Week by week': 'أسبوعًا بأسبوع','Where the sets land': 'أين تقع المجموعات','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'معظم مجموعات العمل مكانها قرب الفشل، لا عنده. نصف عند الأدنى ونصف عند الأعلى يعطيان متوسطًا يبدو صحيًا رغم ذلك.',@@ -704,7 +699,6 @@ export default {'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…': 'جارٍ الاتصال…',@@ -742,7 +736,6 @@ export default {'Insert after this group': 'إدراج بعد هذه المجموعة','Logged sets stay with the original exercise. The replacement will be inserted afterward.': 'تبقى المجموعات المسجلة مع التمرين الأصلي. سيُدرج البديل بعده.','Rest after each set of this exercise. Leave at 0 to use your default rest timer.': 'الراحة بعد كل مجموعة من هذا التمرين. اتركها 0 لاستخدام مؤقت الراحة الافتراضي.',- 'Flash screen when timer ends': 'وميض الشاشة عند انتهاء المؤقت','Import from Hevy': 'استيراد من Hevy','Pull your history with a Hevy Pro API key': 'اسحب سجلك باستخدام مفتاح Hevy Pro API','Pull your history with a Hevy Pro API key. The key is only used for this import and is not saved.': 'اسحب سجلك باستخدام مفتاح Hevy Pro API. يُستخدم المفتاح لهذا الاستيراد فقط ولا يُحفظ.',@@ -1202,7 +1195,6 @@ export default {'Five sets of five on the main barbell lifts.': 'خمس مجموعات من خمس تكرارات على رفعات البار الرئيسية.','Copy routine': 'نسخ الروتين','Copy': 'نسخ',- 'Workout view': 'عرض التمرين','Cards': 'بطاقات','List': 'قائمة','Compact': 'مضغوط',@@ -1240,7 +1232,6 @@ export default {'Drop set': 'دروب سِت','Rest-pause burst': 'دفعة ريست بوز','Remove this set': 'إزالة هذه المجموعة',- 'Workout controls': 'أدوات التمرين','Weight and reps buttons': 'أزرار الوزن والتكرارات','Off: tap the number and type it': 'متوقف: اضغط الرقم واكتبه','Drop and burst shortcuts on every set': 'اختصارات الدروب والدفعة على كل مجموعة',@@ -1256,7 +1247,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'سيُحمَّل أحدث إصدار وسيفتح المثبّت.','Download & Install': 'تنزيل وتثبيت','Update failed: {0}': 'فشل التحديث: {0}',- 'Updates': 'التحديثات','Check for updates': 'التحقق من التحديثات','Checking…': 'جارٍ التحقق…','You have v{0}': 'لديك الإصدار {0}',@@ -1284,9 +1274,7 @@ export default {'Weigh in before workouts': 'الوزن قبل التمارين','Asks for your body weight when a workout starts. Off starts the session straight away.': 'يطلب وزن جسمك عند بدء التمرين. عند الإيقاف تبدأ الجلسة مباشرة.','No weigh-ins yet. Log your weight to start the curve.': 'لا توجد أوزان مسجّلة بعد. سجّل وزنك لتبدأ المنحنى.',- 'Play sounds when the phone is on silent': 'تشغيل الأصوات عندما يكون الهاتف صامتًا','Music playing on this phone stops during a workout and does not resume by itself.': 'الموسيقى التي تعمل على هذا الهاتف تتوقف أثناء التمرين ولا تستأنف من تلقاء نفسها.',- 'Classic timer sound': 'صوت المؤقت الكلاسيكي','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'الصوت الأكثر هدوءًا المكوّن من ثلاث نغمات من قبل الإصدار 1.3.9، بدلاً من الرنين الأعلى صوتًا.','Add this device\'s workouts to your profile?': 'إضافة تدريبات هذا الجهاز إلى ملفك؟','{0} workouts and {1} weigh-ins were logged on this device while signed out. Add them to your profile, or keep the profile exactly as it is on the server.': 'سُجلت {0} تدريبات و{1} قياسات وزن على هذا الجهاز أثناء تسجيل الخروج. أضفها إلى ملفك، أو أبقِ الملف كما هو على الخادم.',@@ -1374,7 +1362,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'يعود هذا الهاتف إلى الوضع المحلي فقط وتُحذف نسخة حسابك منه. يتحقق أولًا من أن خادمك لديه كل التغييرات. وإن لم يكن، فأنت تختار ما يحدث لها.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'تُحذف بياناتك من هذا المتصفح؛ ويحتفظ بها ملفك الشخصي على الخادم. يتحقق أولًا من أن الخادم لديه كل التغييرات. وإن لم يكن، فأنت تختار ما يحدث لها.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'يسجّل خروج هذا الملف الشخصي من كل الأجهزة، بما فيها هذا الجهاز. تُفصل الهواتف المقترنة به ويجب إقرانها مجددًا. تظل مفاتيح المرور تعمل، لذا يمكنك تسجيل الدخول بها مجددًا في أي وقت.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'افتح الإعدادات ← «إقران تطبيق الجوال» في موقع openGym الخاص بك من متصفح وأدخل الرمز الجديد الظاهر هناك. ما احتفظ به هذا الهاتف يُدمج في حسابك.','{0} change': '{0} تغيير','{0} changes': '{0} تغييرات','Planned sessions start from': 'نقطة بدء الجلسات المخطط لها',@@ -1591,7 +1578,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'أنشئ على هذا الجهاز مفتاح مرور للملف الشخصي «{0}». من الآن فصاعدًا تسجّل الدخول به هنا.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'كل مفتاح يسجّل الدخول إلى هذا الملف الشخصي من الجهاز أو مدير كلمات المرور الذي يحفظه. اضغط على أحدها لإعادة تسميته أو إزالته.','Enter the code from your other device.': 'أدخل الرمز من جهازك الآخر.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'أدخل الرمز الذي يعرضه جهازك الآخر في الإعدادات ← إضافة جهاز آخر. سيحصل هذا الجهاز بعدها على مفتاح مرور خاص به.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'لهذا الجهاز، أو مفتاح أمان، أو مدير كلمات مرور، أو هاتفك عبر رمز QR الخاص بالمتصفح نفسه. أكّد أولًا أنك أنت.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'لن يعود بالإمكان تسجيل الدخول به إلى هذا الملف الشخصي. أي جهاز سجّل الدخول به بالفعل يبقى مسجّلًا. إن فُقد، استخدم «تسجيل الخروج من كل الأجهزة».','It is your only way in, so it cannot be removed until there is another.': 'إنه طريقتك الوحيدة للدخول، لذا لا يمكن إزالته حتى تتوفر طريقة أخرى.',@@ -1742,7 +1728,6 @@ export default {'Rotation': 'التناوب','Fixed Week': 'الأسبوع الثابت',- 'Scheduling': 'الجدولة','Externally managed': 'مُدار خارجيًا','Position {0}': 'الترتيب {0}','Add routine to the rotation': 'إضافة روتين إلى التناوب',@@ -1804,7 +1789,6 @@ export default {'{0} photos': '{0} صور','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'تم الوصول إلى خادمك، لكنه رفض طلب التطبيق (CORS). إذا كان وكيل عكسي مثل Traefik يضيف ترويسات CORS، فدَع الطلبات القادمة من {0} تمر إلى openGym دون تغيير. راجع «Phone app and CORS» في docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'تعذّر الوصول إلى {0}. تحقّق من العنوان ومن أن هذا الهاتف يستطيع الوصول إليه.',- 'Vibrate when the phone is on silent': 'الاهتزاز عندما يكون الهاتف صامتًا','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'تهتز نهاية الراحة أو التثبيت مثل المنبّه، حتى في الوضع الصامت.',// --- repeat a saved workout today (#58) ---'Repeat today': 'كرّره اليوم',@@ -1848,4 +1832,67 @@ export default {'Switch sides': 'بدّل الجهة','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'يحفظ نسخة مؤرّخة في «{0}» بعد إنهاء تمرين أو تعديل روتين، ويحتفظ بأحدث {1}.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'يحفظ نسخة مؤرّخة في المجلد الذي اخترته بعد إنهاء تمرين أو تعديل روتين، ويحتفظ بأحدث {0}.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'تنبيهات المؤقت',+ 'Reminders': 'التذكيرات',+ 'Plan & schedule': 'الخطة والجدول',+ 'Units & language': 'الوحدات واللغة',+ 'Look & Home': 'المظهر والرئيسية',+ 'Data & backup': 'البيانات والنسخ الاحتياطي',+ 'About & updates': 'حول التطبيق والتحديثات',+ 'Fine-tuning': 'ضبط دقيق',+ 'Logging': 'التسجيل',+ 'Before and during': 'قبل التمرين وأثناءه',+ 'Sessions and timed sets': 'الجلسات والمجموعات المؤقتة',+ 'Buttons on the workout screen': 'الأزرار في شاشة التمرين',+ 'When a rest ends': 'عند انتهاء الراحة',+ 'On Home': 'في الرئيسية',+ 'Back up': 'النسخ الاحتياطي',+ 'Bring data in': 'إحضار البيانات',+ 'How you train': 'طريقة تدريبك',+ 'Play a sound': 'تشغيل صوت',+ 'Sound': 'الصوت',+ 'Chime (louder)': 'رنين (أعلى)',+ 'Classic beeps': 'صفارات كلاسيكية',+ 'Play even on silent': 'التشغيل حتى في الوضع الصامت',+ 'Vibrate on silent too': 'الاهتزاز في الوضع الصامت أيضًا',+ 'Flash the screen': 'وميض الشاشة',+ 'Version': 'الإصدار',+ 'Source code': 'الشيفرة المصدرية',+ '{0} rest': 'راحة {0}',+ 'No rest timer': 'بدون مؤقت راحة',+ 'Buttons, timed sets': 'الأزرار، المجموعات المؤقتة',+ 'Flash': 'وميض',+ 'Silent': 'صامت',+ 'Everything': 'كل شيء',+ 'Your server': 'خادمك',+ 'Your API key': 'مفتاح API الخاص بك',+ 'sec': 'ث',+ 'Not on iPhone': 'غير متاح على iPhone',+ 'iPhone only': 'على iPhone فقط',+ 'Android app only': 'في تطبيق Android فقط',+ 'Guest': 'ضيف',+ 'Your data lives on this device. Sign in to sync.': 'بياناتك موجودة على هذا الجهاز. سجّل الدخول للمزامنة.',+ 'Account, devices and sync': 'الحساب والأجهزة والمزامنة',+ 'Synced with your server': 'متزامن مع خادمك',+ 'Sync needs a look': 'المزامنة تحتاج إلى نظرة',+ 'This phone': 'هذا الهاتف',+ 'Example data, only in this browser.': 'بيانات تجريبية، في هذا المتصفح فقط.',+ 'Search settings': 'البحث في الإعدادات',+ 'No setting matches “{0}”.': 'لا يوجد إعداد يطابق «{0}».',+ '{0} result': '{0} نتيجة',+ '{0} results': '{0} نتيجة',+ '{0} minute': '{0} دقيقة',+ '{0} minutes': { zero: '{0} دقيقة', one: '{0} دقيقة', two: '{0} دقيقة', few: '{0} دقائق', many: '{0} دقيقة', other: '{0} دقيقة' },+ '{0} second': '{0} ثانية',+ '{0} seconds': { zero: '{0} ثانية', one: '{0} ثانية', two: '{0} ثانية', few: '{0} ثوانٍ', many: '{0} ثانية', other: '{0} ثانية' },+ 'Scroll to 0:00 to turn the rest timer off.': 'مرّر إلى 0:00 لإيقاف مؤقت الراحة.',+ 'The short break between the bursts of a rest-pause set.': 'الاستراحة القصيرة بين دفعات مجموعة الريست بوز.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'يمكن أن يكون لكل تمرين راحته الخاصة أيضًا. اضبطها في إعدادات التمرين داخل الروتين.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'لا يسمح iPhone لتطبيق openGym بالاهتزاز. الصوت أو الوميض يؤدي المهمة.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'بلا حساب ولا سحابة. انسخها احتياطيًا في أي وقت من البيانات والنسخ الاحتياطي.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'الجهد لكل مجموعة متوقف. فعّله في الإعدادات ← التمرين لمواصلة التقييم.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'أدخل الرمز الذي يعرضه جهازك الآخر في الإعدادات ← الحساب ← إضافة جهاز آخر. سيحصل هذا الجهاز بعدها على مفتاح مرور خاص به.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'افتح الإعدادات ← الحساب ← «إقران تطبيق الجوال» في موقع openGym الذي سجلت دخولك إليه، ثم أدخل عنوانه والرمز المعروض هناك.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'افتح الإعدادات ← الحساب ← «إقران تطبيق الجوال» في موقع openGym الخاص بك من متصفح وأدخل الرمز الجديد الظاهر هناك. ما احتفظ به هذا الهاتف يُدمج في حسابك.',}diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex cb0ae287b..1097226c3 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -390,7 +390,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Erstelle auf diesem Gerät einen Passkey für das Profil „{0}“. Damit meldest du dich hier ab jetzt an.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Jeder meldet dich bei diesem Profil an, von dem Gerät oder Passwort-Manager aus, in dem er gespeichert ist. Tippe auf einen, um ihn umzubenennen oder zu entfernen.','Enter the code from your other device.': 'Gib den Code von deinem anderen Gerät ein.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Gib den Code ein, den dein anderes Gerät unter Einstellungen → Weiteres Gerät hinzufügen zeigt. Dieses Gerät bekommt dann einen eigenen Passkey.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Für dieses Gerät, einen Sicherheitsschlüssel, einen Passwort-Manager oder dein Handy über den QR-Code des Browsers. Bestätige zuerst, dass du es bist.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Mit ihm kann sich niemand mehr bei diesem Profil anmelden. Ein Gerät, das damit schon angemeldet ist, bleibt angemeldet. Falls es verloren gegangen ist, nutze „Überall abmelden“.','It is your only way in, so it cannot be removed until there is another.': 'Er ist dein einziger Weg ins Profil und lässt sich deshalb erst entfernen, wenn es einen weiteren gibt.',@@ -435,7 +434,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Abmelden auf allen Geräten fehlgeschlagen. Du bist weiterhin angemeldet.','Create passkey profile': 'Passkey-Profil erstellen','Passkeys not supported in this browser.': 'Passkeys werden in diesem Browser nicht unterstützt.',- 'Appearance': 'Aussehen','synced with your profile': 'mit deinem Profil synchronisiert','Language': 'Sprache','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Übungsanleitungen gibt es in dieser Sprache noch nicht, daher bleiben sie auf Englisch.',@@ -449,7 +447,6 @@ export default {'System': 'System','Accent color': 'Akzentfarbe','General': 'Allgemein',- 'During a workout': 'Während des Trainings','Keep screen awake': 'Bildschirm anlassen','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Der Bildschirm bleibt an, solange ein Workout läuft. So musst du zwischen den Sätzen nicht entsperren.','Weight unit': 'Gewichtseinheit',@@ -460,15 +457,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Pausen-Timer',- 'Sounds': 'Töne',- 'Flash screen when timer ends': 'Bildschirm bei Timer-Ende blinken lassen','Vibrate': 'Vibration','Weigh in before workouts': 'Vor dem Training wiegen','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Fragt beim Start eines Trainings nach deinem Körpergewicht. Aus startet die Einheit direkt.','No weigh-ins yet. Log your weight to start the curve.': 'Noch keine Einträge. Trag dein Gewicht ein, um die Kurve zu starten.',- 'Play sounds when the phone is on silent': 'Töne auch bei stummgeschaltetem Telefon abspielen','Music playing on this phone stops during a workout and does not resume by itself.': 'Musik, die auf diesem Telefon läuft, stoppt während eines Trainings und setzt nicht von selbst wieder ein.',- 'Classic timer sound': 'Klassischer Timer-Sound','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Der leisere Dreifach-Piepton aus der Zeit vor 1.3.9 statt des lauteren Klingeltons.','Data': 'Daten','Export backup (JSON)': 'Backup exportieren (JSON)',@@ -581,7 +574,6 @@ export default {'Expand': 'Vergrößern','Exercise animations': 'Übungs-Animationen','Workout options': 'Workout-Optionen',- 'Workout view': 'Trainingsansicht','Cards': 'Karten','List': 'Liste','Compact': 'Kompakt',@@ -688,7 +680,6 @@ export default {// --- mobile build ---'Your data': 'Deine Daten','All data stays on this phone': 'Alle Daten bleiben auf diesem Handy',- 'No account, no cloud. Back it up anytime with Export below.': 'Kein Konto, keine Cloud. Sichere sie jederzeit über den Export unten.','Reminds you at this time on days that have a routine planned.': 'Erinnert dich zu dieser Zeit an Tagen, für die eine Routine geplant ist.','Workout day': 'Trainingstag','{0} is on the plan today. Let’s go!': '{0} steht heute auf dem Plan. Los geht’s!',@@ -825,7 +816,6 @@ export default {'average effort': 'durchschnittliche Anstrengung','at {0} {1} or harder': 'bei {0} {1} oder härter','{0} of {1} finished sets rated': '{0} von {1} erledigten Sätzen bewertet',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Anstrengung pro Satz ist ausgeschaltet. Schalte sie in den Einstellungen ein, um weiter zu bewerten.','Week by week': 'Woche für Woche','Where the sets land': 'Wo die Sätze landen','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'Die meisten Arbeitssätze gehören nah ans Muskelversagen, nicht direkt dorthin. Die Hälfte ganz unten und die Hälfte ganz oben ergibt im Schnitt trotzdem eine gesund aussehende Mitte.',@@ -1030,7 +1020,6 @@ export default {'Enter your server address and the code': 'Serveradresse und Code eingeben','Connected': 'Verbunden','Could not connect': 'Verbindung fehlgeschlagen',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der openGym-Seite, bei der du bereits angemeldet bist, Einstellungen → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.','Server address (e.g. gym.example.com)': 'Serveradresse (z. B. gym.example.com)','Pairing code': 'Kopplungscode','Connecting…': 'Verbinde …',@@ -1366,12 +1355,11 @@ export default {'Drop set': 'Drop-Satz','Rest-pause burst': 'Rest-Pause-Burst','Remove this set': 'Diesen Satz entfernen',- 'Workout controls': 'Bedienelemente im Training','Weight and reps buttons': 'Plus/Minus-Tasten für Gewicht und Wdh.','Off: tap the number and type it': 'Aus: Zahl antippen und eintippen','Drop and burst shortcuts on every set': 'Drop/Burst-Kürzel an jedem Satz','Superset buttons in the exercise header': 'Superset-Tasten im Übungskopf',- 'Move, swap and remove buttons below the exercise': 'Verschieben/Tauschen/Entfernen-Tasten unter der Übung',+ 'Move, swap and remove buttons below the exercise': 'Verschieben-, Tauschen- und Entfernen-Tasten unter der Übung','Everything hidden here stays one tap away: the ⋯ button of an exercise and the number of a set.': 'Alles, was hier ausgeblendet ist, bleibt einen Tipp entfernt: die ⋯-Taste einer Übung und die Nummer eines Satzes.','Convert to {0}?': 'In {0} umrechnen?','Every stored weight (logged sets, working weights, routine targets, body weight, bar weights) is in {0}. Convert the numbers, or keep them and only change the label?': 'Jedes gespeicherte Gewicht (eingetragene Sätze, Arbeitsgewichte, Routinenziele, Körpergewicht, Stangengewichte) steht in {0}. Zahlen umrechnen, oder behalten und nur die Beschriftung ändern?',@@ -1382,7 +1370,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'Die neueste Version wird heruntergeladen und die Installation gestartet.','Download & Install': 'Herunterladen & Installieren','Update failed: {0}': 'Update fehlgeschlagen: {0}',- 'Updates': 'Updates','Check for updates': 'Nach Updates suchen','Checking…': 'Wird geprüft…','You have v{0}': 'Du hast v{0}',@@ -1471,7 +1458,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Dieses Handy wechselt zurück in den lokalen Modus, und die Kopie deines Kontos wird davon entfernt. Vorher wird geprüft, ob dein Server jede Änderung hat. Falls nicht, entscheidest du, was mit ihnen passiert.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Deine Daten werden aus diesem Browser entfernt; dein Profil auf dem Server behält sie. Vorher wird geprüft, ob der Server jede Änderung hat. Falls nicht, entscheidest du, was mit ihnen passiert.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Meldet dieses Profil auf allen Geräten ab, auch auf diesem. Damit gekoppelte Handys werden getrennt und müssen neu gekoppelt werden. Deine Passkeys funktionieren weiter, du kannst dich also jederzeit wieder damit anmelden.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Öffne auf deiner openGym-Seite im Browser Einstellungen → „Mobile App koppeln“ und gib den neuen Code ein, der dort angezeigt wird. Was dieses Handy aufbewahrt hat, wird in dein Konto übernommen.','{0} change': '{0} Änderung','{0} changes': '{0} Änderungen',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1709,7 +1695,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotation','Fixed Week': 'Feste Woche',- 'Scheduling': 'Zeitplanung','Externally managed': 'Extern verwaltet','Position {0}': 'Position {0}','Add routine to the rotation': 'Routine zur Rotation hinzufügen',@@ -1771,7 +1756,6 @@ export default {'{0} photos': '{0} Fotos','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Dein Server wurde erreicht, hat die Anfrage der App aber abgelehnt (CORS). Wenn ein Reverse Proxy wie Traefik CORS-Header setzt, lass Anfragen von {0} unverändert zu openGym durch. Siehe „Phone app and CORS“ in docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': '{0} ist nicht erreichbar. Prüf die Adresse und ob dieses Handy den Server erreichen kann.',- 'Vibrate when the phone is on silent': 'Auch bei stummgeschaltetem Telefon vibrieren','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'Das Ende einer Pause oder einer Haltezeit vibriert wie ein Wecker, auch im Lautlos-Modus.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Heute wiederholen',@@ -1815,4 +1799,67 @@ export default {'Switch sides': 'Seite wechseln','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Speichert nach jedem beendeten Training oder jeder bearbeiteten Routine eine datierte Kopie in „{0}“ und behält die neuesten {1}.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Speichert nach jedem beendeten Training oder jeder bearbeiteten Routine eine datierte Kopie im gewählten Ordner und behält die neuesten {0}.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Timer-Hinweise',+ 'Reminders': 'Erinnerungen',+ 'Plan & schedule': 'Plan & Zeitplan',+ 'Units & language': 'Einheiten & Sprache',+ 'Look & Home': 'Aussehen & Start',+ 'Data & backup': 'Daten & Backup',+ 'About & updates': 'Info & Updates',+ 'Fine-tuning': 'Feinschliff',+ 'Logging': 'Eintragen',+ 'Before and during': 'Davor und währenddessen',+ 'Sessions and timed sets': 'Einheiten und Zeitsätze',+ 'Buttons on the workout screen': 'Knöpfe im Trainingsbildschirm',+ 'When a rest ends': 'Wenn eine Pause endet',+ 'On Home': 'Auf Start',+ 'Back up': 'Sichern',+ 'Bring data in': 'Daten übernehmen',+ 'How you train': 'So trainierst du',+ 'Play a sound': 'Ton abspielen',+ 'Sound': 'Ton',+ 'Chime (louder)': 'Gong (lauter)',+ 'Classic beeps': 'Klassische Pieptöne',+ 'Play even on silent': 'Auch im Lautlos-Modus',+ 'Vibrate on silent too': 'Auch lautlos vibrieren',+ 'Flash the screen': 'Bildschirm blinken lassen',+ 'Version': 'Version',+ 'Source code': 'Quellcode',+ '{0} rest': '{0} Pause',+ 'No rest timer': 'Kein Pausen-Timer',+ 'Buttons, timed sets': 'Knöpfe, Zeitsätze',+ 'Flash': 'Blinken',+ 'Silent': 'Lautlos',+ 'Everything': 'Alles',+ 'Your server': 'Dein Server',+ 'Your API key': 'Dein API-Schlüssel',+ 'sec': 'Sek.',+ 'Not on iPhone': 'Nicht auf dem iPhone',+ 'iPhone only': 'Nur auf dem iPhone',+ 'Android app only': 'Nur in der Android-App',+ 'Guest': 'Gast',+ 'Your data lives on this device. Sign in to sync.': 'Deine Daten liegen auf diesem Gerät. Melde dich an, um zu synchronisieren.',+ 'Account, devices and sync': 'Konto, Geräte und Synchronisierung',+ 'Synced with your server': 'Mit deinem Server synchronisiert',+ 'Sync needs a look': 'Die Synchronisierung braucht einen Blick',+ 'This phone': 'Dieses Handy',+ 'Example data, only in this browser.': 'Beispieldaten, nur in diesem Browser.',+ 'Search settings': 'Einstellungen durchsuchen',+ 'No setting matches “{0}”.': 'Keine Einstellung passt zu „{0}“.',+ '{0} result': '{0} Treffer',+ '{0} results': '{0} Treffer',+ '{0} minute': '{0} Minute',+ '{0} minutes': '{0} Minuten',+ '{0} second': '{0} Sekunde',+ '{0} seconds': '{0} Sekunden',+ 'Scroll to 0:00 to turn the rest timer off.': 'Scroll auf 0:00, um den Pausen-Timer auszuschalten.',+ 'The short break between the bursts of a rest-pause set.': 'Die kurze Pause zwischen den Schüben eines Rest-Pause-Satzes.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Jede Übung kann auch ihre eigene Pause haben. Stell sie in den Übungseinstellungen einer Routine ein.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'Das iPhone lässt openGym nicht vibrieren. Ein Ton oder ein Blinken tut es auch.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Kein Konto, keine Cloud. Sichere sie jederzeit unter Daten & Backup.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Anstrengung pro Satz ist aus. Schalte sie unter Einstellungen → Training ein, um weiter zu bewerten.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Gib den Code ein, den dein anderes Gerät unter Einstellungen → Konto → Weiteres Gerät hinzufügen zeigt. Dieses Gerät bekommt dann einen eigenen Passkey.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Öffne auf der openGym-Seite, bei der du bereits angemeldet bist, Einstellungen → Konto → „Mobile App koppeln“, und gib dann deren Adresse und den dort angezeigten Code ein.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Öffne auf deiner openGym-Seite im Browser Einstellungen → Konto → „Mobile App koppeln“ und gib den neuen Code ein, der dort angezeigt wird. Was dieses Handy aufbewahrt hat, wird in dein Konto übernommen.',}diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex e07d0ae72..f11f7dbe0 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Crea en este dispositivo una passkey para el perfil «{0}». Con ella inicias sesión aquí a partir de ahora.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Cada una inicia sesión en este perfil desde el dispositivo o el gestor de contraseñas que la guarda. Toca una para cambiarle el nombre o quitarla.','Enter the code from your other device.': 'Introduce el código de tu otro dispositivo.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Introduce el código que muestra tu otro dispositivo en Ajustes → Añadir otro dispositivo. Este dispositivo tendrá entonces su propia passkey.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Para este dispositivo, una llave de seguridad, un gestor de contraseñas o tu teléfono mediante el código QR del propio navegador. Primero confirma que eres tú.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Ya no podrá iniciar sesión en este perfil. Un dispositivo que ya inició sesión con ella sigue conectado. Si se perdió, usa «Cerrar sesión en todos los dispositivos».','It is your only way in, so it cannot be removed until there is another.': 'Es tu única forma de entrar, así que no se puede quitar hasta que haya otra.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'No se pudo cerrar la sesión en todos los dispositivos. Sigues con la sesión iniciada.','Create passkey profile': 'Crear perfil con passkey','Passkeys not supported in this browser.': 'Passkeys no compatibles con este navegador.',- 'Appearance': 'Apariencia','synced with your profile': 'sincronizado con tu perfil','Language': 'Idioma','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Las instrucciones de los ejercicios aún no están traducidas a este idioma, así que se quedan en inglés.',@@ -434,7 +432,6 @@ export default {'System': 'Sistema','Accent color': 'Color de acento','General': 'General',- 'During a workout': 'Durante el entrenamiento','Keep screen awake': 'Mantener la pantalla encendida','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'La pantalla se mantiene encendida mientras hay un entrenamiento en curso, así no tienes que desbloquear el móvil entre series.','Weight unit': 'Unidad de peso',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Temporizador de descanso',- 'Sounds': 'Sonidos',- 'Flash screen when timer ends': 'Hacer parpadear la pantalla al finalizar el temporizador','Vibrate': 'Vibración','Weigh in before workouts': 'Pesarse antes de entrenar','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Pide tu peso corporal al empezar un entrenamiento. Desactivado, la sesión empieza directamente.','No weigh-ins yet. Log your weight to start the curve.': 'Aún no hay pesajes. Apunta tu peso para empezar la curva.',- 'Play sounds when the phone is on silent': 'Reproducir sonidos con el teléfono en silencio','Music playing on this phone stops during a workout and does not resume by itself.': 'La música que suena en este teléfono se detiene durante un entrenamiento y no se reanuda por sí sola.',- 'Classic timer sound': 'Sonido clásico del temporizador','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'El sonido más suave de tres pitidos de antes de la 1.3.9, en lugar del timbre más fuerte.','Data': 'Datos','Export backup (JSON)': 'Exportar copia (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Ampliar','Exercise animations': 'Animaciones de los ejercicios','Workout options': 'Opciones del entrenamiento',- 'Workout view': 'Vista del entrenamiento','Cards': 'Tarjetas','List': 'Lista','Compact': 'Compacta',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'Tus datos','All data stays on this phone': 'Todos los datos se quedan en este teléfono',- 'No account, no cloud. Back it up anytime with Export below.': 'Sin cuenta, sin nube. Haz una copia cuando quieras con Exportar, más abajo.','Reminds you at this time on days that have a routine planned.': 'Te avisa a esta hora los días que tienen una rutina planificada.','Workout day': 'Día de entrenamiento','{0} is on the plan today. Let’s go!': 'Hoy toca {0}. ¡Vamos!',@@ -806,7 +797,6 @@ export default {'average effort': 'esfuerzo medio','at {0} {1} or harder': 'a {0} {1} o más duro','{0} of {1} finished sets rated': '{0} de {1} series completadas valoradas',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'El esfuerzo por serie está desactivado. Actívalo en Ajustes para seguir valorando.','Week by week': 'Semana a semana','Where the sets land': 'Dónde caen las series','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'La mayoría de las series efectivas van cerca del fallo, no en él. La mitad abajo y la mitad arriba siguen dando una media que parece sana.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': 'Introduce la dirección de tu servidor y el código','Connected': 'Conectado','Could not connect': 'No se pudo conectar',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'En Ajustes → «Emparejar la app móvil» del sitio de openGym en el que ya has iniciado sesión, luego introduce su dirección y el código que aparece ahí.','Server address (e.g. gym.example.com)': 'Dirección del servidor (p. ej. gym.example.com)','Pairing code': 'Código de emparejamiento','Connecting…': 'Conectando…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Serie descendente','Rest-pause burst': 'Ráfaga rest-pause','Remove this set': 'Quitar esta serie',- 'Workout controls': 'Controles del entrenamiento','Weight and reps buttons': 'Botones +/− de peso y repeticiones','Off: tap the number and type it': 'Desactivado: toca el número y escríbelo','Drop and burst shortcuts on every set': 'Atajos de drop y ráfaga en cada serie',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'Se descargará la última versión y se abrirá el instalador.','Download & Install': 'Descargar e instalar','Update failed: {0}': 'Error en la actualización: {0}',- 'Updates': 'Actualizaciones','Check for updates': 'Buscar actualizaciones','Checking…': 'Comprobando…','You have v{0}': 'Tienes la v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Este teléfono vuelve al modo local y se elimina de él la copia de tu cuenta. Antes se comprueba que tu servidor tiene todos los cambios. Si no, tú decides qué hacer con ellos.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Tus datos se eliminan de este navegador; tu perfil en el servidor los conserva. Antes se comprueba que el servidor tiene todos los cambios. Si no, tú decides qué hacer con ellos.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Cierra la sesión de este perfil en todos los dispositivos, incluido este. Los teléfonos emparejados con él se desconectan y hay que volver a emparejarlos. Tus passkeys siguen funcionando, así que puedes volver a iniciar sesión con ellas cuando quieras.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Ajustes → «Emparejar la app móvil» en tu sitio de openGym en un navegador e introduce el nuevo código que aparece ahí. Lo que este teléfono guardó se fusiona con tu cuenta.','{0} change': '{0} cambio','{0} changes': '{0} cambios',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotación','Fixed Week': 'Semana fija',- 'Scheduling': 'Programación','Externally managed': 'Gestionada externamente','Position {0}': 'Posición {0}','Add routine to the rotation': 'Añadir rutina a la rotación',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} fotos','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Se llegó a tu servidor, pero rechazó la solicitud de la app (CORS). Si un proxy inverso como Traefik añade cabeceras CORS, deja pasar sin cambios hasta openGym las solicitudes de {0}. Consulta «Phone app and CORS» en docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'No se pudo llegar a {0}. Comprueba la dirección y que este teléfono pueda alcanzarlo.',- 'Vibrate when the phone is on silent': 'Vibrar con el teléfono en silencio','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'El final de un descanso o de un aguante vibra como una alarma, incluso en silencio.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Repetir hoy',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Cambia de lado','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Guarda una copia con fecha en «{0}» al terminar un entreno o editar una rutina, y conserva las {1} más recientes.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Guarda una copia con fecha en la carpeta que elegiste al terminar un entreno o editar una rutina, y conserva las {0} más recientes.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Avisos del temporizador',+ 'Reminders': 'Recordatorios',+ 'Plan & schedule': 'Plan y horario',+ 'Units & language': 'Unidades e idioma',+ 'Look & Home': 'Aspecto e Inicio',+ 'Data & backup': 'Datos y copias',+ 'About & updates': 'Información y actualizaciones',+ 'Fine-tuning': 'Ajustes finos',+ 'Logging': 'Registro',+ 'Before and during': 'Antes y durante',+ 'Sessions and timed sets': 'Sesiones y series por tiempo',+ 'Buttons on the workout screen': 'Botones en la pantalla del entreno',+ 'When a rest ends': 'Cuando acaba un descanso',+ 'On Home': 'En Inicio',+ 'Back up': 'Hacer copia',+ 'Bring data in': 'Traer datos',+ 'How you train': 'Cómo entrenas',+ 'Play a sound': 'Reproducir un sonido',+ 'Sound': 'Sonido',+ 'Chime (louder)': 'Campanilla (más fuerte)',+ 'Classic beeps': 'Pitidos clásicos',+ 'Play even on silent': 'Sonar también en silencio',+ 'Vibrate on silent too': 'Vibrar también en silencio',+ 'Flash the screen': 'Hacer parpadear la pantalla',+ 'Version': 'Versión',+ 'Source code': 'Código fuente',+ '{0} rest': '{0} de descanso',+ 'No rest timer': 'Sin temporizador',+ 'Buttons, timed sets': 'Botones, series por tiempo',+ 'Flash': 'Destello',+ 'Silent': 'En silencio',+ 'Everything': 'Todo',+ 'Your server': 'Tu servidor',+ 'Your API key': 'Tu clave API',+ 'sec': 's',+ 'Not on iPhone': 'No en iPhone',+ 'iPhone only': 'Solo en iPhone',+ 'Android app only': 'Solo en la app de Android',+ 'Guest': 'Invitado',+ 'Your data lives on this device. Sign in to sync.': 'Tus datos están en este dispositivo. Inicia sesión para sincronizar.',+ 'Account, devices and sync': 'Cuenta, dispositivos y sincronización',+ 'Synced with your server': 'Sincronizado con tu servidor',+ 'Sync needs a look': 'Revisa la sincronización',+ 'This phone': 'Este teléfono',+ 'Example data, only in this browser.': 'Datos de ejemplo, solo en este navegador.',+ 'Search settings': 'Buscar en Ajustes',+ 'No setting matches “{0}”.': 'Ningún ajuste coincide con «{0}».',+ '{0} result': '{0} resultado',+ '{0} results': '{0} resultados',+ '{0} minute': '{0} minuto',+ '{0} minutes': '{0} minutos',+ '{0} second': '{0} segundo',+ '{0} seconds': '{0} segundos',+ 'Scroll to 0:00 to turn the rest timer off.': 'Desliza hasta 0:00 para apagar el temporizador.',+ 'The short break between the bursts of a rest-pause set.': 'El descanso corto entre los bloques de una serie rest-pause.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Cada ejercicio también puede tener su propio descanso. Ajústalo en los ajustes del ejercicio dentro de una rutina.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'El iPhone no deja vibrar a openGym. Un sonido o un destello hacen el trabajo.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Sin cuenta, sin nube. Haz una copia cuando quieras en Datos y copias.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'El esfuerzo por serie está desactivado. Actívalo en Ajustes → Entreno para seguir valorando.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Introduce el código que muestra tu otro dispositivo en Ajustes → Cuenta → Añadir otro dispositivo. Este dispositivo tendrá entonces su propia passkey.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Abre Ajustes → Cuenta → «Emparejar la app móvil» en el sitio de openGym en el que ya has iniciado sesión y luego introduce su dirección y el código que aparece ahí.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Ajustes → Cuenta → «Emparejar la app móvil» en tu sitio de openGym en un navegador e introduce el nuevo código que aparece ahí. Lo que este teléfono guardó se fusiona con tu cuenta.',}diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex 2e4313e87..98326ba93 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Crée sur cet appareil une passkey pour le profil « {0} ». C’est avec elle que tu te connectes ici désormais.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Chacune te connecte à ce profil depuis l’appareil ou le gestionnaire de mots de passe qui la garde. Touches-en une pour la renommer ou la retirer.','Enter the code from your other device.': 'Saisis le code de ton autre appareil.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Saisis le code que ton autre appareil affiche dans Réglages → Ajouter un autre appareil. Cet appareil reçoit alors sa propre passkey.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Pour cet appareil, une clé de sécurité, un gestionnaire de mots de passe, ou ton téléphone via le code QR du navigateur lui-même. Confirme d’abord que c’est bien toi.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Elle ne pourra plus se connecter à ce profil. Un appareil déjà connecté avec elle le reste. S’il a été perdu, utilise « Se déconnecter partout ».','It is your only way in, so it cannot be removed until there is another.': 'C’est ton seul moyen d’entrer, elle ne peut donc pas être retirée tant qu’il n’y en a pas d’autre.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Impossible de se déconnecter partout. Tu es toujours connecté.','Create passkey profile': 'Créer un profil passkey','Passkeys not supported in this browser.': 'Passkeys non prises en charge par ce navigateur.',- 'Appearance': 'Apparence','synced with your profile': 'synchronisé avec ton profil','Language': 'Langue','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Les instructions des exercices ne sont pas encore traduites dans cette langue, elles restent donc en anglais.',@@ -434,7 +432,6 @@ export default {'System': 'Système','Accent color': "Couleur d'accent",'General': 'Général',- 'During a workout': 'Pendant la séance','Keep screen awake': 'Garder l’écran allumé','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'L’écran reste allumé tant qu’une séance est en cours, pas besoin de déverrouiller ton téléphone entre les séries.','Weight unit': 'Unité de poids',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Minuteur de repos',- 'Sounds': 'Sons',- 'Flash screen when timer ends': 'Faire clignoter l’écran à la fin du minuteur','Vibrate': 'Vibration','Weigh in before workouts': 'Se peser avant la séance','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Demande ton poids au début d’une séance. Désactivé, la séance démarre directement.','No weigh-ins yet. Log your weight to start the curve.': 'Aucune pesée pour l’instant. Note ton poids pour lancer la courbe.',- 'Play sounds when the phone is on silent': 'Jouer les sons même si le téléphone est en mode silencieux','Music playing on this phone stops during a workout and does not resume by itself.': 'La musique en cours de lecture sur ce téléphone s’arrête pendant une séance et ne reprend pas toute seule.',- 'Classic timer sound': 'Son classique du minuteur','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Le son plus discret à trois bips d’avant la 1.3.9, au lieu du carillon plus fort.','Data': 'Données','Export backup (JSON)': 'Exporter une sauvegarde (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Agrandir','Exercise animations': 'Animations des exercices','Workout options': 'Options de la séance',- 'Workout view': 'Vue de l’entraînement','Cards': 'Cartes','List': 'Liste','Compact': 'Compacte',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'Vos données','All data stays on this phone': 'Toutes les données restent sur ce téléphone',- 'No account, no cloud. Back it up anytime with Export below.': 'Pas de compte, pas de cloud. Sauvegardez-les à tout moment via Exporter ci-dessous.','Reminds you at this time on days that have a routine planned.': 'Vous rappelle à cette heure les jours où une routine est planifiée.','Workout day': 'Jour d’entraînement','{0} is on the plan today. Let’s go!': '{0} est au programme aujourd’hui. C’est parti !',@@ -806,7 +797,6 @@ export default {'average effort': 'effort moyen','at {0} {1} or harder': 'à {0} {1} ou plus dur','{0} of {1} finished sets rated': '{0} séries notées sur {1} terminées',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'L’effort par série est désactivé. Active-le dans les Réglages pour continuer à noter.','Week by week': 'Semaine par semaine','Where the sets land': 'Où tombent les séries','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'La plupart des séries de travail se placent près de l’échec, pas à l’échec. La moitié tout en bas et la moitié tout en haut, ça donne quand même une moyenne qui a l’air saine.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': "Saisissez l'adresse de votre serveur et le code",'Connected': 'Connecté','Could not connect': 'Connexion impossible',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "Dans Réglages → « Associer l'application mobile » sur le site openGym où vous êtes déjà connecté, saisissez ensuite son adresse et le code qui s'y affiche.",'Server address (e.g. gym.example.com)': 'Adresse du serveur (ex. gym.example.com)','Pairing code': "Code d'association",'Connecting…': 'Connexion…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Série dégressive','Rest-pause burst': 'Rafale rest-pause','Remove this set': 'Supprimer cette série',- 'Workout controls': 'Commandes pendant la séance','Weight and reps buttons': 'Boutons +/− poids et répétitions','Off: tap the number and type it': 'Désactivé : touchez le nombre et saisissez-le','Drop and burst shortcuts on every set': 'Raccourcis drop et rafale sur chaque série',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'La dernière version sera téléchargée et l’installateur s’ouvrira.','Download & Install': 'Télécharger et installer','Update failed: {0}': 'Échec de la mise à jour : {0}',- 'Updates': 'Mises à jour','Check for updates': 'Rechercher des mises à jour','Checking…': 'Vérification…','You have v{0}': 'Tu as la v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Ce téléphone repasse en mode local et la copie de votre compte en est supprimée. On vérifie d’abord que votre serveur a toutes les modifications. Sinon, vous choisissez ce qu’elles deviennent.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Vos données sont supprimées de ce navigateur ; votre profil sur le serveur les conserve. On vérifie d’abord que le serveur a toutes les modifications. Sinon, vous choisissez ce qu’elles deviennent.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Déconnecte ce profil sur tous les appareils, y compris celui-ci. Les téléphones associés sont déconnectés et devront être associés à nouveau. Vos passkeys continuent de fonctionner, vous pouvez donc vous reconnecter avec quand vous voulez.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Ouvrez Réglages → « Associer l\'application mobile » sur votre site openGym dans un navigateur et saisissez le nouveau code qui s\'y affiche. Ce que ce téléphone a gardé est fusionné avec votre compte.','{0} change': '{0} modification','{0} changes': '{0} modifications',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotation','Fixed Week': 'Semaine fixe',- 'Scheduling': 'Planification','Externally managed': 'Gérée en externe','Position {0}': 'Position {0}','Add routine to the rotation': 'Ajouter une routine à la rotation',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} photos','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Ton serveur a été joint, mais il a refusé la requête de l’app (CORS). Si un proxy inverse comme Traefik ajoute des en-têtes CORS, laisse passer les requêtes de {0} jusqu’à openGym sans les modifier. Voir « Phone app and CORS » dans docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Impossible de joindre {0}. Vérifie l’adresse et que ce téléphone peut y accéder.',- 'Vibrate when the phone is on silent': 'Vibrer même si le téléphone est en mode silencieux','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'La fin d’un repos ou d’un maintien vibre comme une alarme, même en mode silencieux.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Refaire aujourd’hui',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Change de côté','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Enregistre une copie datée dans « {0} » après chaque séance terminée ou routine modifiée, et garde les {1} plus récentes.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Enregistre une copie datée dans le dossier choisi après chaque séance terminée ou routine modifiée, et garde les {0} plus récentes.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Alertes du minuteur',+ 'Reminders': 'Rappels',+ 'Plan & schedule': 'Plan et planning',+ 'Units & language': 'Unités et langue',+ 'Look & Home': 'Apparence et Accueil',+ 'Data & backup': 'Données et sauvegarde',+ 'About & updates': 'À propos et mises à jour',+ 'Fine-tuning': 'Réglages fins',+ 'Logging': 'Saisie',+ 'Before and during': 'Avant et pendant',+ 'Sessions and timed sets': 'Séances et séries chronométrées',+ 'Buttons on the workout screen': 'Boutons sur l’écran de séance',+ 'When a rest ends': 'À la fin d’un repos',+ 'On Home': 'Sur l’Accueil',+ 'Back up': 'Sauvegarder',+ 'Bring data in': 'Importer des données',+ 'How you train': 'Ta façon de t’entraîner',+ 'Play a sound': 'Jouer un son',+ 'Sound': 'Son',+ 'Chime (louder)': 'Carillon (plus fort)',+ 'Classic beeps': 'Bips classiques',+ 'Play even on silent': 'Jouer même en silencieux',+ 'Vibrate on silent too': 'Vibrer aussi en silencieux',+ 'Flash the screen': 'Faire clignoter l’écran',+ 'Version': 'Version',+ 'Source code': 'Code source',+ '{0} rest': '{0} de repos',+ 'No rest timer': 'Pas de minuteur',+ 'Buttons, timed sets': 'Boutons, séries chronométrées',+ 'Flash': 'Flash',+ 'Silent': 'Silencieux',+ 'Everything': 'Tout',+ 'Your server': 'Ton serveur',+ 'Your API key': 'Ta clé API',+ 'sec': 's',+ 'Not on iPhone': 'Pas sur iPhone',+ 'iPhone only': 'Uniquement sur iPhone',+ 'Android app only': 'Uniquement dans l’app Android',+ 'Guest': 'Invité',+ 'Your data lives on this device. Sign in to sync.': 'Tes données restent sur cet appareil. Connecte-toi pour synchroniser.',+ 'Account, devices and sync': 'Compte, appareils et synchronisation',+ 'Synced with your server': 'Synchronisé avec ton serveur',+ 'Sync needs a look': 'La synchronisation demande un coup d’œil',+ 'This phone': 'Ce téléphone',+ 'Example data, only in this browser.': 'Données d’exemple, seulement dans ce navigateur.',+ 'Search settings': 'Rechercher dans les réglages',+ 'No setting matches “{0}”.': 'Aucun réglage ne correspond à « {0} ».',+ '{0} result': '{0} résultat',+ '{0} results': '{0} résultats',+ '{0} minute': '{0} minute',+ '{0} minutes': '{0} minutes',+ '{0} second': '{0} seconde',+ '{0} seconds': '{0} secondes',+ 'Scroll to 0:00 to turn the rest timer off.': 'Fais défiler jusqu’à 0:00 pour couper le minuteur.',+ 'The short break between the bursts of a rest-pause set.': 'La courte pause entre les salves d’une série rest-pause.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Chaque exercice peut aussi avoir son propre repos. Règle-le dans les réglages de l’exercice d’une routine.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'L’iPhone ne laisse pas openGym vibrer. Un son ou un flash font l’affaire.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Pas de compte, pas de cloud. Sauvegarde-les quand tu veux dans Données et sauvegarde.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'L’effort par série est désactivé. Active-le dans Réglages → Séance pour continuer à noter.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Saisis le code que ton autre appareil affiche dans Réglages → Compte → Ajouter un autre appareil. Cet appareil reçoit alors sa propre passkey.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Ouvre Réglages → Compte → « Associer l’application mobile » sur le site openGym où tu es déjà connecté, puis saisis son adresse et le code qui s’y affiche.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Ouvre Réglages → Compte → « Associer l’application mobile » sur ton site openGym dans un navigateur et saisis le nouveau code qui s’y affiche. Ce que ce téléphone a gardé est fusionné avec ton compte.',}diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex be286da49..74c2b0e31 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'इस डिवाइस पर प्रोफ़ाइल "{0}" के लिए पासकी बनाएँ। अब से आप यहाँ इसी से साइन इन करेंगे।','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'हर पासकी उस डिवाइस या पासवर्ड मैनेजर से इस प्रोफ़ाइल में साइन इन करती है जिसमें वह रखी है। नाम बदलने या हटाने के लिए किसी पर टैप करें।','Enter the code from your other device.': 'अपने दूसरे डिवाइस का कोड दर्ज करें।',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'वह कोड दर्ज करें जो आपका दूसरा डिवाइस सेटिंग्स → दूसरा डिवाइस जोड़ें में दिखाता है। फिर इस डिवाइस को अपनी पासकी मिल जाएगी।','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'इस डिवाइस, सिक्योरिटी की, पासवर्ड मैनेजर, या ब्राउज़र के अपने QR कोड के ज़रिए आपके फ़ोन के लिए। पहले पुष्टि करें कि यह आप ही हैं।','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'इससे अब इस प्रोफ़ाइल में साइन इन नहीं हो सकेगा। जो डिवाइस इससे पहले से साइन इन है, वह साइन इन ही रहेगा। अगर वह खो गया हो, तो "हर जगह साइन आउट करें" इस्तेमाल करें।','It is your only way in, so it cannot be removed until there is another.': 'यह अंदर आने का आपका एकमात्र तरीका है, इसलिए जब तक कोई दूसरा न हो, इसे हटाया नहीं जा सकता।',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'हर जगह साइन आउट नहीं हो सका। आप अभी भी साइन इन हैं।','Create passkey profile': 'पासकी प्रोफ़ाइल बनाएँ','Passkeys not supported in this browser.': 'इस ब्राउज़र में पासकी समर्थित नहीं।',- 'Appearance': 'दिखावट','synced with your profile': 'प्रोफ़ाइल से सिंक','Language': 'भाषा','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'व्यायाम निर्देश अभी इस भाषा में अनुवादित नहीं हैं, इसलिए वे अंग्रेज़ी में रहेंगे।',@@ -434,7 +432,6 @@ export default {'System': 'सिस्टम','Accent color': 'एक्सेंट रंग','General': 'सामान्य',- 'During a workout': 'वर्कआउट के दौरान','Keep screen awake': 'स्क्रीन चालू रखें','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'वर्कआउट चलने के दौरान स्क्रीन चालू रहती है, ताकि सेट के बीच फ़ोन अनलॉक न करना पड़े।','Weight unit': 'वज़न की इकाई',@@ -445,15 +442,11 @@ export default {'0.5': '0.5','0.25': '0.25','Rest timer': 'आराम टाइमर',- 'Sounds': 'ध्वनियाँ',- 'Flash screen when timer ends': 'टाइमर खत्म होने पर स्क्रीन फ्लैश करें','Vibrate': 'कंपन','Weigh in before workouts': 'वर्कआउट से पहले वज़न दर्ज करना','Asks for your body weight when a workout starts. Off starts the session straight away.': 'वर्कआउट शुरू होते समय आपका वज़न पूछता है। बंद होने पर सेशन सीधे शुरू होता है।','No weigh-ins yet. Log your weight to start the curve.': 'अभी कोई वज़न दर्ज नहीं। ग्राफ़ शुरू करने के लिए वज़न दर्ज करें।',- 'Play sounds when the phone is on silent': 'फ़ोन साइलेंट पर हो तब भी आवाज़ें बजाएँ','Music playing on this phone stops during a workout and does not resume by itself.': 'इस फ़ोन पर चल रहा संगीत वर्कआउट के दौरान रुक जाता है और अपने आप फिर से शुरू नहीं होता।',- 'Classic timer sound': 'क्लासिक टाइमर ध्वनि','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'तेज़ चाइम के बजाय 1.3.9 से पहले वाली शांत तीन-बीप ध्वनि।','Data': 'डेटा','Export backup (JSON)': 'बैकअप निर्यात करें (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'बड़ा करें','Exercise animations': 'व्यायाम एनिमेशन','Workout options': 'वर्कआउट विकल्प',- 'Workout view': 'वर्कआउट दृश्य','Cards': 'कार्ड','List': 'सूची','Compact': 'संक्षिप्त',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'आपका डेटा','All data stays on this phone': 'सारा डेटा इसी फ़ोन पर रहता है',- 'No account, no cloud. Back it up anytime with Export below.': 'न खाता, न क्लाउड। नीचे एक्सपोर्ट से कभी भी बैकअप लें।','Reminds you at this time on days that have a routine planned.': 'जिन दिनों रूटीन प्लान है, उस समय याद दिलाता है।','Workout day': 'वर्कआउट का दिन','{0} is on the plan today. Let’s go!': 'आज प्लान में {0} है। चलिए शुरू करें!',@@ -806,7 +797,6 @@ export default {'average effort': 'औसत मेहनत','at {0} {1} or harder': '{0} {1} या उससे कठिन','{0} of {1} finished sets rated': '{1} पूरे किए सेट में से {0} आँके गए',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'हर सेट की मेहनत बंद है। आँकना जारी रखने के लिए सेटिंग्स में चालू करें।','Week by week': 'हफ़्ते दर हफ़्ते','Where the sets land': 'सेट कहाँ गिरते हैं','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'ज़्यादातर वर्किंग सेट फ़ेल्योर के पास होने चाहिए, उस पर नहीं। आधे सबसे नीचे और आधे सबसे ऊपर हों, तब भी औसत बीच में सेहतमंद-सा दिखता है।',@@ -1012,7 +1002,6 @@ export default {'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…': 'कनेक्ट हो रहा है…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'ड्रॉप सेट','Rest-pause burst': 'रेस्ट-पॉज़ बर्स्ट','Remove this set': 'यह सेट हटाएँ',- 'Workout controls': 'वर्कआउट नियंत्रण','Weight and reps buttons': 'वज़न और रेप्स के +/− बटन','Off: tap the number and type it': 'बंद: संख्या पर टैप करें और टाइप करें','Drop and burst shortcuts on every set': 'हर सेट पर ड्रॉप और बर्स्ट शॉर्टकट',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'नवीनतम संस्करण डाउनलोड होगा और इंस्टॉलर खुलेगा।','Download & Install': 'डाउनलोड और इंस्टॉल करें','Update failed: {0}': 'अपडेट विफल: {0}',- 'Updates': 'अपडेट','Check for updates': 'अपडेट देखें','Checking…': 'जाँच हो रही है…','You have v{0}': 'आपके पास v{0} है',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'यह फ़ोन वापस केवल-लोकल मोड में चला जाता है और आपके खाते की कॉपी इससे हटा दी जाती है। पहले जाँचा जाता है कि आपके सर्वर पर हर बदलाव है। अगर नहीं, तो आप तय करते हैं कि उनका क्या होगा।','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'आपका डेटा इस ब्राउज़र से हटा दिया जाता है; सर्वर पर आपकी प्रोफ़ाइल उसे रखती है। पहले जाँचा जाता है कि सर्वर पर हर बदलाव है। अगर नहीं, तो आप तय करते हैं कि उनका क्या होगा।','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'इस प्रोफ़ाइल को इस डिवाइस समेत हर डिवाइस से साइन आउट करता है। इससे पेयर किए गए फ़ोन डिस्कनेक्ट हो जाते हैं और उन्हें फिर से पेयर करना होगा। आपकी पासकी काम करती रहेंगी, तो आप कभी भी उनसे फिर साइन इन कर सकते हैं।',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'ब्राउज़र में अपनी openGym साइट पर सेटिंग्स → "मोबाइल ऐप पेयर करें" खोलें और वहाँ दिखा नया कोड डालें। इस फ़ोन ने जो रखा है, वह आपके खाते में जोड़ दिया जाएगा।','{0} change': '{0} बदलाव','{0} changes': '{0} बदलाव',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'रोटेशन','Fixed Week': 'नियत सप्ताह',- 'Scheduling': 'शेड्यूलिंग','Externally managed': 'बाहरी रूप से प्रबंधित','Position {0}': 'स्थान {0}','Add routine to the rotation': 'रोटेशन में रूटीन जोड़ें',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} फ़ोटो','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'आपका सर्वर मिल गया, लेकिन उसने ऐप का अनुरोध अस्वीकार कर दिया (CORS)। अगर Traefik जैसा कोई रिवर्स प्रॉक्सी CORS हेडर जोड़ता है, तो {0} से आने वाले अनुरोधों को बिना बदले openGym तक जाने दें। docs/SELF_HOSTING.md में “Phone app and CORS” देखें।','Could not reach {0}. Check the address and that this phone can reach it.': '{0} तक नहीं पहुँच सके। पता जाँचें और देखें कि यह फ़ोन उस तक पहुँच सकता है।',- 'Vibrate when the phone is on silent': 'फ़ोन साइलेंट पर हो तब भी कंपन करें','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'आराम या होल्ड का अंत अलार्म की तरह कंपन करता है, साइलेंट मोड में भी।',// --- repeat a saved workout today (#58) ---'Repeat today': 'आज दोहराएँ',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'साइड बदलें','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'हर वर्कआउट पूरा होने या रूटीन बदलने के बाद “{0}” में तारीख वाली कॉपी सेव करता है और सबसे नई {1} रखता है।','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'हर वर्कआउट पूरा होने या रूटीन बदलने के बाद आपके चुने फ़ोल्डर में तारीख वाली कॉपी सेव करता है और सबसे नई {0} रखता है।',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'टाइमर अलर्ट',+ 'Reminders': 'रिमाइंडर',+ 'Plan & schedule': 'प्लान और शेड्यूल',+ 'Units & language': 'इकाइयाँ और भाषा',+ 'Look & Home': 'दिखावट और होम',+ 'Data & backup': 'डेटा और बैकअप',+ 'About & updates': 'जानकारी और अपडेट',+ 'Fine-tuning': 'बारीक सेटिंग्स',+ 'Logging': 'लॉगिंग',+ 'Before and during': 'पहले और दौरान',+ 'Sessions and timed sets': 'सत्र और समय वाले सेट',+ 'Buttons on the workout screen': 'वर्कआउट स्क्रीन के बटन',+ 'When a rest ends': 'जब आराम खत्म हो',+ 'On Home': 'होम पर',+ 'Back up': 'बैकअप लें',+ 'Bring data in': 'डेटा लाएँ',+ 'How you train': 'आप कैसे ट्रेन करते हैं',+ 'Play a sound': 'आवाज़ बजाएँ',+ 'Sound': 'आवाज़',+ 'Chime (louder)': 'चाइम (तेज़)',+ 'Classic beeps': 'क्लासिक बीप',+ 'Play even on silent': 'साइलेंट पर भी बजाएँ',+ 'Vibrate on silent too': 'साइलेंट पर भी कंपन',+ 'Flash the screen': 'स्क्रीन चमकाएँ',+ 'Version': 'संस्करण',+ 'Source code': 'सोर्स कोड',+ '{0} rest': '{0} आराम',+ 'No rest timer': 'आराम टाइमर नहीं',+ 'Buttons, timed sets': 'बटन, समय वाले सेट',+ 'Flash': 'चमक',+ 'Silent': 'साइलेंट',+ 'Everything': 'सब कुछ',+ 'Your server': 'आपका सर्वर',+ 'Your API key': 'आपकी API कुंजी',+ 'sec': 'से.',+ 'Not on iPhone': 'iPhone पर नहीं',+ 'iPhone only': 'केवल iPhone पर',+ 'Android app only': 'केवल Android ऐप में',+ 'Guest': 'अतिथि',+ 'Your data lives on this device. Sign in to sync.': 'आपका डेटा इसी डिवाइस पर है। सिंक करने के लिए साइन इन करें।',+ 'Account, devices and sync': 'खाता, डिवाइस और सिंक',+ 'Synced with your server': 'आपके सर्वर से सिंक है',+ 'Sync needs a look': 'सिंक को देखने की ज़रूरत है',+ 'This phone': 'यह फ़ोन',+ 'Example data, only in this browser.': 'उदाहरण डेटा, केवल इस ब्राउज़र में।',+ 'Search settings': 'सेटिंग्स खोजें',+ 'No setting matches “{0}”.': '“{0}” से कोई सेटिंग मेल नहीं खाती।',+ '{0} result': '{0} परिणाम',+ '{0} results': '{0} परिणाम',+ '{0} minute': '{0} मिनट',+ '{0} minutes': '{0} मिनट',+ '{0} second': '{0} सेकंड',+ '{0} seconds': '{0} सेकंड',+ 'Scroll to 0:00 to turn the rest timer off.': 'आराम टाइमर बंद करने के लिए 0:00 तक स्क्रॉल करें।',+ 'The short break between the bursts of a rest-pause set.': 'रेस्ट-पॉज़ सेट के हिस्सों के बीच का छोटा आराम।',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'हर एक्सरसाइज़ का अपना आराम भी हो सकता है। इसे किसी रूटीन की एक्सरसाइज़ सेटिंग्स में सेट करें।',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone openGym को कंपन नहीं करने देता। आवाज़ या चमक से काम हो जाता है।',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'न खाता, न क्लाउड। डेटा और बैकअप में कभी भी बैकअप लें।',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'हर सेट की मेहनत बंद है। आँकना जारी रखने के लिए सेटिंग्स → वर्कआउट में चालू करें।',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'वह कोड दर्ज करें जो आपका दूसरा डिवाइस सेटिंग्स → खाता → दूसरा डिवाइस जोड़ें में दिखाता है। फिर इस डिवाइस को अपनी पासकी मिल जाएगी।',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'जिस openGym साइट में आप पहले से साइन इन हैं, वहाँ सेटिंग्स → खाता → "मोबाइल ऐप पेयर करें" खोलें, फिर उसका पता और वहाँ दिखा कोड डालें।',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'ब्राउज़र में अपनी openGym साइट पर सेटिंग्स → खाता → "मोबाइल ऐप पेयर करें" खोलें और वहाँ दिखा नया कोड डालें। इस फ़ोन ने जो रखा है, वह आपके खाते में जोड़ दिया जाएगा।',}diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.jsindex 58145b0c1..fdfcff2c2 100644--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@ -381,7 +381,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Hozz létre ezen az eszközön egy jelszókulcsot a(z) „{0}” profilhoz. Mostantól ezzel jelentkezel be itt.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Mindegyik abból az eszközből vagy jelszókezelőből jelentkeztet be ebbe a profilba, amelyik tárolja. Koppints egyre az átnevezéséhez vagy eltávolításához.','Enter the code from your other device.': 'Add meg a kódot a másik eszközödről.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Add meg a kódot, amelyet a másik eszközöd a Beállítások → Másik eszköz hozzáadása alatt mutat. Ez az eszköz ezután saját jelszókulcsot kap.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Ehhez az eszközhöz, biztonsági kulcshoz, jelszókezelőhöz vagy a telefonodhoz a böngésző saját QR-kódján keresztül. Előbb erősítsd meg, hogy te vagy az.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Ezzel többé nem lehet belépni ebbe a profilba. Az az eszköz, amelyik már be van vele jelentkezve, bejelentkezve marad. Ha elveszett, használd a „Kijelentkezés mindenhonnan” lehetőséget.','It is your only way in, so it cannot be removed until there is another.': 'Ez az egyetlen módod a belépésre, ezért addig nem távolítható el, amíg nincs másik.',@@ -426,7 +425,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Nem sikerült mindenhonnan kijelentkezni. Továbbra is be vagy jelentkezve.','Create passkey profile': 'Jelszókulcs-profil létrehozása','Passkeys not supported in this browser.': 'A jelszókulcsok nem támogatottak ebben a böngészőben.',- 'Appearance': 'Megjelenés','synced with your profile': 'szinkronizálva a profiloddal','Language': 'Nyelv','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'A gyakorlatleírások még nincsenek lefordítva erre a nyelvre, ezért angolul maradnak.',@@ -440,7 +438,6 @@ export default {'System': 'Rendszer','Accent color': 'Kiemelő szín','General': 'Általános',- 'During a workout': 'Edzés közben','Keep screen awake': 'Képernyő ébren tartása','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'A képernyő edzés közben bekapcsolva marad, így sorozatok között nem kell feloldanod a telefonod.','Weight unit': 'Súlymértékegység',@@ -451,7 +448,6 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Pihenő időzítő',- 'Sounds': 'Hangok','Data': 'Adatok','Export backup (JSON)': 'Biztonsági mentés exportálása (JSON)','Import backup': 'Biztonsági mentés importálása',@@ -563,7 +559,6 @@ export default {'Expand': 'Kibontás','Exercise animations': 'Gyakorlat-animációk','Workout options': 'Edzés beállításai',- 'Workout view': 'Edzésnézet','Cards': 'Kártyák','List': 'Lista','Compact': 'Tömör',@@ -644,7 +639,6 @@ export default {// --- mobile build ---'Your data': 'A te adataid','All data stays on this phone': 'Minden adat ezen a telefonon marad',- 'No account, no cloud. Back it up anytime with Export below.': 'Nincs fiók, nincs felhő. Bármikor menthetsz lent az Exporttal.','Reminds you at this time on days that have a routine planned.': 'Ekkor emlékeztet azokon a napokon, amikor rutin van tervezve.','Workout day': 'Edzésnap','{0} is on the plan today. Let’s go!': 'Ma {0} van a terven. Gyerünk!',@@ -776,7 +770,6 @@ export default {'average effort': 'átlagos megerőltetés','at {0} {1} or harder': '{0} {1} vagy nehezebb szinten','{0} of {1} finished sets rated': '{1}-ből {0} befejezett sorozat értékelve',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'A Megerőltetés sorozatonként ki van kapcsolva. Kapcsold be a Beállításokban a további értékeléshez.','Week by week': 'Hétről hétre','Where the sets land': 'Hova esnek a sorozatok','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'A legtöbb munkasorozat a kimerülés közelébe való, nem bele. Ha fele a legalján, fele a tetején van, az átlag akkor is egészségesnek tűnő középet ad.',@@ -834,7 +827,6 @@ export default {'Connecting…': 'Csatlakozás…','Pairing code': 'Párosítási kód','Server address (e.g. gym.example.com)': 'Szerver címe (pl. gym.example.com)',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Nyisd meg a Beállítások → „Mobilalkalmazás párosítása” menüpontot azon az openGym oldalon, ahová már be vagy jelentkezve, majd add meg az ott látható címet és kódot.','Could not connect': 'Nem sikerült csatlakozni','Connected': 'Csatlakozva','Enter your server address and the code': 'Add meg a szervered címét és a kódot',@@ -878,14 +870,11 @@ export default {'Insert after this group': 'Beszúrás a csoport után','Logged sets stay with the original exercise. The replacement will be inserted afterward.': 'A naplózott sorozatok az eredeti gyakorlatnál maradnak. A csere utána kerül beszúrásra.','Rest after each set of this exercise. Leave at 0 to use your default rest timer.': 'Pihenő a gyakorlat minden sorozata után. Hagyd 0-n az alapértelmezett pihenőidőzítőhöz.',- 'Flash screen when timer ends': 'Képernyő villogása, ha lejár az időzítő','Vibrate': 'Rezgés','Weigh in before workouts': 'Súlymérés edzés előtt','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Edzés indításakor rákérdez a testsúlyodra. Kikapcsolva az edzés azonnal indul.','No weigh-ins yet. Log your weight to start the curve.': 'Még nincs mérés. Rögzítsd a súlyodat a görbe indításához.',- 'Play sounds when the phone is on silent': 'Hangok lejátszása akkor is, ha a telefon némítva van','Music playing on this phone stops during a workout and does not resume by itself.': 'A telefonon szóló zene edzés közben leáll, és nem indul újra magától.',- 'Classic timer sound': 'Klasszikus időzítő hang','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Az 1.3.9 előtti halkabb, három sípolásból álló hang a hangosabb csengés helyett.','Import from Hevy': 'Importálás a Hevyből','Pull your history with a Hevy Pro API key': 'Előzmények letöltése Hevy Pro API-kulccsal',@@ -1349,7 +1338,6 @@ export default {'Drop set': 'Drop szett','Rest-pause burst': 'Rest-pause sorozat','Remove this set': 'Sorozat eltávolítása',- 'Workout controls': 'Vezérlők edzés közben','Weight and reps buttons': 'Súly és ismétlés +/− gombok','Off: tap the number and type it': 'Ki: koppints a számra és írd be','Drop and burst shortcuts on every set': 'Drop és rest-pause gyorsgombok minden sorozatnál',@@ -1365,7 +1353,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'A legújabb verzió letöltődik, és megnyílik a telepítő.','Download & Install': 'Letöltés és telepítés','Update failed: {0}': 'A frissítés sikertelen: {0}',- 'Updates': 'Frissítések','Check for updates': 'Frissítések keresése','Checking…': 'Ellenőrzés…','You have v{0}': 'Nálad a v{0} van',@@ -1454,7 +1441,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Ez a telefon visszavált csak-helyi módba, és a fiókod másolata törlődik róla. Előtte ellenőrzi, hogy a szervereden megvan-e minden módosítás. Ha nem, te döntöd el, mi legyen velük.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Az adataid törlődnek ebből a böngészőből; a szerveren lévő profilod megőrzi őket. Előtte ellenőrzi, hogy a szerveren megvan-e minden módosítás. Ha nem, te döntöd el, mi legyen velük.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Kijelentkezteti ezt a profilt minden eszközön, ezen is. A vele párosított telefonok leválasztódnak, és újra párosítani kell őket. A jelszókulcsaid továbbra is működnek, így bármikor bejelentkezhetsz velük újra.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Nyisd meg a Beállítások → „Mobilalkalmazás párosítása” menüpontot az openGym oldaladon egy böngészőben, és add meg az ott látható új kódot. Amit ez a telefon megőrzött, a fiókodba kerül.','{0} change': '{0} módosítás','{0} changes': '{0} módosítás',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1692,7 +1678,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotáció','Fixed Week': 'Fix hét',- 'Scheduling': 'Ütemezés','Externally managed': 'Külsőleg kezelt','Position {0}': 'Pozíció {0}','Add routine to the rotation': 'Rutin hozzáadása a rotációhoz',@@ -1754,7 +1739,6 @@ export default {'{0} photos': '{0} fotó','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'A szervered elérhető, de elutasította az app kérését (CORS). Ha egy reverse proxy, például a Traefik CORS-fejléceket ad hozzá, engedd át változatlanul az openGymhez a(z) {0} felől érkező kéréseket. Lásd: „Phone app and CORS”, docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'A(z) {0} nem érhető el. Ellenőrizd a címet, és hogy ez a telefon eléri-e.',- 'Vibrate when the phone is on silent': 'Rezgés akkor is, ha a telefon némítva van','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'A pihenő vagy a tartás vége ébresztőként rezeg, néma módban is.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Ismétlés ma',@@ -1798,4 +1782,67 @@ export default {'Switch sides': 'Oldalcsere','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Minden befejezett edzés vagy rutinmódosítás után dátumozott másolatot ment ide: „{0}”, és a legújabb {1} darabot megtartja.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Minden befejezett edzés vagy rutinmódosítás után dátumozott másolatot ment a választott mappába, és a legújabb {0} darabot megtartja.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Időzítő jelzései',+ 'Reminders': 'Emlékeztetők',+ 'Plan & schedule': 'Terv és beosztás',+ 'Units & language': 'Mértékegységek és nyelv',+ 'Look & Home': 'Megjelenés és Kezdőlap',+ 'Data & backup': 'Adatok és mentés',+ 'About & updates': 'Névjegy és frissítések',+ 'Fine-tuning': 'Finomhangolás',+ 'Logging': 'Rögzítés',+ 'Before and during': 'Előtte és közben',+ 'Sessions and timed sets': 'Edzések és időre menő sorozatok',+ 'Buttons on the workout screen': 'Gombok az edzés képernyőn',+ 'When a rest ends': 'Amikor a pihenő véget ér',+ 'On Home': 'A Kezdőlapon',+ 'Back up': 'Mentés',+ 'Bring data in': 'Adatok behozása',+ 'How you train': 'Így edzel',+ 'Play a sound': 'Hang lejátszása',+ 'Sound': 'Hang',+ 'Chime (louder)': 'Csengő (hangosabb)',+ 'Classic beeps': 'Klasszikus sípolás',+ 'Play even on silent': 'Némítva is szóljon',+ 'Vibrate on silent too': 'Némítva is rezegjen',+ 'Flash the screen': 'Villogjon a képernyő',+ 'Version': 'Verzió',+ 'Source code': 'Forráskód',+ '{0} rest': '{0} pihenő',+ 'No rest timer': 'Nincs pihenő időzítő',+ 'Buttons, timed sets': 'Gombok, időre menő sorozatok',+ 'Flash': 'Villogás',+ 'Silent': 'Néma',+ 'Everything': 'Minden',+ 'Your server': 'Saját szerver',+ 'Your API key': 'Saját API-kulcs',+ 'sec': 'mp',+ 'Not on iPhone': 'iPhone-on nem',+ 'iPhone only': 'Csak iPhone-on',+ 'Android app only': 'Csak az Android-alkalmazásban',+ 'Guest': 'Vendég',+ 'Your data lives on this device. Sign in to sync.': 'Az adataid ezen az eszközön vannak. Jelentkezz be a szinkronizáláshoz.',+ 'Account, devices and sync': 'Fiók, eszközök és szinkronizálás',+ 'Synced with your server': 'Szinkronban a szervereddel',+ 'Sync needs a look': 'A szinkronizálást érdemes megnézni',+ 'This phone': 'Ez a telefon',+ 'Example data, only in this browser.': 'Mintaadatok, csak ebben a böngészőben.',+ 'Search settings': 'Keresés a beállításokban',+ 'No setting matches “{0}”.': 'Egyik beállítás sem illik erre: „{0}”.',+ '{0} result': '{0} találat',+ '{0} results': '{0} találat',+ '{0} minute': '{0} perc',+ '{0} minutes': '{0} perc',+ '{0} second': '{0} másodperc',+ '{0} seconds': '{0} másodperc',+ 'Scroll to 0:00 to turn the rest timer off.': 'Görgess 0:00-ra a pihenő időzítő kikapcsolásához.',+ 'The short break between the bursts of a rest-pause set.': 'A rövid szünet egy rest-pause sorozat részei között.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Minden gyakorlatnak lehet saját pihenője is. Egy rutin gyakorlatbeállításaiban adhatod meg.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'Az iPhone nem engedi rezegni az openGymet. Egy hang vagy villogás is megteszi.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Nincs fiók, nincs felhő. Bármikor menthetsz az Adatok és mentés alatt.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'A Megerőltetés sorozatonként ki van kapcsolva. Kapcsold be a Beállítások → Edzés alatt a további értékeléshez.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Add meg a kódot, amelyet a másik eszközöd a Beállítások → Fiók → Másik eszköz hozzáadása alatt mutat. Ez az eszköz ezután saját jelszókulcsot kap.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Nyisd meg a Beállítások → Fiók → „Mobilalkalmazás párosítása” menüpontot azon az openGym oldalon, ahová már be vagy jelentkezve, majd add meg az ott látható címet és kódot.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Nyisd meg a Beállítások → Fiók → „Mobilalkalmazás párosítása” menüpontot az openGym oldaladon egy böngészőben, és add meg az ott látható új kódot. Amit ez a telefon megőrzött, a fiókodba kerül.',}diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 16c3d84bf..cca810678 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Crea su questo dispositivo una passkey per il profilo «{0}». D’ora in poi accedi qui con quella.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Ognuna accede a questo profilo dal dispositivo o dal gestore di password che la conserva. Toccane una per rinominarla o rimuoverla.','Enter the code from your other device.': 'Inserisci il codice dell’altro dispositivo.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Inserisci il codice che il tuo altro dispositivo mostra in Impostazioni → Aggiungi un altro dispositivo. Questo dispositivo avrà poi una passkey tutta sua.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Per questo dispositivo, una chiave di sicurezza, un gestore di password o il tuo telefono tramite il codice QR del browser stesso. Prima conferma che sei tu.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Non potrà più accedere a questo profilo. Un dispositivo che ha già effettuato l’accesso con essa resta connesso. Se è andato perso, usa «Esci ovunque».','It is your only way in, so it cannot be removed until there is another.': 'È il tuo unico modo per entrare, quindi non si può rimuovere finché non ce n’è un altro.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Impossibile uscire ovunque. Sei ancora connesso.','Create passkey profile': 'Crea profilo passkey','Passkeys not supported in this browser.': 'Passkey non supportate in questo browser.',- 'Appearance': 'Aspetto','synced with your profile': 'sincronizzato col tuo profilo','Language': 'Lingua','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Le istruzioni degli esercizi non sono ancora tradotte in questa lingua, quindi restano in inglese.',@@ -434,7 +432,6 @@ export default {'System': 'Sistema','Accent color': 'Colore accento','General': 'Generale',- 'During a workout': 'Durante l’allenamento','Keep screen awake': 'Mantieni lo schermo acceso','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Lo schermo resta acceso mentre un allenamento è in corso, così non devi sbloccare il telefono tra una serie e l’altra.','Weight unit': 'Unità di peso',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Timer di riposo',- 'Sounds': 'Suoni',- 'Flash screen when timer ends': 'Fai lampeggiare lo schermo alla fine del timer','Vibrate': 'Vibrazione','Weigh in before workouts': 'Pesarsi prima dell’allenamento','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Chiede il tuo peso all’avvio di un allenamento. Disattivato, la sessione parte subito.','No weigh-ins yet. Log your weight to start the curve.': 'Nessuna pesata ancora. Registra il tuo peso per far partire la curva.',- 'Play sounds when the phone is on silent': 'Riproduci i suoni anche con il telefono in silenzioso','Music playing on this phone stops during a workout and does not resume by itself.': 'La musica in riproduzione su questo telefono si ferma durante un allenamento e non riprende da sola.',- 'Classic timer sound': 'Suono classico del timer','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Il suono più silenzioso a tre bip di prima della 1.3.9, invece del suono più forte.','Data': 'Dati','Export backup (JSON)': 'Esporta backup (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Ingrandisci','Exercise animations': 'Animazioni degli esercizi','Workout options': 'Opzioni dell\'allenamento',- 'Workout view': 'Vista allenamento','Cards': 'Schede','List': 'Elenco','Compact': 'Compatta',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'I tuoi dati','All data stays on this phone': 'Tutti i dati restano su questo telefono',- 'No account, no cloud. Back it up anytime with Export below.': 'Niente account, niente cloud. Fai un backup quando vuoi con Esporta qui sotto.','Reminds you at this time on days that have a routine planned.': 'Ti avvisa a quest’ora nei giorni con una routine pianificata.','Workout day': 'Giorno di allenamento','{0} is on the plan today. Let’s go!': 'Oggi è in programma {0}. Forza!',@@ -806,7 +797,6 @@ export default {'average effort': 'sforzo medio','at {0} {1} or harder': 'a {0} {1} o più duro','{0} of {1} finished sets rated': '{0} di {1} serie completate valutate',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Lo sforzo per serie è disattivato. Attivalo nelle Impostazioni per continuare a valutare.','Week by week': 'Settimana per settimana','Where the sets land': 'Dove cadono le serie','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'La maggior parte delle serie di lavoro sta vicino al cedimento, non al cedimento. Metà in fondo e metà in cima danno comunque una media dall’aria sana.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': "Inserisci l'indirizzo del tuo server e il codice",'Connected': 'Connesso','Could not connect': 'Connessione non riuscita',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': "In Impostazioni → «Abbina l'app mobile» sul sito openGym in cui hai già effettuato l'accesso, poi inserisci il suo indirizzo e il codice mostrato lì.",'Server address (e.g. gym.example.com)': 'Indirizzo del server (es. gym.example.com)','Pairing code': 'Codice di abbinamento','Connecting…': 'Connessione…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Drop set','Rest-pause burst': 'Raffica rest-pause','Remove this set': 'Rimuovi questa serie',- 'Workout controls': 'Controlli durante l’allenamento','Weight and reps buttons': 'Pulsanti +/− di peso e ripetizioni','Off: tap the number and type it': 'Disattivato: tocca il numero e digitalo','Drop and burst shortcuts on every set': 'Scorciatoie drop e raffica su ogni serie',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'L’ultima versione verrà scaricata e si aprirà il programma di installazione.','Download & Install': 'Scarica e installa','Update failed: {0}': 'Aggiornamento fallito: {0}',- 'Updates': 'Aggiornamenti','Check for updates': 'Cerca aggiornamenti','Checking…': 'Controllo…','You have v{0}': 'Hai la v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Questo telefono torna alla modalità locale e la copia del tuo account viene rimossa. Prima si controlla che il tuo server abbia tutte le modifiche. Altrimenti scegli tu cosa farne.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'I tuoi dati vengono rimossi da questo browser; il tuo profilo sul server li conserva. Prima si controlla che il server abbia tutte le modifiche. Altrimenti scegli tu cosa farne.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Disconnette questo profilo su tutti i dispositivi, compreso questo. I telefoni abbinati vengono scollegati e vanno abbinati di nuovo. Le tue passkey continuano a funzionare, quindi puoi accedere di nuovo quando vuoi.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Apri Impostazioni → «Abbina l\'app mobile» sul tuo sito openGym in un browser e inserisci il nuovo codice mostrato lì. Ciò che questo telefono ha conservato viene unito al tuo account.','{0} change': '{0} modifica','{0} changes': '{0} modifiche',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotazione','Fixed Week': 'Settimana fissa',- 'Scheduling': 'Pianificazione','Externally managed': 'Gestita esternamente','Position {0}': 'Posizione {0}','Add routine to the rotation': 'Aggiungi routine alla rotazione',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} foto','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Il server è stato raggiunto, ma ha rifiutato la richiesta dell’app (CORS). Se un reverse proxy come Traefik aggiunge header CORS, lascia passare fino a openGym, senza modificarle, le richieste da {0}. Vedi «Phone app and CORS» in docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Impossibile raggiungere {0}. Controlla l’indirizzo e che questo telefono possa raggiungerlo.',- 'Vibrate when the phone is on silent': 'Vibra anche con il telefono in silenzioso','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'La fine di un recupero o di una tenuta vibra come una sveglia, anche in silenzioso.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Ripeti oggi',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Cambia lato','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Salva una copia datata in “{0}” dopo ogni allenamento finito o routine modificata, e tiene le {1} più recenti.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Salva una copia datata nella cartella che hai scelto dopo ogni allenamento finito o routine modificata, e tiene le {0} più recenti.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Avvisi del timer',+ 'Reminders': 'Promemoria',+ 'Plan & schedule': 'Piano e calendario',+ 'Units & language': 'Unità e lingua',+ 'Look & Home': 'Aspetto e Home',+ 'Data & backup': 'Dati e backup',+ 'About & updates': 'Info e aggiornamenti',+ 'Fine-tuning': 'Rifiniture',+ 'Logging': 'Registrazione',+ 'Before and during': 'Prima e durante',+ 'Sessions and timed sets': 'Sessioni e serie a tempo',+ 'Buttons on the workout screen': 'Pulsanti nella schermata di allenamento',+ 'When a rest ends': 'Quando finisce il recupero',+ 'On Home': 'Nella Home',+ 'Back up': 'Backup',+ 'Bring data in': 'Importa dati',+ 'How you train': 'Come ti alleni',+ 'Play a sound': 'Riproduci un suono',+ 'Sound': 'Suono',+ 'Chime (louder)': 'Rintocco (più forte)',+ 'Classic beeps': 'Bip classici',+ 'Play even on silent': 'Suona anche in silenzioso',+ 'Vibrate on silent too': 'Vibra anche in silenzioso',+ 'Flash the screen': 'Fai lampeggiare lo schermo',+ 'Version': 'Versione',+ 'Source code': 'Codice sorgente',+ '{0} rest': '{0} di recupero',+ 'No rest timer': 'Nessun timer',+ 'Buttons, timed sets': 'Pulsanti, serie a tempo',+ 'Flash': 'Lampeggio',+ 'Silent': 'Silenzioso',+ 'Everything': 'Tutto',+ 'Your server': 'Il tuo server',+ 'Your API key': 'La tua chiave API',+ 'sec': 's',+ 'Not on iPhone': 'Non su iPhone',+ 'iPhone only': 'Solo su iPhone',+ 'Android app only': 'Solo nell’app Android',+ 'Guest': 'Ospite',+ 'Your data lives on this device. Sign in to sync.': 'I tuoi dati restano su questo dispositivo. Accedi per sincronizzare.',+ 'Account, devices and sync': 'Account, dispositivi e sincronizzazione',+ 'Synced with your server': 'Sincronizzato con il tuo server',+ 'Sync needs a look': 'Controlla la sincronizzazione',+ 'This phone': 'Questo telefono',+ 'Example data, only in this browser.': 'Dati di esempio, solo in questo browser.',+ 'Search settings': 'Cerca nelle impostazioni',+ 'No setting matches “{0}”.': 'Nessuna impostazione corrisponde a «{0}».',+ '{0} result': '{0} risultato',+ '{0} results': '{0} risultati',+ '{0} minute': '{0} minuto',+ '{0} minutes': '{0} minuti',+ '{0} second': '{0} secondo',+ '{0} seconds': '{0} secondi',+ 'Scroll to 0:00 to turn the rest timer off.': 'Scorri fino a 0:00 per spegnere il timer.',+ 'The short break between the bursts of a rest-pause set.': 'La breve pausa tra i blocchi di una serie rest-pause.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Ogni esercizio può avere anche un suo recupero. Impostalo nelle impostazioni dell’esercizio di una routine.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'L’iPhone non permette a openGym di vibrare. Un suono o un lampeggio fanno lo stesso.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Niente account, niente cloud. Fai un backup quando vuoi in Dati e backup.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Lo sforzo per serie è disattivato. Attivalo in Impostazioni → Allenamento per continuare a valutare.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Inserisci il codice che il tuo altro dispositivo mostra in Impostazioni → Account → Aggiungi un altro dispositivo. Questo dispositivo avrà poi una passkey tutta sua.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Apri Impostazioni → Account → «Abbina l’app mobile» sul sito openGym in cui hai già effettuato l’accesso, poi inserisci il suo indirizzo e il codice mostrato lì.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Apri Impostazioni → Account → «Abbina l’app mobile» sul tuo sito openGym in un browser e inserisci il nuovo codice mostrato lì. Ciò che questo telefono ha conservato viene unito al tuo account.',}diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex 3d770b8d1..37e844f62 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': '이 기기에서 "{0}" 프로필용 패스키를 만드세요. 앞으로 여기서는 이 패스키로 로그인합니다.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': '각 패스키는 그것을 보관하는 기기나 비밀번호 관리자에서 이 프로필에 로그인합니다. 이름을 바꾸거나 제거하려면 하나를 탭하세요.','Enter the code from your other device.': '다른 기기의 코드를 입력하세요.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': '다른 기기의 설정 → 다른 기기 추가에 표시되는 코드를 입력하세요. 그러면 이 기기에도 자체 패스키가 생깁니다.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': '이 기기, 보안 키, 비밀번호 관리자 또는 브라우저 자체 QR 코드를 통한 휴대폰용입니다. 먼저 본인인지 확인하세요.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': '더 이상 이 프로필에 로그인할 수 없습니다. 이 패스키로 이미 로그인된 기기는 로그인 상태로 남습니다. 분실했다면 "모든 기기에서 로그아웃"을 사용하세요.','It is your only way in, so it cannot be removed until there is another.': '유일한 로그인 수단이므로 다른 수단이 생길 때까지 제거할 수 없습니다.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': '모든 기기에서 로그아웃하지 못했습니다. 아직 로그인 상태입니다.','Create passkey profile': '패스키 프로필 만들기','Passkeys not supported in this browser.': '이 브라우저는 패스키를 지원하지 않습니다.',- 'Appearance': '화면','synced with your profile': '프로필과 동기화됨','Language': '언어','Exercise instructions aren\'t translated into this language yet, so they stay in English.': '운동 설명이 아직 이 언어로 번역되지 않아 영어로 표시돼요.',@@ -434,7 +432,6 @@ export default {'System': '시스템','Accent color': '강조 색상','General': '일반',- 'During a workout': '운동 중','Keep screen awake': '화면 켜두기','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': '운동이 진행되는 동안 화면이 켜져 있어 세트 사이에 잠금을 해제할 필요가 없습니다.','Weight unit': '무게 단위',@@ -445,15 +442,11 @@ export default {'0.5': '0.5','0.25': '0.25','Rest timer': '휴식 타이머',- 'Sounds': '소리',- 'Flash screen when timer ends': '타이머 종료 시 화면 깜박임','Vibrate': '진동','Weigh in before workouts': '운동 전 체중 기록','Asks for your body weight when a workout starts. Off starts the session straight away.': '운동을 시작할 때 체중을 물어봅니다. 끄면 세션이 바로 시작됩니다.','No weigh-ins yet. Log your weight to start the curve.': '아직 체중 기록이 없어요. 체중을 기록하면 그래프가 시작돼요.',- 'Play sounds when the phone is on silent': '무음 모드에서도 소리 재생','Music playing on this phone stops during a workout and does not resume by itself.': '운동 중에는 이 휴대폰에서 재생 중인 음악이 멈추며, 자동으로 다시 재생되지 않습니다.',- 'Classic timer sound': '클래식 타이머 소리','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': '더 큰 차임벨 대신 1.3.9 이전의 더 조용한 세 번의 비프음을 사용합니다.','Data': '데이터','Export backup (JSON)': '백업 내보내기 (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': '확대','Exercise animations': '운동 애니메이션','Workout options': '운동 옵션',- 'Workout view': '운동 보기','Cards': '카드','List': '목록','Compact': '간략',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': '내 데이터','All data stays on this phone': '모든 데이터는 이 휴대폰에만 저장됩니다',- 'No account, no cloud. Back it up anytime with Export below.': '계정도 클라우드도 없어요. 아래 내보내기로 언제든 백업하세요.','Reminds you at this time on days that have a routine planned.': '루틴이 계획된 날 이 시간에 알려 드립니다.','Workout day': '운동하는 날','{0} is on the plan today. Let’s go!': '오늘은 {0} 하는 날이에요. 가 볼까요!',@@ -806,7 +797,6 @@ export default {'average effort': '평균 강도','at {0} {1} or harder': '{0} {1} 이상','{0} of {1} finished sets rated': '완료한 {1}세트 중 {0}세트 평가됨',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': '세트당 강도가 꺼져 있어요. 계속 평가하려면 설정에서 켜세요.','Week by week': '주별 변화','Where the sets land': '세트가 몰리는 곳','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': '대부분의 본세트는 실패 지점에 가까워야 하지, 실패 지점이면 안 돼요. 절반은 바닥, 절반은 꼭대기여도 평균은 그럴듯해 보이거든요.',@@ -1012,7 +1002,6 @@ export default {'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…': '연결 중…',@@ -1346,7 +1335,6 @@ export default {'Drop set': '드롭 세트','Rest-pause burst': '레스트 포즈','Remove this set': '이 세트 삭제',- 'Workout controls': '운동 중 버튼','Weight and reps buttons': '무게·횟수 +/− 버튼','Off: tap the number and type it': '끄면 숫자를 눌러 직접 입력','Drop and burst shortcuts on every set': '모든 세트에 드롭·레스트 포즈 바로가기',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': '최신 버전이 다운로드되고 설치 프로그램이 열립니다.','Download & Install': '다운로드 및 설치','Update failed: {0}': '업데이트 실패: {0}',- 'Updates': '업데이트','Check for updates': '업데이트 확인','Checking…': '확인 중…','You have v{0}': '현재 v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': '이 휴대폰은 로컬 모드로 돌아가고, 계정 사본이 휴대폰에서 삭제됩니다. 먼저 서버에 모든 변경 사항이 있는지 확인하며, 없으면 어떻게 할지 직접 선택합니다.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': '데이터가 이 브라우저에서 삭제되며, 서버의 프로필에는 그대로 남습니다. 먼저 서버에 모든 변경 사항이 있는지 확인하며, 없으면 어떻게 할지 직접 선택합니다.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': '이 기기를 포함한 모든 기기에서 이 프로필을 로그아웃합니다. 이 프로필과 페어링된 휴대폰은 연결이 해제되며 다시 페어링해야 합니다. 패스키는 계속 작동하므로 언제든 다시 로그인할 수 있습니다.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '브라우저에서 openGym 사이트의 설정 → "모바일 앱 페어링"을 열고 거기에 표시된 새 코드를 입력하세요. 이 휴대폰에 보관된 내용은 계정에 병합됩니다.','{0} change': '변경 {0}개','{0} changes': '변경 {0}개',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': '로테이션','Fixed Week': '고정 주간',- 'Scheduling': '일정 관리','Externally managed': '외부에서 관리됨','Position {0}': '순서 {0}','Add routine to the rotation': '로테이션에 루틴 추가',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '사진 {0}장','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': '서버에 연결되었지만 앱의 요청을 거부했습니다(CORS). Traefik 같은 리버스 프록시가 CORS 헤더를 추가한다면 {0}에서 오는 요청을 그대로 openGym까지 통과시키세요. docs/SELF_HOSTING.md의 “Phone app and CORS”를 참고하세요.','Could not reach {0}. Check the address and that this phone can reach it.': '{0}에 연결할 수 없습니다. 주소와 이 휴대폰에서 접속할 수 있는지 확인하세요.',- 'Vibrate when the phone is on silent': '무음 모드에서도 진동','The end of a rest or a hold buzzes like an alarm, even in silent mode.': '휴식이나 버티기가 끝나면 무음 모드에서도 알람처럼 진동합니다.',// --- repeat a saved workout today (#58) ---'Repeat today': '오늘 반복',@@ -1795,4 +1779,67 @@ export default {'Switch sides': '방향 바꾸기','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': '운동을 마치거나 루틴을 수정할 때마다 “{0}”에 날짜가 붙은 사본을 저장하고 최신 {1}개를 보관합니다.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': '운동을 마치거나 루틴을 수정할 때마다 선택한 폴더에 날짜가 붙은 사본을 저장하고 최신 {0}개를 보관합니다.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': '타이머 알림',+ 'Reminders': '리마인더',+ 'Plan & schedule': '플랜과 일정',+ 'Units & language': '단위와 언어',+ 'Look & Home': '화면과 홈',+ 'Data & backup': '데이터와 백업',+ 'About & updates': '정보와 업데이트',+ 'Fine-tuning': '세부 조정',+ 'Logging': '기록',+ 'Before and during': '시작 전과 운동 중',+ 'Sessions and timed sets': '세션과 시간 세트',+ 'Buttons on the workout screen': '운동 화면의 버튼',+ 'When a rest ends': '휴식이 끝나면',+ 'On Home': '홈 화면',+ 'Back up': '백업하기',+ 'Bring data in': '데이터 가져오기',+ 'How you train': '운동 방식',+ 'Play a sound': '소리 재생',+ 'Sound': '소리',+ 'Chime (louder)': '차임 (더 크게)',+ 'Classic beeps': '클래식 비프음',+ 'Play even on silent': '무음 모드에서도 재생',+ 'Vibrate on silent too': '무음 모드에서도 진동',+ 'Flash the screen': '화면 깜빡이기',+ 'Version': '버전',+ 'Source code': '소스 코드',+ '{0} rest': '휴식 {0}',+ 'No rest timer': '휴식 타이머 없음',+ 'Buttons, timed sets': '버튼, 시간 세트',+ 'Flash': '깜빡임',+ 'Silent': '무음',+ 'Everything': '전체',+ 'Your server': '내 서버',+ 'Your API key': '내 API 키',+ 'sec': '초',+ 'Not on iPhone': 'iPhone에서는 안 돼요',+ 'iPhone only': 'iPhone 전용',+ 'Android app only': 'Android 앱 전용',+ 'Guest': '게스트',+ 'Your data lives on this device. Sign in to sync.': '데이터가 이 기기에 있어요. 동기화하려면 로그인하세요.',+ 'Account, devices and sync': '계정, 기기, 동기화',+ 'Synced with your server': '내 서버와 동기화됨',+ 'Sync needs a look': '동기화를 확인해 주세요',+ 'This phone': '이 휴대폰',+ 'Example data, only in this browser.': '예시 데이터, 이 브라우저에만 있어요.',+ 'Search settings': '설정 검색',+ 'No setting matches “{0}”.': '“{0}”에 맞는 설정이 없어요.',+ '{0} result': '결과 {0}개',+ '{0} results': '결과 {0}개',+ '{0} minute': '{0}분',+ '{0} minutes': '{0}분',+ '{0} second': '{0}초',+ '{0} seconds': '{0}초',+ 'Scroll to 0:00 to turn the rest timer off.': '0:00으로 돌리면 휴식 타이머가 꺼져요.',+ 'The short break between the bursts of a rest-pause set.': '레스트포즈 세트의 묶음 사이 짧은 휴식이에요.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': '운동마다 휴식 시간을 따로 정할 수도 있어요. 루틴의 운동 설정에서 바꾸세요.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone에서는 openGym이 진동할 수 없어요. 소리나 깜빡임으로 충분해요.',+ 'No account, no cloud. Back it up anytime in Data & backup.': '계정도 클라우드도 없어요. 데이터와 백업에서 언제든 백업하세요.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': '세트당 강도가 꺼져 있어요. 계속 평가하려면 설정 → 운동에서 켜세요.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '다른 기기의 설정 → 계정 → 다른 기기 추가에 표시되는 코드를 입력하세요. 그러면 이 기기에도 자체 패스키가 생깁니다.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '이미 로그인된 openGym 사이트에서 설정 → 계정 → "모바일 앱 페어링"을 열고, 주소와 거기에 표시된 코드를 입력하세요.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '브라우저에서 openGym 사이트의 설정 → 계정 → "모바일 앱 페어링"을 열고 거기에 표시된 새 코드를 입력하세요. 이 휴대폰에 보관된 내용은 계정에 병합됩니다.',}diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex 9b7b8a9c9..b4a48f9f2 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Utwórz na tym urządzeniu passkey dla profilu „{0}”. Od teraz będziesz się nim tu logować.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Każdy z nich loguje do tego profilu z urządzenia lub menedżera haseł, w którym jest zapisany. Dotknij jednego, aby zmienić jego nazwę albo go usunąć.','Enter the code from your other device.': 'Wpisz kod z drugiego urządzenia.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Wpisz kod, który twoje drugie urządzenie pokazuje w Ustawienia → Dodaj kolejne urządzenie. To urządzenie dostanie wtedy własny passkey.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Dla tego urządzenia, klucza bezpieczeństwa, menedżera haseł albo twojego telefonu przez kod QR samej przeglądarki. Najpierw potwierdź, że to ty.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Nie będzie już można się nim zalogować do tego profilu. Urządzenie, które jest nim już zalogowane, pozostanie zalogowane. Jeśli zostało zgubione, użyj „Wyloguj wszędzie”.','It is your only way in, so it cannot be removed until there is another.': 'To twój jedyny sposób wejścia, więc nie można go usunąć, dopóki nie będzie innego.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Nie udało się wylogować wszędzie. Nadal jesteś zalogowany.','Create passkey profile': 'Utwórz profil passkey','Passkeys not supported in this browser.': 'Passkey nieobsługiwane w tej przeglądarce.',- 'Appearance': 'Wygląd','synced with your profile': 'synchronizowane z profilem','Language': 'Język','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Instrukcje ćwiczeń nie są jeszcze przetłumaczone na ten język, więc zostają po angielsku.',@@ -434,7 +432,6 @@ export default {'System': 'System','Accent color': 'Kolor akcentu','General': 'Ogólne',- 'During a workout': 'Podczas treningu','Keep screen awake': 'Nie wygaszaj ekranu','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Ekran pozostaje włączony w trakcie treningu, więc nie musisz odblokowywać telefonu między seriami.','Weight unit': 'Jednostka wagi',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Minutnik przerwy',- 'Sounds': 'Dźwięki',- 'Flash screen when timer ends': 'Migaj ekranem po zakończeniu minutnika','Vibrate': 'Wibracje','Weigh in before workouts': 'Ważenie przed treningiem','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Pyta o Twoją masę ciała przy rozpoczęciu treningu. Gdy wyłączone, sesja zaczyna się od razu.','No weigh-ins yet. Log your weight to start the curve.': 'Brak pomiarów wagi. Zapisz wagę, aby zacząć krzywą.',- 'Play sounds when the phone is on silent': 'Odtwarzaj dźwięki także przy wyciszonym telefonie','Music playing on this phone stops during a workout and does not resume by itself.': 'Muzyka odtwarzana na tym telefonie zatrzymuje się podczas treningu i nie wznawia się sama.',- 'Classic timer sound': 'Klasyczny dźwięk minutnika','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Cichszy dźwięk trzech sygnałów sprzed wersji 1.3.9 zamiast głośniejszego dzwonka.','Data': 'Dane','Export backup (JSON)': 'Eksportuj kopię (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Powiększ','Exercise animations': 'Animacje ćwiczeń','Workout options': 'Opcje treningu',- 'Workout view': 'Widok treningu','Cards': 'Karty','List': 'Lista','Compact': 'Kompaktowy',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'Twoje dane','All data stays on this phone': 'Wszystkie dane zostają na tym telefonie',- 'No account, no cloud. Back it up anytime with Export below.': 'Bez konta, bez chmury. Kopię zrobisz w każdej chwili przez Eksport poniżej.','Reminds you at this time on days that have a routine planned.': 'Przypomina o tej godzinie w dni z zaplanowaną rutyną.','Workout day': 'Dzień treningu','{0} is on the plan today. Let’s go!': 'Dziś w planie: {0}. Do dzieła!',@@ -806,7 +797,6 @@ export default {'average effort': 'średni wysiłek','at {0} {1} or harder': 'przy {0} {1} lub ciężej','{0} of {1} finished sets rated': 'ocenione serie: {0} z {1} ukończonych',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Wysiłek na serię jest wyłączony. Włącz go w Ustawieniach, aby dalej oceniać.','Week by week': 'Tydzień po tygodniu','Where the sets land': 'Gdzie lądują serie','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'Większość serii roboczych powinna być blisko upadku, ale nie na nim. Połowa na dole i połowa na górze i tak uśrednia się do zdrowo wyglądającego środka.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': 'Wpisz adres swojego serwera i kod','Connected': 'Połączono','Could not connect': 'Nie udało się połączyć',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'W Ustawieniach → „Sparuj aplikację mobilną” na stronie openGym, na której jesteś już zalogowany, wpisz jej adres i wyświetlony tam kod.','Server address (e.g. gym.example.com)': 'Adres serwera (np. gym.example.com)','Pairing code': 'Kod parowania','Connecting…': 'Łączenie…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Drop set','Rest-pause burst': 'Seria rest-pause','Remove this set': 'Usuń tę serię',- 'Workout controls': 'Przyciski podczas treningu','Weight and reps buttons': 'Przyciski +/− ciężaru i powtórzeń','Off: tap the number and type it': 'Wyłączone: dotknij liczby i wpisz ją','Drop and burst shortcuts on every set': 'Skróty drop i rest-pause przy każdej serii',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'Najnowsza wersja zostanie pobrana i otworzy się instalator.','Download & Install': 'Pobierz i zainstaluj','Update failed: {0}': 'Aktualizacja nie powiodła się: {0}',- 'Updates': 'Aktualizacje','Check for updates': 'Sprawdź aktualizacje','Checking…': 'Sprawdzanie…','You have v{0}': 'Masz v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Ten telefon wraca do trybu lokalnego, a kopia twojego konta zostaje z niego usunięta. Najpierw sprawdzane jest, czy twój serwer ma wszystkie zmiany. Jeśli nie, sam decydujesz, co się z nimi stanie.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Twoje dane zostają usunięte z tej przeglądarki; twój profil na serwerze je zachowuje. Najpierw sprawdzane jest, czy serwer ma wszystkie zmiany. Jeśli nie, sam decydujesz, co się z nimi stanie.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Wylogowuje ten profil na wszystkich urządzeniach, także na tym. Sparowane z nim telefony zostaną rozłączone i trzeba je będzie sparować ponownie. Twoje passkeys nadal działają, więc w każdej chwili możesz się nimi znów zalogować.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Otwórz Ustawienia → „Sparuj aplikację mobilną” na swojej stronie openGym w przeglądarce i wpisz nowy kod, który się tam pojawi. To, co zachował ten telefon, zostanie scalone z twoim kontem.','{0} change': '{0} zmiana','{0} changes': 'zmian: {0}',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotacja','Fixed Week': 'Stały tydzień',- 'Scheduling': 'Harmonogram','Externally managed': 'Zarządzane zewnętrznie','Position {0}': 'Pozycja {0}','Add routine to the rotation': 'Dodaj plan do rotacji',@@ -1751,7 +1736,6 @@ export default {'{0} photos': { one: '{0} zdjęcie', few: '{0} zdjęcia', many: '{0} zdjęć' },'Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Serwer odpowiada, ale odrzucił żądanie aplikacji (CORS). Jeśli reverse proxy, np. Traefik, dodaje nagłówki CORS, przepuść żądania z {0} do openGym bez zmian. Zobacz „Phone app and CORS” w docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Nie można połączyć się z {0}. Sprawdź adres i czy ten telefon ma do niego dostęp.',- 'Vibrate when the phone is on silent': 'Wibruj także przy wyciszonym telefonie','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'Koniec przerwy lub utrzymania wibruje jak budzik, nawet w trybie cichym.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Powtórz dziś',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Zmień stronę','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Zapisuje kopię z datą w „{0}” po każdym zakończonym treningu lub edycji planu i trzyma {1} najnowszych.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Zapisuje kopię z datą w wybranym folderze po każdym zakończonym treningu lub edycji planu i trzyma {0} najnowszych.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Sygnały minutnika',+ 'Reminders': 'Przypomnienia',+ 'Plan & schedule': 'Plan i harmonogram',+ 'Units & language': 'Jednostki i język',+ 'Look & Home': 'Wygląd i Start',+ 'Data & backup': 'Dane i kopie',+ 'About & updates': 'O aplikacji i aktualizacje',+ 'Fine-tuning': 'Dostrajanie',+ 'Logging': 'Zapisywanie',+ 'Before and during': 'Przed i w trakcie',+ 'Sessions and timed sets': 'Sesje i serie na czas',+ 'Buttons on the workout screen': 'Przyciski na ekranie treningu',+ 'When a rest ends': 'Gdy kończy się przerwa',+ 'On Home': 'Na ekranie Start',+ 'Back up': 'Kopia zapasowa',+ 'Bring data in': 'Wczytaj dane',+ 'How you train': 'Jak trenujesz',+ 'Play a sound': 'Odtwórz dźwięk',+ 'Sound': 'Dźwięk',+ 'Chime (louder)': 'Gong (głośniej)',+ 'Classic beeps': 'Klasyczne piknięcia',+ 'Play even on silent': 'Graj też przy wyciszeniu',+ 'Vibrate on silent too': 'Wibruj też przy wyciszeniu',+ 'Flash the screen': 'Mignij ekranem',+ 'Version': 'Wersja',+ 'Source code': 'Kod źródłowy',+ '{0} rest': '{0} przerwy',+ 'No rest timer': 'Bez minutnika',+ 'Buttons, timed sets': 'Przyciski, serie na czas',+ 'Flash': 'Mignięcie',+ 'Silent': 'Bez sygnału',+ 'Everything': 'Wszystko',+ 'Your server': 'Twój serwer',+ 'Your API key': 'Twój klucz API',+ 'sec': 's',+ 'Not on iPhone': 'Nie na iPhonie',+ 'iPhone only': 'Tylko na iPhonie',+ 'Android app only': 'Tylko w aplikacji na Androida',+ 'Guest': 'Gość',+ 'Your data lives on this device. Sign in to sync.': 'Twoje dane są na tym urządzeniu. Zaloguj się, aby synchronizować.',+ 'Account, devices and sync': 'Konto, urządzenia i synchronizacja',+ 'Synced with your server': 'Synchronizowane z twoim serwerem',+ 'Sync needs a look': 'Sprawdź synchronizację',+ 'This phone': 'Ten telefon',+ 'Example data, only in this browser.': 'Przykładowe dane, tylko w tej przeglądarce.',+ 'Search settings': 'Szukaj w ustawieniach',+ 'No setting matches “{0}”.': 'Żadne ustawienie nie pasuje do „{0}”.',+ '{0} result': '{0} wynik',+ '{0} results': { one: '{0} wynik', few: '{0} wyniki', many: '{0} wyników', other: '{0} wyniku' },+ '{0} minute': '{0} minuta',+ '{0} minutes': { one: '{0} minuta', few: '{0} minuty', many: '{0} minut', other: '{0} minuty' },+ '{0} second': '{0} sekunda',+ '{0} seconds': { one: '{0} sekunda', few: '{0} sekundy', many: '{0} sekund', other: '{0} sekundy' },+ 'Scroll to 0:00 to turn the rest timer off.': 'Przewiń do 0:00, aby wyłączyć minutnik.',+ 'The short break between the bursts of a rest-pause set.': 'Krótka przerwa między seriami cząstkowymi rest-pause.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Każde ćwiczenie może mieć też własną przerwę. Ustawisz ją w ustawieniach ćwiczenia w rutynie.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone nie pozwala openGym wibrować. Dźwięk albo mignięcie wystarczą.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Bez konta, bez chmury. Zrób kopię w każdej chwili w Dane i kopie.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Wysiłek na serię jest wyłączony. Włącz go w Ustawienia → Trening, aby dalej oceniać.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Wpisz kod, który twoje drugie urządzenie pokazuje w Ustawienia → Konto → Dodaj kolejne urządzenie. To urządzenie dostanie wtedy własny passkey.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Otwórz Ustawienia → Konto → „Sparuj aplikację mobilną” na stronie openGym, na której jesteś już zalogowany, a potem wpisz jej adres i wyświetlony tam kod.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Otwórz Ustawienia → Konto → „Sparuj aplikację mobilną” na swojej stronie openGym w przeglądarce i wpisz nowy kod, który się tam pojawi. To, co zachował ten telefon, zostanie scalone z twoim kontem.',}diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex f6262c866..43ab9b18f 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -118,11 +118,9 @@ export const PT_BR_OVERRIDES = {'Create passkey profile': 'Criar perfil com chave de acesso','synced with your profile': 'sincronizado com seu perfil','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'A tela permanece ligada durante o treino, para você não precisar desbloquear o celular entre as séries.',- 'Flash screen when timer ends': 'Piscar a tela quando o temporizador terminar','Weigh in before workouts': 'Pesar antes do treino','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Pede seu peso ao iniciar um treino. Desligado, a sessão começa na hora.','No weigh-ins yet. Log your weight to start the curve.': 'Nenhuma pesagem ainda. Registre seu peso para começar a curva.',- 'Play sounds when the phone is on silent': 'Tocar sons com o celular no silencioso','Music playing on this phone stops during a workout and does not resume by itself.': 'A música que estiver tocando neste celular para durante o treino e não volta sozinha.','Export backup (JSON)': 'Exportar backup (JSON)','Import backup': 'Importar backup',@@ -198,7 +196,6 @@ export const PT_BR_OVERRIDES = {'Back': 'Voltar','Your data': 'Seus dados','All data stays on this phone': 'Todos os dados ficam neste celular',- 'No account, no cloud. Back it up anytime with Export below.': 'Sem conta, sem nuvem. Faça backup quando quiser com Exportar, logo abaixo.','{0} is on the plan today. Let’s go!': 'Hoje tem {0} no plano. Bora!','Share your plan': 'Compartilhar seu plano','Shared routine': 'Rotina compartilhada',@@ -233,7 +230,6 @@ export const PT_BR_OVERRIDES = {'{0} sets bring an {1} with them. Switch on Effort per set in Settings to see it.': '{0} séries trazem um {1} junto. Ative “Esforço por série” nas Configurações para ver.','RIR counts the reps you left in the tank; RPE reads the same effort off a 10-point scale, so RPE ≈ 10 − RIR. Pick whichever you already think in.': 'O RIR conta as repetições que ainda ficaram no tanque; o RPE mede o mesmo esforço numa escala de 10, então RPE ≈ 10 − RIR. Escolha a que você já usa de cabeça.','The highlighted row is where most working sets land. Sets you have already logged keep their own scale, and nothing else reads the value, so progression and estimated 1RM are unaffected.': 'A linha destacada é onde cai a maioria das séries de trabalho. As séries já registradas mantêm a escala delas, e nada mais usa esse valor, então a progressão e o 1RM estimado não mudam.',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'O esforço por série está desativado. Ative nas Configurações para continuar avaliando.','No weight to enter. Just log the reps.': 'Sem peso para informar. É só registrar as repetições.','Reps climb by one whenever every set was clean. Set a ceiling to add sets instead of reps forever.': 'As repetições aumentam em uma quando todas as séries são concluídas. Defina um limite para adicionar séries em vez de aumentar repetições indefinidamente.','{0} reps in every set! Add a set and go back to {1}.': '{0} repetições em todas as séries! Adicione uma série e volte para {1}.',@@ -381,7 +377,6 @@ export const PT_BR_OVERRIDES = {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Crie neste dispositivo uma chave de acesso para o perfil “{0}”. A partir de agora, você entra aqui com ela.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Cada uma entra neste perfil a partir do dispositivo ou do gerenciador de senhas que a guarda. Toque em uma para renomeá-la ou removê-la.','Enter the code from your other device.': 'Digite o código do seu outro dispositivo.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Digite o código que seu outro dispositivo mostra em Configurações → Adicionar outro dispositivo. Este dispositivo passa a ter uma chave de acesso própria.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Para este dispositivo, uma chave de segurança, um gerenciador de senhas ou seu celular pelo código QR do próprio navegador. Primeiro confirme que é você.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Ela não poderá mais entrar neste perfil. Um dispositivo que já entrou com ela continua conectado. Se ele foi perdido, use “Sair de todos os dispositivos”.','It is your only way in, so it cannot be removed until there is another.': 'É sua única forma de entrar, por isso não pode ser removida enquanto não houver outra.',@@ -455,7 +450,6 @@ export const PT_BR_OVERRIDES = {'Enter your server address and the code': 'Digite o endereço do seu servidor e o código','Connected': 'Conectado','Could not connect': 'Não foi possível conectar',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'No site openGym em que você já está conectado, abra Configurações → “Parear o aplicativo”, depois digite o endereço e o código mostrado lá.','Connecting…': 'Conectando…','Connect': 'Conectar','How do you want to use openGym?': 'Como você quer usar o openGym?',@@ -778,7 +772,6 @@ export const PT_BR_OVERRIDES = {'Primary target': 'Músculo principal','Also trains': 'Também trabalha','Progression settings': 'Configurações de progressão',- 'Workout controls': 'Controles durante o treino','Off: tap the number and type it': 'Desligado: toque no número e digite','Move, swap and remove buttons below the exercise': 'Botões mover, trocar e remover abaixo do exercício','Everything hidden here stays one tap away: the ⋯ button of an exercise and the number of a set.': 'Tudo o que você esconde aqui fica a um toque: o botão ⋯ de um exercício e o número de uma série.',@@ -822,7 +815,6 @@ export const PT_BR_OVERRIDES = {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Este celular volta para o modo só local e a cópia da sua conta é removida dele. Antes, ele verifica se o seu servidor tem todas as alterações. Se não tiver, você escolhe o que acontece com elas.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Seus dados são removidos deste navegador; seu perfil no servidor continua com eles. Antes, ele verifica se o servidor tem todas as alterações. Se não tiver, você escolhe o que acontece com elas.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Encerra a sessão deste perfil em todos os dispositivos, incluindo este. Os celulares pareados com ele são desconectados e precisam ser pareados de novo. Suas chaves de acesso continuam funcionando, então você pode entrar com elas de novo quando quiser.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'No seu site openGym em um navegador, abra Configurações → “Parear o aplicativo” e digite o novo código mostrado lá. O que este celular manteve é incorporado à sua conta.',// plan vs session (#275, #216) — pt-PT's "planeadas", "registado" and tu-forms read as// Portugal here; "Plano: {0}" and "hoje {0}" are shared and inherit'Planned sessions start from': 'Ponto de partida das sessões planejadas',@@ -1023,7 +1015,6 @@ export const PT_BR_OVERRIDES = {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotação','Fixed Week': 'Semana fixa',- 'Scheduling': 'Agendamento','Externally managed': 'Gerenciada externamente','Position {0}': 'Posição {0}','Add routine to the rotation': 'Adicionar rotina à rotação',@@ -1064,7 +1055,6 @@ export const PT_BR_OVERRIDES = {'Move out of the superset': 'Tirar do superset','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Seu servidor foi alcançado, mas recusou a solicitação do app (CORS). Se um proxy reverso como o Traefik adiciona cabeçalhos CORS, deixe as solicitações de {0} passarem até o openGym sem alterações. Veja “Phone app and CORS” em docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Não foi possível alcançar {0}. Verifique o endereço e se este celular consegue acessá-lo.',- 'Vibrate when the phone is on silent': 'Vibrar com o celular no silencioso','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'O fim de um descanso ou de uma isometria vibra como um alarme, mesmo no silencioso.',// --- repeat a saved workout today (#58) ---'Nothing to repeat. Its exercises no longer exist.': 'Nada para repetir. Os exercícios dele não existem mais.',@@ -1116,6 +1106,35 @@ export const PT_BR_OVERRIDES = {'Switch sides': 'Troque de lado','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Salva uma cópia datada em “{0}” depois de terminar um treino ou editar uma rotina, e mantém as {1} mais recentes.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Salva uma cópia datada na pasta que você escolheu depois de terminar um treino ou editar uma rotina, e mantém as {0} mais recentes.',+ // --- Settings (v1.3.11) ---+ 'Plan & schedule': 'Plano e agenda',+ 'Look & Home': 'Aparência e Início',+ 'Data & backup': 'Dados e backup',+ 'Logging': 'Registro',+ 'Buttons on the workout screen': 'Botões na tela de treino',+ 'When a rest ends': 'Quando um descanso termina',+ 'Back up': 'Fazer backup',+ 'How you train': 'Como você treina',+ 'Play even on silent': 'Tocar mesmo no silencioso',+ 'Vibrate on silent too': 'Vibrar também no silencioso',+ 'Flash the screen': 'Piscar a tela',+ 'Your server': 'Seu servidor',+ 'Your API key': 'Sua chave de API',+ 'Android app only': 'Só no aplicativo Android',+ 'Guest': 'Visitante',+ 'Your data lives on this device. Sign in to sync.': 'Seus dados ficam neste dispositivo. Entre para sincronizar.',+ 'Synced with your server': 'Sincronizado com seu servidor',+ 'This phone': 'Este celular',+ 'Search settings': 'Buscar nas configurações',+ 'No setting matches “{0}”.': 'Nenhuma configuração corresponde a “{0}”.',+ 'Scroll to 0:00 to turn the rest timer off.': 'Role até 0:00 para desligar o temporizador.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Cada exercício também pode ter seu próprio descanso. Defina nas configurações do exercício de uma rotina.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'O iPhone não deixa o openGym vibrar. Um som ou uma piscada resolvem.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Sem conta, sem nuvem. Faça backup quando quiser em Dados e backup.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'O esforço por série está desativado. Ative em Configurações → Treino para continuar avaliando.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Digite o código que seu outro dispositivo mostra em Configurações → Conta → Adicionar outro dispositivo. Este dispositivo passa a ter uma chave de acesso própria.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'No site openGym em que você já está conectado, abra Configurações → Conta → “Parear o aplicativo”, depois digite o endereço e o código mostrado lá.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'No seu site openGym em um navegador, abra Configurações → Conta → “Parear o aplicativo” e digite o novo código mostrado lá. O que este celular manteve é incorporado à sua conta.',}export default { ...pt, ...PT_BR_OVERRIDES }diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 52598e95e..c6cde3563 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Cria neste dispositivo uma passkey para o perfil «{0}». A partir de agora, é com ela que inicias sessão aqui.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Cada uma inicia sessão neste perfil a partir do dispositivo ou do gestor de palavras-passe que a guarda. Toca numa para lhe mudar o nome ou a remover.','Enter the code from your other device.': 'Introduz o código do teu outro dispositivo.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Introduz o código que o teu outro dispositivo mostra em Definições → Adicionar outro dispositivo. Este dispositivo fica então com uma passkey própria.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Para este dispositivo, uma chave de segurança, um gestor de palavras-passe ou o teu telemóvel através do código QR do próprio navegador. Primeiro confirma que és tu.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Deixa de poder iniciar sessão neste perfil. Um dispositivo que já tenha sessão iniciada com ela continua com sessão iniciada. Se a perdeste, usa «Terminar sessão em todos os dispositivos».','It is your only way in, so it cannot be removed until there is another.': 'É a tua única forma de entrar, por isso não pode ser removida enquanto não houver outra.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Não foi possível terminar a sessão em todos os dispositivos. Continuas com sessão iniciada.','Create passkey profile': 'Criar perfil com passkey','Passkeys not supported in this browser.': 'Passkeys não suportadas neste navegador.',- 'Appearance': 'Aparência','synced with your profile': 'sincronizado com o teu perfil','Language': 'Idioma','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'As instruções dos exercícios ainda não estão traduzidas para este idioma, por isso ficam em inglês.',@@ -434,7 +432,6 @@ export default {'System': 'Sistema','Accent color': 'Cor de destaque','General': 'Geral',- 'During a workout': 'Durante o treino','Keep screen awake': 'Manter o ecrã ligado','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'O ecrã fica ligado enquanto há um treino a decorrer, para não teres de desbloquear o telemóvel entre séries.','Weight unit': 'Unidade de peso',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Temporizador de descanso',- 'Sounds': 'Sons',- 'Flash screen when timer ends': 'Piscar o ecrã quando o temporizador terminar','Vibrate': 'Vibração','Weigh in before workouts': 'Pesar antes do treino','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Pede o teu peso ao iniciar um treino. Desligado, a sessão começa de imediato.','No weigh-ins yet. Log your weight to start the curve.': 'Ainda sem pesagens. Regista o teu peso para começar a curva.',- 'Play sounds when the phone is on silent': 'Reproduzir sons com o telemóvel em silêncio','Music playing on this phone stops during a workout and does not resume by itself.': 'A música a tocar neste telemóvel para durante um treino e não retoma sozinha.',- 'Classic timer sound': 'Som clássico do temporizador','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'O som mais suave de três bipes de antes da 1.3.9, em vez do som mais alto.','Data': 'Dados','Export backup (JSON)': 'Exportar cópia (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Ampliar','Exercise animations': 'Animações dos exercícios','Workout options': 'Opções do treino',- 'Workout view': 'Vista do treino','Cards': 'Cartões','List': 'Lista','Compact': 'Compacta',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'Os teus dados','All data stays on this phone': 'Todos os dados ficam neste telemóvel',- 'No account, no cloud. Back it up anytime with Export below.': 'Sem conta, sem nuvem. Faz uma cópia quando quiseres com Exportar, aqui em baixo.','Reminds you at this time on days that have a routine planned.': 'Lembra-te a esta hora nos dias com uma rotina planeada.','Workout day': 'Dia de treino','{0} is on the plan today. Let’s go!': 'Hoje tens {0} no plano. Bora!',@@ -806,7 +797,6 @@ export default {'average effort': 'esforço médio','at {0} {1} or harder': 'a {0} {1} ou mais duro','{0} of {1} finished sets rated': '{0} de {1} séries concluídas avaliadas',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'O esforço por série está desligado. Liga-o nas Definições para continuares a avaliar.','Week by week': 'Semana a semana','Where the sets land': 'Onde caem as séries','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'A maioria das séries de trabalho deve ficar perto da falha, não nela. Metade no fundo e metade no topo continuam a dar uma média com ar saudável.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': 'Introduz o endereço do teu servidor e o código','Connected': 'Ligado','Could not connect': 'Não foi possível ligar',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Em Definições → «Emparelhar a app móvel» no site openGym em que já tens sessão iniciada, introduz depois o endereço e o código apresentado aí.','Server address (e.g. gym.example.com)': 'Endereço do servidor (ex. gym.example.com)','Pairing code': 'Código de emparelhamento','Connecting…': 'A ligar…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Drop set','Rest-pause burst': 'Rajada rest-pause','Remove this set': 'Remover esta série',- 'Workout controls': 'Controlos durante o treino','Weight and reps buttons': 'Botões +/− de peso e repetições','Off: tap the number and type it': 'Desligado: toca no número e escreve-o','Drop and burst shortcuts on every set': 'Atalhos de drop e rajada em cada série',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'A versão mais recente será transferida e o instalador será aberto.','Download & Install': 'Transferir e instalar','Update failed: {0}': 'Falha na atualização: {0}',- 'Updates': 'Atualizações','Check for updates': 'Procurar atualizações','Checking…': 'A verificar…','You have v{0}': 'Tens a v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Este telemóvel volta ao modo só local e a cópia da tua conta é removida dele. Primeiro verifica-se se o teu servidor tem todas as alterações. Se não tiver, escolhes o que lhes acontece.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Os teus dados são removidos deste navegador; o teu perfil no servidor mantém-nos. Primeiro verifica-se se o servidor tem todas as alterações. Se não tiver, escolhes o que lhes acontece.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Termina a sessão deste perfil em todos os dispositivos, incluindo este. Os telemóveis emparelhados com ele são desligados e têm de ser emparelhados de novo. As tuas passkeys continuam a funcionar, por isso podes voltar a entrar com elas quando quiseres.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Definições → «Emparelhar a app móvel» no teu site openGym num navegador e introduz o novo código apresentado aí. O que este telemóvel guardou é integrado na tua conta.','{0} change': '{0} alteração','{0} changes': '{0} alterações',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotação','Fixed Week': 'Semana fixa',- 'Scheduling': 'Agendamento','Externally managed': 'Gerida externamente','Position {0}': 'Posição {0}','Add routine to the rotation': 'Adicionar rotina à rotação',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} fotos','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'O teu servidor foi alcançado, mas recusou o pedido da app (CORS). Se um proxy inverso como o Traefik acrescenta cabeçalhos CORS, deixa passar os pedidos de {0} até ao openGym sem alterações. Vê “Phone app and CORS” em docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Não foi possível alcançar {0}. Verifica o endereço e se este telemóvel o consegue alcançar.',- 'Vibrate when the phone is on silent': 'Vibrar com o telemóvel em silêncio','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'O fim de um descanso ou de uma isometria vibra como um alarme, mesmo em silêncio.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Repetir hoje',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Troca de lado','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Guarda uma cópia datada em «{0}» depois de terminares um treino ou editares uma rotina, e mantém as {1} mais recentes.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Guarda uma cópia datada na pasta que escolheste depois de terminares um treino ou editares uma rotina, e mantém as {0} mais recentes.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Alertas do temporizador',+ 'Reminders': 'Lembretes',+ 'Plan & schedule': 'Plano e horário',+ 'Units & language': 'Unidades e idioma',+ 'Look & Home': 'Aspeto e Início',+ 'Data & backup': 'Dados e cópias',+ 'About & updates': 'Sobre e atualizações',+ 'Fine-tuning': 'Ajustes finos',+ 'Logging': 'Registo',+ 'Before and during': 'Antes e durante',+ 'Sessions and timed sets': 'Sessões e séries por tempo',+ 'Buttons on the workout screen': 'Botões no ecrã de treino',+ 'When a rest ends': 'Quando um descanso acaba',+ 'On Home': 'No Início',+ 'Back up': 'Fazer cópia',+ 'Bring data in': 'Trazer dados',+ 'How you train': 'Como treinas',+ 'Play a sound': 'Tocar um som',+ 'Sound': 'Som',+ 'Chime (louder)': 'Carrilhão (mais alto)',+ 'Classic beeps': 'Bipes clássicos',+ 'Play even on silent': 'Tocar mesmo em silêncio',+ 'Vibrate on silent too': 'Vibrar também em silêncio',+ 'Flash the screen': 'Piscar o ecrã',+ 'Version': 'Versão',+ 'Source code': 'Código-fonte',+ '{0} rest': '{0} de descanso',+ 'No rest timer': 'Sem temporizador',+ 'Buttons, timed sets': 'Botões, séries por tempo',+ 'Flash': 'Piscar',+ 'Silent': 'Silencioso',+ 'Everything': 'Tudo',+ 'Your server': 'O teu servidor',+ 'Your API key': 'A tua chave API',+ 'sec': 's',+ 'Not on iPhone': 'Não no iPhone',+ 'iPhone only': 'Só no iPhone',+ 'Android app only': 'Só na app Android',+ 'Guest': 'Convidado',+ 'Your data lives on this device. Sign in to sync.': 'Os teus dados ficam neste dispositivo. Inicia sessão para sincronizar.',+ 'Account, devices and sync': 'Conta, dispositivos e sincronização',+ 'Synced with your server': 'Sincronizado com o teu servidor',+ 'Sync needs a look': 'A sincronização precisa de atenção',+ 'This phone': 'Este telemóvel',+ 'Example data, only in this browser.': 'Dados de exemplo, só neste navegador.',+ 'Search settings': 'Pesquisar nas definições',+ 'No setting matches “{0}”.': 'Nenhuma definição corresponde a “{0}”.',+ '{0} result': '{0} resultado',+ '{0} results': '{0} resultados',+ '{0} minute': '{0} minuto',+ '{0} minutes': '{0} minutos',+ '{0} second': '{0} segundo',+ '{0} seconds': '{0} segundos',+ 'Scroll to 0:00 to turn the rest timer off.': 'Desliza até 0:00 para desligar o temporizador.',+ 'The short break between the bursts of a rest-pause set.': 'A pausa curta entre os blocos de uma série rest-pause.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Cada exercício também pode ter o seu próprio descanso. Define-o nas definições do exercício de uma rotina.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'O iPhone não deixa a openGym vibrar. Um som ou um piscar resolvem.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Sem conta, sem nuvem. Faz uma cópia quando quiseres em Dados e cópias.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'O esforço por série está desligado. Liga-o em Definições → Treino para continuares a avaliar.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Introduz o código que o teu outro dispositivo mostra em Definições → Conta → Adicionar outro dispositivo. Este dispositivo fica então com uma passkey própria.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Abre Definições → Conta → «Emparelhar a app móvel» no site openGym em que já tens sessão iniciada e introduz depois o endereço e o código apresentado aí.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Abre Definições → Conta → «Emparelhar a app móvel» no teu site openGym num navegador e introduz o novo código apresentado aí. O que este telemóvel guardou é integrado na tua conta.',}diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex 7b9a83412..326747bd4 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -367,7 +367,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Создай на этом устройстве ключ доступа для профиля «{0}». Теперь здесь ты будешь входить с ним.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Каждый из них входит в этот профиль с устройства или из менеджера паролей, где он хранится. Нажми на ключ, чтобы переименовать или удалить его.','Enter the code from your other device.': 'Введи код с другого устройства.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Введи код, который другое устройство показывает в разделе Настройки → Добавить другое устройство. Тогда у этого устройства будет свой ключ доступа.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Для этого устройства, аппаратного ключа, менеджера паролей или телефона через QR-код самого браузера. Сначала подтверди, что это ты.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'С ним больше нельзя будет войти в этот профиль. Устройство, которое уже вошло с ним, останется в аккаунте. Если оно потеряно, используй «Выйти на всех устройствах».','It is your only way in, so it cannot be removed until there is another.': 'Это твой единственный способ войти, поэтому его нельзя удалить, пока нет другого.',@@ -410,7 +409,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Не удалось выйти на всех устройствах. Ты всё ещё в системе.','Create passkey profile': 'Создать профиль с ключом доступа','Passkeys not supported in this browser.': 'Ключи доступа не поддерживаются в этом браузере.',- 'Appearance': 'Внешний вид','synced with your profile': 'синхронизируется с профилем','Language': 'Язык','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Инструкции к упражнениям на этот язык пока не переведены, поэтому они на английском.',@@ -424,7 +422,6 @@ export default {'System': 'Системная','Accent color': 'Акцентный цвет','General': 'Основное',- 'During a workout': 'Во время тренировки','Keep screen awake': 'Не гасить экран','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Экран не гаснет, пока идёт тренировка, так что не нужно разблокировать телефон между подходами.','Weight unit': 'Единица веса',@@ -435,15 +432,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Таймер отдыха',- 'Sounds': 'Звуки',- 'Flash screen when timer ends': 'Мигать экраном по окончании таймера','Vibrate': 'Вибрация','Weigh in before workouts': 'Взвешивание перед тренировкой','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Спрашивает ваш вес при начале тренировки. Если выключено, сессия начинается сразу.','No weigh-ins yet. Log your weight to start the curve.': 'Взвешиваний пока нет. Внеси вес, и кривая начнётся.',- 'Play sounds when the phone is on silent': 'Воспроизводить звуки при беззвучном режиме','Music playing on this phone stops during a workout and does not resume by itself.': 'Музыка, играющая на этом телефоне, останавливается во время тренировки и сама не возобновляется.',- 'Classic timer sound': 'Классический звук таймера','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Более тихий звук из трёх сигналов, как до версии 1.3.9, вместо более громкого перезвона.','Data': 'Данные','Export backup (JSON)': 'Экспорт резервной копии (JSON)',@@ -552,7 +545,6 @@ export default {'Expand': 'Развернуть','Exercise animations': 'Анимации упражнений','Workout options': 'Параметры тренировки',- 'Workout view': 'Вид тренировки','Cards': 'Карточки','List': 'Список','Compact': 'Компактный',@@ -659,7 +651,6 @@ export default {// --- mobile build ---'Your data': 'Ваши данные','All data stays on this phone': 'Все данные остаются на этом телефоне',- 'No account, no cloud. Back it up anytime with Export below.': 'Без аккаунта и облака. Резервную копию можно сделать в любой момент через «Экспорт» ниже.','Reminds you at this time on days that have a routine planned.': 'Напоминает в это время в дни с запланированной программой.','Workout day': 'День тренировки','{0} is on the plan today. Let’s go!': 'Сегодня по плану {0}. Поехали!',@@ -788,7 +779,6 @@ export default {'average effort': 'среднее усилие','at {0} {1} or harder': 'при {0} {1} или тяжелее','{0} of {1} finished sets rated': 'оценено {0} из {1} выполненных подходов',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Усилие в подходе выключено. Включи его в настройках, чтобы продолжать оценивать.','Week by week': 'Неделя за неделей','Where the sets land': 'Куда попадают подходы','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'Большинству рабочих подходов место рядом с отказом, а не в нём. Половина внизу и половина вверху всё равно дают среднее, которое лишь выглядит здоровым.',@@ -992,7 +982,6 @@ export default {'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…': 'Подключение…',@@ -1317,7 +1306,6 @@ export default {'Drop set': 'Дроп-сет','Rest-pause burst': 'Отдых-пауза','Remove this set': 'Удалить этот подход',- 'Workout controls': 'Кнопки во время тренировки','Weight and reps buttons': 'Кнопки +/− для веса и повторений','Off: tap the number and type it': 'Выкл.: нажмите на число и введите его','Drop and burst shortcuts on every set': 'Кнопки дроп-сета и отдых-паузы у каждого подхода',@@ -1333,7 +1321,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'Последняя версия будет загружена и откроется установщик.','Download & Install': 'Скачать и установить','Update failed: {0}': 'Ошибка обновления: {0}',- 'Updates': 'Обновления','Check for updates': 'Проверить обновления','Checking…': 'Проверка…','You have v{0}': 'У вас v{0}',@@ -1422,7 +1409,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Этот телефон вернётся в локальный режим, а копия вашего аккаунта будет с него удалена. Сначала проверяется, что на вашем сервере есть все изменения. Если нет, вы сами решаете, что с ними делать.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Ваши данные будут удалены из этого браузера; ваш профиль на сервере их сохранит. Сначала проверяется, что на сервере есть все изменения. Если нет, вы сами решаете, что с ними делать.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Выполняет выход из этого профиля на всех устройствах, включая это. Сопряжённые с ним телефоны отключаются, и их нужно будет сопрячь заново. Ваши ключи доступа продолжают работать, так что войти с ними снова можно в любое время.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Откройте Настройки → «Сопряжение мобильного приложения» на своём сайте openGym в браузере и введите показанный там новый код. То, что сохранил этот телефон, будет объединено с вашим аккаунтом.',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---'Planned sessions start from': 'Основа запланированных тренировок','The routine’s sets and reps. Your history decides the weight.': 'Подходы и повторения из программы. Вес определяет ваша история.',@@ -1645,7 +1631,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Ротация','Fixed Week': 'Фиксированная неделя',- 'Scheduling': 'Расписание','Externally managed': 'Управляется извне','Position {0}': 'Позиция {0}','Add routine to the rotation': 'Добавить программу в ротацию',@@ -1755,7 +1740,6 @@ export default {'{0} photos': '{0} фото','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Сервер доступен, но отклонил запрос приложения (CORS). Если обратный прокси, например Traefik, добавляет заголовки CORS, пропускайте запросы с {0} к openGym без изменений. См. «Phone app and CORS» в docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Не удалось связаться с {0}. Проверьте адрес и доступен ли сервер с этого телефона.',- 'Vibrate when the phone is on silent': 'Вибрировать в беззвучном режиме','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'Конец отдыха или удержания вибрирует как будильник, даже в беззвучном режиме.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Повторить сегодня',@@ -1799,4 +1783,67 @@ export default {'Switch sides': 'Смените сторону','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Сохраняет копию с датой в «{0}» после каждой тренировки или правки программы и хранит {1} последних.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Сохраняет копию с датой в выбранную папку после каждой тренировки или правки программы и хранит {0} последних.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Сигналы таймера',+ 'Reminders': 'Напоминания',+ 'Plan & schedule': 'План и расписание',+ 'Units & language': 'Единицы и язык',+ 'Look & Home': 'Вид и Главная',+ 'Data & backup': 'Данные и копии',+ 'About & updates': 'О приложении и обновления',+ 'Fine-tuning': 'Тонкая настройка',+ 'Logging': 'Запись',+ 'Before and during': 'До и во время',+ 'Sessions and timed sets': 'Тренировки и подходы на время',+ 'Buttons on the workout screen': 'Кнопки на экране тренировки',+ 'When a rest ends': 'Когда отдых заканчивается',+ 'On Home': 'На Главной',+ 'Back up': 'Сохранить копию',+ 'Bring data in': 'Перенести данные',+ 'How you train': 'Как ты тренируешься',+ 'Play a sound': 'Звуковой сигнал',+ 'Sound': 'Звук',+ 'Chime (louder)': 'Колокольчик (громче)',+ 'Classic beeps': 'Классические сигналы',+ 'Play even on silent': 'Играть и в беззвучном режиме',+ 'Vibrate on silent too': 'Вибрировать и в беззвучном режиме',+ 'Flash the screen': 'Мигать экраном',+ 'Version': 'Версия',+ 'Source code': 'Исходный код',+ '{0} rest': 'отдых {0}',+ 'No rest timer': 'Без таймера',+ 'Buttons, timed sets': 'Кнопки, подходы на время',+ 'Flash': 'Вспышка',+ 'Silent': 'Без сигнала',+ 'Everything': 'Всё',+ 'Your server': 'Твой сервер',+ 'Your API key': 'Твой API-ключ',+ 'sec': 'сек',+ 'Not on iPhone': 'Не на iPhone',+ 'iPhone only': 'Только на iPhone',+ 'Android app only': 'Только в приложении для Android',+ 'Guest': 'Гость',+ 'Your data lives on this device. Sign in to sync.': 'Твои данные хранятся на этом устройстве. Войди, чтобы синхронизировать.',+ 'Account, devices and sync': 'Аккаунт, устройства и синхронизация',+ 'Synced with your server': 'Синхронизируется с твоим сервером',+ 'Sync needs a look': 'Проверь синхронизацию',+ 'This phone': 'Этот телефон',+ 'Example data, only in this browser.': 'Пример данных, только в этом браузере.',+ 'Search settings': 'Поиск по настройкам',+ 'No setting matches “{0}”.': 'Нет настройки по запросу «{0}».',+ '{0} result': '{0} результат',+ '{0} results': { one: '{0} результат', few: '{0} результата', many: '{0} результатов', other: '{0} результата' },+ '{0} minute': '{0} минута',+ '{0} minutes': { one: '{0} минута', few: '{0} минуты', many: '{0} минут', other: '{0} минуты' },+ '{0} second': '{0} секунда',+ '{0} seconds': { one: '{0} секунда', few: '{0} секунды', many: '{0} секунд', other: '{0} секунды' },+ 'Scroll to 0:00 to turn the rest timer off.': 'Прокрути до 0:00, чтобы выключить таймер.',+ 'The short break between the bursts of a rest-pause set.': 'Короткая пауза между частями подхода рест-пауза.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'У каждого упражнения может быть и свой отдых. Задай его в настройках упражнения в программе.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone не даёт openGym вибрировать. Хватит звука или вспышки.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Без аккаунта и облака. Сохраняй копию когда угодно в разделе Данные и копии.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Усилие в подходе выключено. Включи его в Настройки → Тренировка, чтобы продолжать оценивать.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Введи код, который другое устройство показывает в разделе Настройки → Аккаунт → Добавить другое устройство. Тогда у этого устройства будет свой ключ доступа.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Открой Настройки → Аккаунт → «Сопряжение мобильного приложения» на сайте openGym, где ты уже вошёл, и введи его адрес и показанный там код.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Открой Настройки → Аккаунт → «Сопряжение мобильного приложения» на своём сайте openGym в браузере и введи показанный там новый код. То, что сохранил этот телефон, будет объединено с твоим аккаунтом.',}diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.jsindex 1235ccc9c..bd615f684 100644--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@ -381,7 +381,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'สร้างพาสคีย์บนอุปกรณ์นี้สำหรับโปรไฟล์ “{0}” ต่อจากนี้คุณจะเข้าสู่ระบบที่นี่ด้วยพาสคีย์นี้','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'แต่ละรายการเข้าสู่ระบบโปรไฟล์นี้จากอุปกรณ์หรือตัวจัดการรหัสผ่านที่เก็บพาสคีย์นั้นไว้ แตะรายการเพื่อเปลี่ยนชื่อหรือลบ','Enter the code from your other device.': 'กรอกรหัสจากอุปกรณ์อีกเครื่องของคุณ',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'กรอกรหัสที่อุปกรณ์อีกเครื่องแสดงใน ตั้งค่า → เพิ่มอุปกรณ์อื่น แล้วอุปกรณ์นี้จะได้พาสคีย์ของตัวเอง','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'สำหรับอุปกรณ์นี้ กุญแจความปลอดภัย ตัวจัดการรหัสผ่าน หรือโทรศัพท์ของคุณผ่านคิวอาร์โค้ดของเบราว์เซอร์เอง ก่อนอื่นยืนยันว่าเป็นคุณ','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'พาสคีย์นี้จะเข้าสู่ระบบโปรไฟล์นี้ไม่ได้อีก อุปกรณ์ที่เข้าสู่ระบบด้วยพาสคีย์นี้อยู่แล้วจะยังอยู่ในระบบ หากอุปกรณ์นั้นหาย ให้ใช้ “ออกจากระบบทุกอุปกรณ์”','It is your only way in, so it cannot be removed until there is another.': 'นี่คือทางเดียวที่คุณเข้าสู่ระบบได้ จึงลบไม่ได้จนกว่าจะมีทางอื่น',@@ -426,7 +425,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'ออกจากระบบทุกอุปกรณ์ไม่สำเร็จ คุณยังเข้าสู่ระบบอยู่','Create passkey profile': 'สร้างโปรไฟล์พาสคีย์','Passkeys not supported in this browser.': 'เบราว์เซอร์นี้ไม่รองรับพาสคีย์',- 'Appearance': 'ลักษณะที่ปรากฏ','synced with your profile': 'ซิงค์กับโปรไฟล์ของคุณ','Language': 'ภาษา','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'คำแนะนำท่าออกกำลังกายยังไม่ได้แปลเป็นภาษานี้ จึงแสดงเป็นภาษาอังกฤษไปก่อน',@@ -440,7 +438,6 @@ export default {'System': 'ระบบ','Accent color': 'สีเน้น','General': 'ทั่วไป',- 'During a workout': 'ระหว่างออกกำลังกาย','Keep screen awake': 'ไม่ให้จอปิด','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'จอจะไม่ปิดขณะออกกำลังกาย จะได้ไม่ต้องปลดล็อกโทรศัพท์ระหว่างเซ็ต','Weight unit': 'หน่วยน้ำหนัก',@@ -451,7 +448,6 @@ export default {'0.5': '0.5','0.25': '0.25','Rest timer': 'ตัวจับเวลาพัก',- 'Sounds': 'เสียง','Data': 'ข้อมูล','Export backup (JSON)': 'ส่งออกข้อมูลสำรอง (JSON)','Import backup': 'นำเข้าข้อมูลสำรอง',@@ -563,7 +559,6 @@ export default {'Expand': 'ขยาย','Exercise animations': 'ภาพเคลื่อนไหวท่าออกกำลังกาย','Workout options': 'ตัวเลือกการเทรน',- 'Workout view': 'มุมมองการฝึก','Cards': 'การ์ด','List': 'รายการ','Compact': 'แบบย่อ',@@ -644,7 +639,6 @@ export default {// --- mobile build ---'Your data': 'ข้อมูลของคุณ','All data stays on this phone': 'ข้อมูลทั้งหมดอยู่บนโทรศัพท์เครื่องนี้',- 'No account, no cloud. Back it up anytime with Export below.': 'ไม่ต้องมีบัญชี ไม่ต้องใช้คลาวด์ สำรองข้อมูลได้ทุกเมื่อด้วยปุ่มส่งออกด้านล่าง','Reminds you at this time on days that have a routine planned.': 'จะเตือนคุณตามเวลานี้ในวันที่มีรูทีนวางแผนไว้','Workout day': 'วันออกกำลังกาย','{0} is on the plan today. Let’s go!': 'วันนี้มี {0} ในแผน ลุยเลย!',@@ -776,7 +770,6 @@ export default {'average effort': 'ความหนักเฉลี่ย','at {0} {1} or harder': 'ที่ {0} {1} ขึ้นไป','{0} of {1} finished sets rated': 'ให้คะแนนแล้ว {0} จาก {1} เซ็ตที่ทำเสร็จ',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': '“ความหนักต่อเซ็ต” ปิดอยู่ เปิดในตั้งค่าเพื่อให้คะแนนต่อ','Week by week': 'รายสัปดาห์','Where the sets land': 'เซ็ตส่วนใหญ่อยู่ระดับไหน','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'เซ็ตหลักส่วนใหญ่ควรอยู่ใกล้จุดหมดแรง ไม่ใช่ถึงจุดนั้น ครึ่งหนึ่งต่ำสุดกับอีกครึ่งสูงสุด เฉลี่ยแล้วก็ยังดูเหมือนอยู่ตรงกลางสวยๆ อยู่ดี',@@ -846,7 +839,6 @@ export default {'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…': 'กำลังเชื่อมต่อ…',@@ -886,14 +878,11 @@ export default {'Insert after this group': 'แทรกหลังกลุ่มนี้','Logged sets stay with the original exercise. The replacement will be inserted afterward.': 'เซ็ตที่บันทึกแล้วจะอยู่กับท่าเดิม ท่าใหม่จะถูกแทรกไว้ถัดไป','Rest after each set of this exercise. Leave at 0 to use your default rest timer.': 'พักหลังแต่ละเซ็ตของท่านี้ ปล่อยไว้ที่ 0 เพื่อใช้ตัวจับเวลาพักค่าเริ่มต้น',- 'Flash screen when timer ends': 'กะพริบหน้าจอเมื่อหมดเวลา','Vibrate': 'การสั่น','Weigh in before workouts': 'ชั่งน้ำหนักก่อนออกกำลังกาย','Asks for your body weight when a workout starts. Off starts the session straight away.': 'ถามน้ำหนักตัวเมื่อเริ่มออกกำลังกาย ถ้าปิด เซสชันจะเริ่มทันที','No weigh-ins yet. Log your weight to start the curve.': 'ยังไม่มีการชั่งน้ำหนัก บันทึกน้ำหนักเพื่อเริ่มกราฟได้เลย',- 'Play sounds when the phone is on silent': 'เล่นเสียงแม้โทรศัพท์อยู่ในโหมดเงียบ','Music playing on this phone stops during a workout and does not resume by itself.': 'เพลงที่เล่นอยู่บนโทรศัพท์นี้จะหยุดระหว่างการออกกำลังกาย และจะไม่เล่นต่อเอง',- 'Classic timer sound': 'เสียงตัวจับเวลาแบบคลาสสิก','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'เสียงบี๊บสามครั้งที่เบากว่าแบบก่อนเวอร์ชัน 1.3.9 แทนเสียงกริ่งที่ดังกว่า','Import from Hevy': 'นำเข้าจาก Hevy','Pull your history with a Hevy Pro API key': 'ดึงประวัติด้วยคีย์ API ของ Hevy Pro',@@ -1357,7 +1346,6 @@ export default {'Drop set': 'ดรอปเซ็ต','Rest-pause burst': 'เรสต์พอส','Remove this set': 'ลบเซ็ตนี้',- 'Workout controls': 'ปุ่มระหว่างออกกำลังกาย','Weight and reps buttons': 'ปุ่ม +/− น้ำหนักและจำนวนครั้ง','Off: tap the number and type it': 'ปิด: แตะตัวเลขแล้วพิมพ์เอง','Drop and burst shortcuts on every set': 'ปุ่มลัดดรอปเซ็ตและเรสต์พอสทุกเซ็ต',@@ -1373,7 +1361,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'เวอร์ชันล่าสุดจะถูกดาวน์โหลดและตัวติดตั้งจะเปิดขึ้น','Download & Install': 'ดาวน์โหลดและติดตั้ง','Update failed: {0}': 'อัปเดตล้มเหลว: {0}',- 'Updates': 'อัปเดต','Check for updates': 'ตรวจสอบอัปเดต','Checking…': 'กำลังตรวจสอบ…','You have v{0}': 'คุณใช้ v{0}',@@ -1462,7 +1449,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'โทรศัพท์เครื่องนี้จะกลับไปเก็บข้อมูลในเครื่องอย่างเดียว และสำเนาบัญชีของคุณจะถูกลบออก ก่อนอื่นจะตรวจว่าเซิร์ฟเวอร์ของคุณมีการเปลี่ยนแปลงครบทุกอย่าง ถ้าไม่ครบ คุณเลือกได้ว่าจะทำอย่างไรกับมัน','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'ข้อมูลของคุณจะถูกลบออกจากเบราว์เซอร์นี้ ส่วนโปรไฟล์บนเซิร์ฟเวอร์ยังเก็บไว้ ก่อนอื่นจะตรวจว่าเซิร์ฟเวอร์มีการเปลี่ยนแปลงครบทุกอย่าง ถ้าไม่ครบ คุณเลือกได้ว่าจะทำอย่างไรกับมัน','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'ออกจากระบบโปรไฟล์นี้ในทุกอุปกรณ์ รวมถึงเครื่องนี้ โทรศัพท์ที่จับคู่ไว้จะถูกตัดการเชื่อมต่อและต้องจับคู่ใหม่ พาสคีย์ของคุณยังใช้ได้ จึงเข้าสู่ระบบด้วยพาสคีย์ได้ทุกเมื่อ',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'เปิดการตั้งค่า → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ของคุณในเบราว์เซอร์ แล้วป้อนรหัสใหม่ที่แสดงไว้ที่นั่น สิ่งที่โทรศัพท์เครื่องนี้เก็บไว้จะรวมเข้ากับบัญชีของคุณ','{0} change': '{0} รายการ','{0} changes': '{0} รายการ',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1700,7 +1686,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'การหมุนเวียน','Fixed Week': 'สัปดาห์คงที่',- 'Scheduling': 'การจัดตาราง','Externally managed': 'จัดการจากภายนอก','Position {0}': 'ตำแหน่ง {0}','Add routine to the rotation': 'เพิ่มรูทีนเข้าการหมุนเวียน',@@ -1762,7 +1747,6 @@ export default {'{0} photos': '{0} รูป','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'เข้าถึงเซิร์ฟเวอร์ได้ แต่เซิร์ฟเวอร์ปฏิเสธคำขอของแอป (CORS) หากรีเวิร์สพร็อกซีอย่าง Traefik เพิ่มเฮดเดอร์ CORS ให้ปล่อยคำขอจาก {0} ผ่านไปยัง openGym โดยไม่แก้ไข ดู “Phone app and CORS” ใน docs/SELF_HOSTING.md','Could not reach {0}. Check the address and that this phone can reach it.': 'ไม่สามารถเข้าถึง {0} ได้ ตรวจสอบที่อยู่และดูว่าโทรศัพท์เครื่องนี้เข้าถึงได้หรือไม่',- 'Vibrate when the phone is on silent': 'สั่นแม้โทรศัพท์อยู่ในโหมดเงียบ','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'เมื่อหมดเวลาพักหรือการค้าง โทรศัพท์จะสั่นเหมือนนาฬิกาปลุก แม้อยู่ในโหมดเงียบ',// --- repeat a saved workout today (#58) ---'Repeat today': 'ทำซ้ำวันนี้',@@ -1806,4 +1790,67 @@ export default {'Switch sides': 'สลับข้าง','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'บันทึกสำเนาพร้อมวันที่ไว้ใน “{0}” ทุกครั้งที่จบการออกกำลังกายหรือแก้รูทีน และเก็บไว้ {1} ชุดล่าสุด','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'บันทึกสำเนาพร้อมวันที่ไว้ในโฟลเดอร์ที่คุณเลือกทุกครั้งที่จบการออกกำลังกายหรือแก้รูทีน และเก็บไว้ {0} ชุดล่าสุด',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'การแจ้งเตือนของตัวจับเวลา',+ 'Reminders': 'การเตือน',+ 'Plan & schedule': 'แผนและตารางเวลา',+ 'Units & language': 'หน่วยและภาษา',+ 'Look & Home': 'หน้าตาและหน้าหลัก',+ 'Data & backup': 'ข้อมูลและการสำรอง',+ 'About & updates': 'เกี่ยวกับและอัปเดต',+ 'Fine-tuning': 'ปรับละเอียด',+ 'Logging': 'การบันทึก',+ 'Before and during': 'ก่อนและระหว่างฝึก',+ 'Sessions and timed sets': 'เซสชันและเซ็ตจับเวลา',+ 'Buttons on the workout screen': 'ปุ่มบนหน้าจอการฝึก',+ 'When a rest ends': 'เมื่อพักครบเวลา',+ 'On Home': 'บนหน้าหลัก',+ 'Back up': 'สำรองข้อมูล',+ 'Bring data in': 'นำข้อมูลเข้า',+ 'How you train': 'วิธีที่คุณฝึก',+ 'Play a sound': 'เล่นเสียง',+ 'Sound': 'เสียง',+ 'Chime (louder)': 'เสียงกริ่ง (ดังกว่า)',+ 'Classic beeps': 'เสียงบี๊บแบบคลาสสิก',+ 'Play even on silent': 'เล่นแม้อยู่ในโหมดเงียบ',+ 'Vibrate on silent too': 'สั่นแม้อยู่ในโหมดเงียบ',+ 'Flash the screen': 'กะพริบหน้าจอ',+ 'Version': 'เวอร์ชัน',+ 'Source code': 'ซอร์สโค้ด',+ '{0} rest': 'พัก {0}',+ 'No rest timer': 'ไม่จับเวลาพัก',+ 'Buttons, timed sets': 'ปุ่ม, เซ็ตจับเวลา',+ 'Flash': 'กะพริบ',+ 'Silent': 'เงียบ',+ 'Everything': 'ทั้งหมด',+ 'Your server': 'เซิร์ฟเวอร์ของคุณ',+ 'Your API key': 'คีย์ API ของคุณ',+ 'sec': 'วิ',+ 'Not on iPhone': 'ใช้ไม่ได้บน iPhone',+ 'iPhone only': 'เฉพาะ iPhone',+ 'Android app only': 'เฉพาะแอป Android',+ 'Guest': 'ผู้เยี่ยมชม',+ 'Your data lives on this device. Sign in to sync.': 'ข้อมูลของคุณอยู่บนอุปกรณ์นี้ ลงชื่อเข้าใช้เพื่อซิงค์',+ 'Account, devices and sync': 'บัญชี อุปกรณ์ และการซิงค์',+ 'Synced with your server': 'ซิงค์กับเซิร์ฟเวอร์ของคุณ',+ 'Sync needs a look': 'การซิงค์ต้องตรวจสอบ',+ 'This phone': 'โทรศัพท์เครื่องนี้',+ 'Example data, only in this browser.': 'ข้อมูลตัวอย่าง อยู่ในเบราว์เซอร์นี้เท่านั้น',+ 'Search settings': 'ค้นหาการตั้งค่า',+ 'No setting matches “{0}”.': 'ไม่มีการตั้งค่าที่ตรงกับ “{0}”',+ '{0} result': '{0} ผลลัพธ์',+ '{0} results': '{0} ผลลัพธ์',+ '{0} minute': '{0} นาที',+ '{0} minutes': '{0} นาที',+ '{0} second': '{0} วินาที',+ '{0} seconds': '{0} วินาที',+ 'Scroll to 0:00 to turn the rest timer off.': 'เลื่อนไปที่ 0:00 เพื่อปิดตัวจับเวลาพัก',+ 'The short break between the bursts of a rest-pause set.': 'ช่วงพักสั้นๆ ระหว่างช่วงของเซ็ตเรสต์-พอส',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'แต่ละท่าตั้งเวลาพักของตัวเองได้ด้วย ตั้งได้ในการตั้งค่าท่าของรูทีน',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone ไม่ให้ openGym สั่น ใช้เสียงหรือการกะพริบแทนได้',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'ไม่มีบัญชี ไม่มีคลาวด์ สำรองได้ทุกเมื่อในข้อมูลและการสำรอง',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': '“ความหนักต่อเซ็ต” ปิดอยู่ เปิดใน ตั้งค่า → การฝึก เพื่อให้คะแนนต่อ',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'กรอกรหัสที่อุปกรณ์อีกเครื่องแสดงใน ตั้งค่า → บัญชี → เพิ่มอุปกรณ์อื่น แล้วอุปกรณ์นี้จะได้พาสคีย์ของตัวเอง',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'เปิด ตั้งค่า → บัญชี → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ที่คุณเข้าสู่ระบบอยู่แล้ว จากนั้นป้อนที่อยู่และรหัสที่แสดงไว้ที่นั่น',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'เปิด ตั้งค่า → บัญชี → “จับคู่แอปมือถือ” บนเว็บไซต์ openGym ของคุณในเบราว์เซอร์ แล้วป้อนรหัสใหม่ที่แสดงไว้ที่นั่น สิ่งที่โทรศัพท์เครื่องนี้เก็บไว้จะรวมเข้ากับบัญชีของคุณ',}diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex ac10b2b0b..5a380d488 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Bu cihazda “{0}” profili için bir geçiş anahtarı oluştur. Bundan sonra burada onunla giriş yaparsın.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Her biri, onu saklayan cihazdan veya şifre yöneticisinden bu profile giriş yapar. Yeniden adlandırmak ya da kaldırmak için birine dokun.','Enter the code from your other device.': 'Diğer cihazındaki kodu gir.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Diğer cihazının Ayarlar → Başka bir cihaz ekle bölümünde gösterdiği kodu gir. Böylece bu cihazın da kendi geçiş anahtarı olur.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Bu cihaz, bir güvenlik anahtarı, bir şifre yöneticisi ya da tarayıcının kendi QR koduyla telefonun için. Önce sen olduğunu onayla.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'Artık bu profile giriş yapamaz. Onunla zaten giriş yapmış bir cihaz oturumda kalır. Kaybolduysa “Her yerden çıkış yap”ı kullan.','It is your only way in, so it cannot be removed until there is another.': 'Bu senin tek giriş yolun, bu yüzden başka bir yol olana kadar kaldırılamaz.',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Her yerden çıkış yapılamadı. Hâlâ giriş yapmış durumdasın.','Create passkey profile': 'Geçiş anahtarlı profil oluştur','Passkeys not supported in this browser.': 'Bu tarayıcıda geçiş anahtarları desteklenmiyor.',- 'Appearance': 'Görünüm','synced with your profile': 'profilinle eşitlenir','Language': 'Dil','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Egzersiz talimatları henüz bu dile çevrilmedi, o yüzden İngilizce kalıyor.',@@ -434,7 +432,6 @@ export default {'System': 'Sistem','Accent color': 'Vurgu rengi','General': 'Genel',- 'During a workout': 'Antrenman sırasında','Keep screen awake': 'Ekranı açık tut','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Antrenman sürerken ekran açık kalır, böylece setler arasında telefonunu açmak zorunda kalmazsın.','Weight unit': 'Ağırlık birimi',@@ -445,15 +442,11 @@ export default {'0.5': '0,5','0.25': '0,25','Rest timer': 'Dinlenme sayacı',- 'Sounds': 'Sesler',- 'Flash screen when timer ends': 'Zamanlayıcı bitince ekranı yanıp söndür','Vibrate': 'Titreşim','Weigh in before workouts': 'Antrenman öncesi tartılma','Asks for your body weight when a workout starts. Off starts the session straight away.': 'Antrenman başlarken kilonu sorar. Kapalıyken seans hemen başlar.','No weigh-ins yet. Log your weight to start the curve.': 'Henüz tartı kaydı yok. Eğriyi başlatmak için kilonu gir.',- 'Play sounds when the phone is on silent': 'Telefon sessizdeyken de sesleri çal','Music playing on this phone stops during a workout and does not resume by itself.': 'Bu telefonda çalan müzik antrenman sırasında durur ve kendiliğinden devam etmez.',- 'Classic timer sound': 'Klasik zamanlayıcı sesi','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': '1.3.9 öncesindeki daha sessiz üçlü bip sesi, daha yüksek çalan sesi yerine.','Data': 'Veriler','Export backup (JSON)': 'Yedeği dışa aktar (JSON)',@@ -562,7 +555,6 @@ export default {'Expand': 'Büyüt','Exercise animations': 'Egzersiz animasyonları','Workout options': 'Antrenman seçenekleri',- 'Workout view': 'Antrenman görünümü','Cards': 'Kartlar','List': 'Liste','Compact': 'Kompakt',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': 'Verileriniz','All data stays on this phone': 'Tüm veriler bu telefonda kalır',- 'No account, no cloud. Back it up anytime with Export below.': 'Hesap yok, bulut yok. Aşağıdaki Dışa aktar ile istediğiniz zaman yedekleyin.','Reminds you at this time on days that have a routine planned.': 'Rutin planlanmış günlerde bu saatte hatırlatır.','Workout day': 'Antrenman günü','{0} is on the plan today. Let’s go!': 'Bugün planda {0} var. Hadi bakalım!',@@ -806,7 +797,6 @@ export default {'average effort': 'ortalama zorluk','at {0} {1} or harder': '{0} {1} veya daha zor','{0} of {1} finished sets rated': '{1} tamamlanan setin {0} tanesi puanlandı',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Set başına efor kapalı. Puanlamaya devam etmek için Ayarlar’dan aç.','Week by week': 'Hafta hafta','Where the sets land': 'Setler nereye düşüyor','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'Çalışma setlerinin çoğu tükenmeye yakın olmalı, tam tükenmede değil. Yarısı en altta, yarısı en üstte olsa da ortalama sağlıklı görünen bir ortaya çıkar.',@@ -1012,7 +1002,6 @@ export default {'Enter your server address and the code': 'Sunucu adresini ve kodu gir','Connected': 'Bağlandı','Could not connect': 'Bağlanılamadı',- 'Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın openGym sitesinde Ayarlar → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.','Server address (e.g. gym.example.com)': 'Sunucu adresi (ör. gym.example.com)','Pairing code': 'Eşleştirme kodu','Connecting…': 'Bağlanıyor…',@@ -1346,7 +1335,6 @@ export default {'Drop set': 'Drop set','Rest-pause burst': 'Rest-pause patlaması','Remove this set': 'Bu seti kaldır',- 'Workout controls': 'Antrenman kontrolleri','Weight and reps buttons': 'Ağırlık ve tekrar +/− düğmeleri','Off: tap the number and type it': 'Kapalı: sayıya dokunup yazın','Drop and burst shortcuts on every set': 'Her sette drop ve patlama kısayolları',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': 'En son sürüm indirilecek ve yükleyici açılacak.','Download & Install': 'İndir ve Kur','Update failed: {0}': 'Güncelleme başarısız: {0}',- 'Updates': 'Güncellemeler','Check for updates': 'Güncellemeleri denetle','Checking…': 'Denetleniyor…','You have v{0}': 'Sürümün v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Bu telefon yerel moda döner ve hesabının kopyası telefondan kaldırılır. Önce sunucunda her değişikliğin olup olmadığı kontrol edilir. Yoksa onlara ne olacağını sen seçersin.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Verilerin bu tarayıcıdan kaldırılır; sunucudaki profilin onları saklar. Önce sunucuda her değişikliğin olup olmadığı kontrol edilir. Yoksa onlara ne olacağını sen seçersin.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Bu profilin oturumunu bu cihaz dahil tüm cihazlarda kapatır. Bu profille eşleştirilmiş telefonların bağlantısı kesilir ve yeniden eşleştirilmeleri gerekir. Geçiş anahtarların çalışmaya devam eder, yani istediğin zaman onlarla yeniden giriş yapabilirsin.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Bir tarayıcıda openGym sitende Ayarlar → “Mobil uygulamayı eşleştir”i aç ve orada gösterilen yeni kodu gir. Bu telefonun sakladıkları hesabınla birleştirilir.','{0} change': '{0} değişiklik','{0} changes': '{0} değişiklik',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotasyon','Fixed Week': 'Sabit Hafta',- 'Scheduling': 'Zamanlama','Externally managed': 'Harici olarak yönetiliyor','Position {0}': 'Sıra {0}','Add routine to the rotation': 'Rotasyona rutin ekle',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} fotoğraf','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Sunucuna ulaşıldı ama uygulamanın isteğini reddetti (CORS). Traefik gibi bir ters vekil sunucu CORS başlıkları ekliyorsa {0} adresinden gelen istekleri değiştirmeden openGym’e ilet. docs/SELF_HOSTING.md içindeki “Phone app and CORS” bölümüne bak.','Could not reach {0}. Check the address and that this phone can reach it.': '{0} adresine ulaşılamadı. Adresi ve bu telefonun ona erişebildiğini kontrol et.',- 'Vibrate when the phone is on silent': 'Telefon sessizdeyken de titreş','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'Dinlenmenin ya da tutuşun sonu, sessiz modda bile alarm gibi titreşir.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Bugün tekrarla',@@ -1795,4 +1779,67 @@ export default {'Switch sides': 'Taraf değiştir','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Her antrenman bitince veya rutin düzenlenince «{0}» klasörüne tarihli bir kopya kaydeder ve en yeni {1} kopyayı tutar.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Her antrenman bitince veya rutin düzenlenince seçtiğin klasöre tarihli bir kopya kaydeder ve en yeni {0} kopyayı tutar.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Sayaç uyarıları',+ 'Reminders': 'Hatırlatıcılar',+ 'Plan & schedule': 'Plan ve takvim',+ 'Units & language': 'Birimler ve dil',+ 'Look & Home': 'Görünüm ve Ana sayfa',+ 'Data & backup': 'Veriler ve yedek',+ 'About & updates': 'Hakkında ve güncellemeler',+ 'Fine-tuning': 'İnce ayarlar',+ 'Logging': 'Kayıt',+ 'Before and during': 'Önce ve sırasında',+ 'Sessions and timed sets': 'Seanslar ve süreli setler',+ 'Buttons on the workout screen': 'Antrenman ekranındaki düğmeler',+ 'When a rest ends': 'Dinlenme bittiğinde',+ 'On Home': 'Ana sayfada',+ 'Back up': 'Yedekle',+ 'Bring data in': 'Veri getir',+ 'How you train': 'Nasıl antrenman yaparsın',+ 'Play a sound': 'Ses çal',+ 'Sound': 'Ses',+ 'Chime (louder)': 'Çan (daha yüksek)',+ 'Classic beeps': 'Klasik bipler',+ 'Play even on silent': 'Sessizdeyken de çal',+ 'Vibrate on silent too': 'Sessizdeyken de titreş',+ 'Flash the screen': 'Ekranı yakıp söndür',+ 'Version': 'Sürüm',+ 'Source code': 'Kaynak kodu',+ '{0} rest': '{0} dinlenme',+ 'No rest timer': 'Sayaç yok',+ 'Buttons, timed sets': 'Düğmeler, süreli setler',+ 'Flash': 'Yanıp sönme',+ 'Silent': 'Sessiz',+ 'Everything': 'Hepsi',+ 'Your server': 'Sunucun',+ 'Your API key': 'API anahtarın',+ 'sec': 'sn',+ 'Not on iPhone': 'iPhone’da yok',+ 'iPhone only': 'Yalnızca iPhone’da',+ 'Android app only': 'Yalnızca Android uygulamasında',+ 'Guest': 'Misafir',+ 'Your data lives on this device. Sign in to sync.': 'Verilerin bu cihazda. Eşitlemek için oturum aç.',+ 'Account, devices and sync': 'Hesap, cihazlar ve eşitleme',+ 'Synced with your server': 'Sunucunla eşitleniyor',+ 'Sync needs a look': 'Eşitlemeye bir göz at',+ 'This phone': 'Bu telefon',+ 'Example data, only in this browser.': 'Örnek veriler, yalnızca bu tarayıcıda.',+ 'Search settings': 'Ayarlarda ara',+ 'No setting matches “{0}”.': '“{0}” ile eşleşen ayar yok.',+ '{0} result': '{0} sonuç',+ '{0} results': '{0} sonuç',+ '{0} minute': '{0} dakika',+ '{0} minutes': '{0} dakika',+ '{0} second': '{0} saniye',+ '{0} seconds': '{0} saniye',+ 'Scroll to 0:00 to turn the rest timer off.': 'Sayacı kapatmak için 0:00’a kaydır.',+ 'The short break between the bursts of a rest-pause set.': 'Rest-pause setinin parçaları arasındaki kısa mola.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Her egzersizin kendi dinlenmesi de olabilir. Bunu bir rutinin egzersiz ayarlarından yap.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone, openGym’in titreşmesine izin vermiyor. Bir ses ya da yanıp sönme işi görür.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Hesap yok, bulut yok. İstediğin zaman Veriler ve yedek’ten yedekle.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Set başına efor kapalı. Puanlamaya devam etmek için Ayarlar → Antrenman’dan aç.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Diğer cihazının Ayarlar → Hesap → Başka bir cihaz ekle bölümünde gösterdiği kodu gir. Böylece bu cihazın da kendi geçiş anahtarı olur.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Zaten oturum açtığın openGym sitesinde Ayarlar → Hesap → “Mobil uygulamayı eşleştir”i aç, ardından adresini ve orada gösterilen kodu gir.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Bir tarayıcıda openGym sitende Ayarlar → Hesap → “Mobil uygulamayı eşleştir”i aç ve orada gösterilen yeni kodu gir. Bu telefonun sakladıkları hesabınla birleştirilir.',}diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.jsindex f732a7c80..0a3b0c8e5 100644--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@ -273,7 +273,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': 'Не вдалося вийти на всіх пристроях. Ти все ще в системі.','Create passkey profile': 'Створити профіль із ключем доступу','Passkeys not supported in this browser.': 'Ключі доступу не підтримуються в цьому браузері.',- 'Appearance': 'Вигляд','synced with your profile': 'синхронізується з профілем','Language': 'Мова','Exercise instructions aren\'t translated into this language yet, so they stay in English.': 'Інструкції до вправ цією мовою ще не перекладено, тож вони лишаються англійською.',@@ -283,14 +282,11 @@ export default {'System': 'Системна','Accent color': 'Акцентний колір','General': 'Основне',- 'During a workout': 'Під час тренування','Keep screen awake': 'Не гасити екран','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': 'Екран не гасне, поки триває тренування, тож не треба розблоковувати телефон між підходами.','Weight unit': 'Одиниця ваги','Week starts on': 'Тиждень починається з','Rest timer': 'Таймер відпочинку',- 'Sounds': 'Звуки',- 'Flash screen when timer ends': 'Блимати екраном по закінченні таймера','Switching the unit offers to convert every stored weight.': 'При зміні одиниці буде запропоновано перерахувати всі збережені ваги.','Data': 'Дані','Export backup (JSON)': 'Експорт резервної копії (JSON)',@@ -494,7 +490,6 @@ export default {// --- mobile build ---'Your data': 'Твої дані','All data stays on this phone': 'Усі дані лишаються на цьому телефоні',- 'No account, no cloud. Back it up anytime with Export below.': 'Без акаунта, без хмари. Резервну копію можна зробити будь-коли через «Експорт» нижче.','Reminds you at this time on days that have a routine planned.': 'Нагадує в цей час у дні із запланованою програмою.','Workout day': 'День тренування','{0} is on the plan today. Let’s go!': 'Сьогодні за планом {0}. Вперед!',@@ -613,7 +608,6 @@ export default {'average effort': 'середнє зусилля','at {0} {1} or harder': 'при {0} {1} або важче','{0} of {1} finished sets rated': 'оцінено {0} з {1} виконаних підходів',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': 'Зусилля в підході вимкнено. Увімкни його в налаштуваннях, щоб оцінювати далі.','Week by week': 'Тиждень за тижнем','Where the sets land': 'Куди потрапляють підходи','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': 'Більшість робочих підходів мають бути близько до відмови, а не в ній. Половина внизу і половина вгорі в середньому все одно дають середину, яка лише виглядає здоровою.',@@ -818,7 +812,6 @@ export default {'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…': 'Підключення…',@@ -1150,13 +1143,10 @@ export default {"Weigh in before workouts": "Зважування перед тренуванням","Asks for your body weight when a workout starts. Off starts the session straight away.": 'Запитує твою вагу на початку тренування. Якщо вимкнено, сесія починається одразу.','No weigh-ins yet. Log your weight to start the curve.': 'Записів поки немає. Внеси вагу, щоб почати криву.',- "Play sounds when the phone is on silent": "Відтворювати звуки в беззвучному режимі","Music playing on this phone stops during a workout and does not resume by itself.": "Музика, що грає на цьому телефоні, зупиняється під час тренування і сама не відновлюється.",- 'Classic timer sound': 'Класичний звук таймера','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': 'Тихіший звук із трьох сигналів, як до версії 1.3.9, замість гучнішого дзвону.','Deletes your plan, workouts, body weight, photos and videos from your profile on this server and on every signed-in device. This cannot be undone.': 'Видаляє план, тренування, вагу тіла, фото й відео з профілю на цьому сервері й на всіх пристроях, де виконано вхід. Скасувати неможливо.',"Sync failed: the server refused the upload as too large. Your changes have not reached the server.": "Синхронізація не вдалася: сервер відхилив завантаження як завелике. Твої зміни не дійшли до сервера.",- "Workout view": "Вигляд тренування","Cards": "Картки","List": "Список","Compact": "Компактний",@@ -1194,7 +1184,6 @@ export default {"Drop set": "Дроп-сет","Rest-pause burst": "Серія рест-паузи","Remove this set": "Видалити цей підхід",- "Workout controls": "Кнопки під час тренування","Weight and reps buttons": "Кнопки +/− для ваги й повторень","Off: tap the number and type it": "Вимк.: натисни на число й введи його","Drop and burst shortcuts on every set": "Кнопки дроп-сета й рест-паузи в кожному підході",@@ -1209,7 +1198,6 @@ export default {"The latest version will be downloaded and the installer will open.": "Завантажиться остання версія і відкриється встановлювач.","Download & Install": "Завантажити й встановити","Update failed: {0}": "Оновлення не вдалося: {0}",- "Updates": "Оновлення","Check for updates": "Перевірити оновлення","Checking…": "Перевірка…","You have v{0}": "У тебе v{0}",@@ -1318,7 +1306,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': 'Цей телефон повернеться до локального режиму, а копію твого акаунта з нього буде видалено. Спершу перевіряється, чи є на твоєму сервері всі зміни. Якщо ні, ти вирішуєш, що з ними робити.','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': 'Твої дані буде видалено з цього браузера; твій профіль на сервері їх збереже. Спершу перевіряється, чи є на сервері всі зміни. Якщо ні, ти вирішуєш, що з ними робити.','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': 'Виходить із цього профілю на всіх пристроях, зокрема на цьому. Спарені з ним телефони буде відключено, і їх доведеться спарувати знову. Твої ключі доступу й далі працюють, тож увійти з ними можна будь-коли.',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Відкрий Налаштування → «Спарувати мобільний застосунок» на своєму сайті openGym у браузері й введи показаний там новий код. Те, що зберіг цей телефон, буде об’єднано з твоїм акаунтом.','{0} change': '{0} зміна','{0} changes': 'змін: {0}','Planned sessions start from': 'Основа запланованих тренувань',@@ -1535,7 +1522,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': 'Створи на цьому пристрої ключ доступу для профілю «{0}». Відтепер тут ти входитимеш з ним.','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': 'Кожен із них входить у цей профіль із пристрою чи менеджера паролів, де він зберігається. Торкнися ключа, щоб перейменувати чи видалити його.','Enter the code from your other device.': 'Введи код з іншого пристрою.',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': 'Введи код, який інший пристрій показує в розділі Налаштування → Додати інший пристрій. Тоді цей пристрій отримає власний ключ доступу.','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': 'Для цього пристрою, апаратного ключа, менеджера паролів або телефона через QR-код самого браузера. Спершу підтверди, що це ти.','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': 'З ним більше не можна буде увійти в цей профіль. Пристрій, який уже увійшов з ним, залишиться в акаунті. Якщо його загублено, скористайся «Вийти на всіх пристроях».','It is your only way in, so it cannot be removed until there is another.': 'Це твій єдиний спосіб увійти, тож його не можна видалити, доки немає іншого.',@@ -1686,7 +1672,6 @@ export default {'Rotation': 'Ротація','Fixed Week': 'Фіксований тиждень',- 'Scheduling': 'Розклад','Externally managed': 'Керується ззовні','Position {0}': 'Позиція {0}','Add routine to the rotation': 'Додати програму в ротацію',@@ -1748,7 +1733,6 @@ export default {'{0} photos': '{0} фото','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': 'Сервер доступний, але відхилив запит застосунку (CORS). Якщо зворотний проксі, як-от Traefik, додає заголовки CORS, пропускай запити з {0} до openGym без змін. Див. «Phone app and CORS» у docs/SELF_HOSTING.md.','Could not reach {0}. Check the address and that this phone can reach it.': 'Не вдалося зв’язатися з {0}. Перевір адресу і чи може цей телефон до нього дістатися.',- 'Vibrate when the phone is on silent': 'Вібрувати в беззвучному режимі','The end of a rest or a hold buzzes like an alarm, even in silent mode.': 'Кінець відпочинку чи утримання вібрує як будильник, навіть у беззвучному режимі.',// --- repeat a saved workout today (#58) ---'Repeat today': 'Повторити сьогодні',@@ -1792,4 +1776,67 @@ export default {'Switch sides': 'Зміни сторону','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': 'Зберігає копію з датою в «{0}» після кожного тренування чи зміни програми й тримає {1} найновіших.','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': 'Зберігає копію з датою у вибрану теку після кожного тренування чи зміни програми й тримає {0} найновіших.',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': 'Сигнали таймера',+ 'Reminders': 'Нагадування',+ 'Plan & schedule': 'План і розклад',+ 'Units & language': 'Одиниці та мова',+ 'Look & Home': 'Вигляд і Головна',+ 'Data & backup': 'Дані та копії',+ 'About & updates': 'Про застосунок і оновлення',+ 'Fine-tuning': 'Тонке налаштування',+ 'Logging': 'Запис',+ 'Before and during': 'До і під час',+ 'Sessions and timed sets': 'Заняття та підходи на час',+ 'Buttons on the workout screen': 'Кнопки на екрані тренування',+ 'When a rest ends': 'Коли відпочинок закінчується',+ 'On Home': 'На Головній',+ 'Back up': 'Зберегти копію',+ 'Bring data in': 'Перенести дані',+ 'How you train': 'Як ти тренуєшся',+ 'Play a sound': 'Звуковий сигнал',+ 'Sound': 'Звук',+ 'Chime (louder)': 'Дзвіночок (гучніше)',+ 'Classic beeps': 'Класичні сигнали',+ 'Play even on silent': 'Грати і в беззвучному режимі',+ 'Vibrate on silent too': 'Вібрувати і в беззвучному режимі',+ 'Flash the screen': 'Блимати екраном',+ 'Version': 'Версія',+ 'Source code': 'Вихідний код',+ '{0} rest': 'відпочинок {0}',+ 'No rest timer': 'Без таймера',+ 'Buttons, timed sets': 'Кнопки, підходи на час',+ 'Flash': 'Спалах',+ 'Silent': 'Без сигналу',+ 'Everything': 'Усе',+ 'Your server': 'Твій сервер',+ 'Your API key': 'Твій API-ключ',+ 'sec': 'с',+ 'Not on iPhone': 'Не на iPhone',+ 'iPhone only': 'Лише на iPhone',+ 'Android app only': 'Лише в застосунку для Android',+ 'Guest': 'Гість',+ 'Your data lives on this device. Sign in to sync.': 'Твої дані зберігаються на цьому пристрої. Увійди, щоб синхронізувати.',+ 'Account, devices and sync': 'Акаунт, пристрої та синхронізація',+ 'Synced with your server': 'Синхронізується з твоїм сервером',+ 'Sync needs a look': 'Перевір синхронізацію',+ 'This phone': 'Цей телефон',+ 'Example data, only in this browser.': 'Приклад даних, лише в цьому браузері.',+ 'Search settings': 'Пошук у налаштуваннях',+ 'No setting matches “{0}”.': 'Немає налаштування за запитом «{0}».',+ '{0} result': '{0} результат',+ '{0} results': { one: '{0} результат', few: '{0} результати', many: '{0} результатів', other: '{0} результату' },+ '{0} minute': '{0} хвилина',+ '{0} minutes': { one: '{0} хвилина', few: '{0} хвилини', many: '{0} хвилин', other: '{0} хвилини' },+ '{0} second': '{0} секунда',+ '{0} seconds': { one: '{0} секунда', few: '{0} секунди', many: '{0} секунд', other: '{0} секунди' },+ 'Scroll to 0:00 to turn the rest timer off.': 'Прокрути до 0:00, щоб вимкнути таймер.',+ 'The short break between the bursts of a rest-pause set.': 'Коротка пауза між частинами підходу рест-пауза.',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': 'Кожна вправа може мати й власний відпочинок. Задай його в налаштуваннях вправи в програмі.',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone не дає openGym вібрувати. Вистачить звуку чи спалаху.',+ 'No account, no cloud. Back it up anytime in Data & backup.': 'Без акаунта й хмари. Зберігай копію будь-коли в розділі Дані та копії.',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': 'Зусилля в підході вимкнено. Увімкни його в Налаштування → Тренування, щоб оцінювати далі.',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': 'Введи код, який інший пристрій показує в розділі Налаштування → Акаунт → Додати інший пристрій. Тоді цей пристрій отримає власний ключ доступу.',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': 'Відкрий Налаштування → Акаунт → «Спарувати мобільний застосунок» на сайті openGym, куди ти вже увійшов, і введи його адресу та показаний там код.',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': 'Відкрий Налаштування → Акаунт → «Спарувати мобільний застосунок» на своєму сайті openGym у браузері й введи показаний там новий код. Те, що зберіг цей телефон, буде об’єднано з твоїм акаунтом.',}diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.jsindex 9c4e0398c..5ca2467ad 100644--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@ -372,7 +372,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': '在此裝置上為「{0}」個人檔案建立通行密鑰。今後你便可在此直接登入。','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': '儲存於各裝置或密碼管理工具中的通行密鑰皆可用於登入。點擊任一項目即可重新命名或移除。','Enter the code from your other device.': '請輸入來自另一台裝置的配對碼。',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': '請輸入另一台裝置在「設定 → 新增其他裝置」中顯示的代碼,此裝置隨後即可獲取專屬通行密鑰。','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': '適用於本裝置、安全性金鑰、密碼管理工具,或透過瀏覽器掃描 QR Code 連線手機。請先驗證你的身分。','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': '它將無法再登入此個人檔案。已用它登入的裝置會保持登入。若裝置遺失,請使用「全部裝置登出」。','It is your only way in, so it cannot be removed until there is another.': '這是你唯一的登入管道,在設定替代方式前無法移除。',@@ -416,7 +415,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': '無法在所有裝置上登出。你目前仍保持登入狀態。','Create passkey profile': '建立通行密鑰個人檔案','Passkeys not supported in this browser.': '此瀏覽器不支援通行密鑰。',- 'Appearance': '外觀','synced with your profile': '已與個人檔案同步','Language': '語言','Exercise instructions aren\'t translated into this language yet, so they stay in English.': '動作說明還沒翻譯成這個語言,所以暫時以英文顯示。',@@ -430,7 +428,6 @@ export default {'System': '跟隨系統','Accent color': '強調色','General': '一般',- 'During a workout': '訓練進行時','Keep screen awake': '保持螢幕恆亮','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': '訓練進行期間螢幕保持開啟,組間休息時無需頻繁解鎖手機。','Weight unit': '重量單位',@@ -441,13 +438,10 @@ export default {'0.5': '0.5','0.25': '0.25','Rest timer': '組間休息計時器',- 'Sounds': '音效',- 'Flash screen when timer ends': '計時結束時閃爍螢幕','Vibrate': '震動提醒','Weigh in before workouts': '訓練前記錄體重','Asks for your body weight when a workout starts. Off starts the session straight away.': '開始訓練時提示輸入體重。關閉後將直接進入訓練。','No weigh-ins yet. Log your weight to start the curve.': '還沒有量體重的紀錄。記一下體重,曲線就開始了。',- 'Play sounds when the phone is on silent': '靜音模式下依然播放提示音','Music playing on this phone stops during a workout and does not resume by itself.': '訓練期間正在播放的音樂將會暫停,且不會自動恢復播放。','Data': '資料管理','Export backup (JSON)': '匯出備份(JSON)',@@ -555,7 +549,6 @@ export default {'Minimize': '縮小','Expand': '展開','Exercise animations': '動作示範動畫',- 'Workout view': '訓練視圖排版','Cards': '卡片模式','List': '清單模式','Compact': '緊湊模式',@@ -660,7 +653,6 @@ export default {// --- mobile build ---'Your data': '你的個人資料','All data stays on this phone': '所有資料皆儲存在此手機中',- 'No account, no cloud. Back it up anytime with Export below.': '不用帳號,不用雲端。隨時可用下方的匯出功能備份。','Reminds you at this time on days that have a routine planned.': '在排定有訓練課表的日子,於此時間主動提醒你。','Workout day': '訓練日','{0} is on the plan today. Let’s go!': '今天的課表是 {0}。動起來吧!',@@ -797,7 +789,6 @@ export default {'average effort': '平均自覺強度','at {0} {1} or harder': '強度達到 {0} {1} 或以上','{0} of {1} finished sets rated': '{1} 個完成組中已有 {0} 組評分',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': '每組自覺強度已關閉。請至設定中開啟以繼續評分。','Week by week': '每週變化趨勢','Where the sets land': '組數落點分佈','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': '大部分正式組應該接近力竭,而不是真的力竭。一半在最底、一半在最頂,平均起來照樣看起來很健康。',@@ -1003,7 +994,6 @@ export default {'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 網頁端開啟「設定 → 配對手機 App」,並輸入畫面顯示的位址與配對代碼。','Server address (e.g. gym.example.com)': '伺服器位址(例如:gym.example.com)','Pairing code': '配對代碼','Connecting…': '正在連線…',@@ -1336,7 +1326,6 @@ export default {'Drop set': '遞減組','Rest-pause burst': '休息暫停衝刺組','Remove this set': '刪除此組',- 'Workout controls': '訓練介面按鈕設定','Weight and reps buttons': '重量與次數加減 (+/−) 按鈕','Off: tap the number and type it': '關閉:點擊數字直接開啟鍵盤輸入','Drop and burst shortcuts on every set': '在各組旁顯示遞減組與休息暫停快捷鍵',@@ -1352,7 +1341,6 @@ export default {'The latest version will be downloaded and the installer will open.': '系統將下載最新版本並開啟安裝精靈。','Download & Install': '下載並安裝','Update failed: {0}': '更新失敗:{0}',- 'Updates': '版本更新','Check for updates': '檢查更新','Checking…': '正在檢查更新…','You have v{0}': '目前版本 v{0}',@@ -1434,7 +1422,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': '此手機將切換回純本機模式,並移除其中的帳號副本。系統會先確認伺服器是否已有全部變更。若沒有,由你決定如何處理。','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': '你的資料將從此瀏覽器中移除;伺服器上的個人檔案會保留它們。系統會先確認伺服器是否已有全部變更。若沒有,由你決定如何處理。','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': '在所有裝置(包括本裝置)上登出此個人檔案。與它配對的手機會中斷連線,需要重新配對。你的通行密鑰仍然有效,隨時可以用來再次登入。',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在瀏覽器中開啟 openGym 網站的「設定 → 配對手機 App」,並輸入畫面上的新代碼。手機上暫存的變更將全數整併至帳號中。','{0} change': '{0} 項變更','{0} changes': '{0} 項變更',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1661,7 +1648,6 @@ export default {'Coach week': '教練週','Rotation': '輪替','Fixed Week': '固定週',- 'Scheduling': '排程','Externally managed': '由外部管理','Position {0}': '第 {0} 位','Add routine to the rotation': '將課表加入輪替',@@ -1724,7 +1710,6 @@ export default {'{0} days apart': '相隔 {0} 天','{0} photo': '{0} 張照片','{0} photos': '{0} 張照片',- 'Classic timer sound': '經典計時提示音','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': '使用 1.3.9 版之前較輕柔的三聲嗶聲,而不是較響亮的提示音。','Workout options': '訓練選項','That card was removed on another device': '這張卡片已在其他裝置上移除',@@ -1747,7 +1732,6 @@ export default {'Move out of the superset': '移出超級組','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': '已連線到你的伺服器,但它拒絕了 App 的請求(CORS)。如果 Traefik 等反向代理會加入 CORS 標頭,請讓來自 {0} 的請求原封不動地轉送到 openGym。請參閱 docs/SELF_HOSTING.md 中的「Phone app and CORS」。','Could not reach {0}. Check the address and that this phone can reach it.': '無法連線到 {0}。請檢查網址,以及這支手機能否連到它。',- 'Vibrate when the phone is on silent': '手機靜音時也震動','The end of a rest or a hold buzzes like an alarm, even in silent mode.': '休息或靜態維持結束時,會像鬧鐘一樣震動,即使在靜音模式下也一樣。','Repeat today': '今天再練一次','Nothing to repeat. Its exercises no longer exist.': '沒有可重複的內容。其中的動作已不存在。',@@ -1788,4 +1772,67 @@ export default {'Switch sides': '換邊','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': '每次完成訓練或修改課表後,在「{0}」中儲存一份附日期的副本,並保留最新的 {1} 份。','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': '每次完成訓練或修改課表後,在你選擇的資料夾中儲存一份附日期的副本,並保留最新的 {0} 份。',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': '計時提醒',+ 'Reminders': '提醒',+ 'Plan & schedule': '計畫與排程',+ 'Units & language': '單位與語言',+ 'Look & Home': '外觀與首頁',+ 'Data & backup': '資料與備份',+ 'About & updates': '關於與更新',+ 'Fine-tuning': '細節調整',+ 'Logging': '紀錄',+ 'Before and during': '開始前與訓練中',+ 'Sessions and timed sets': '訓練與計時組',+ 'Buttons on the workout screen': '訓練畫面上的按鈕',+ 'When a rest ends': '休息結束時',+ 'On Home': '首頁上',+ 'Back up': '備份',+ 'Bring data in': '匯入資料',+ 'How you train': '訓練方式',+ 'Play a sound': '播放提示音',+ 'Sound': '提示音',+ 'Chime (louder)': '鈴聲(較大聲)',+ 'Classic beeps': '經典嗶聲',+ 'Play even on silent': '靜音時也播放',+ 'Vibrate on silent too': '靜音時也震動',+ 'Flash the screen': '閃爍螢幕',+ 'Version': '版本',+ 'Source code': '原始碼',+ '{0} rest': '休息 {0}',+ 'No rest timer': '不計時休息',+ 'Buttons, timed sets': '按鈕、計時組',+ 'Flash': '閃爍',+ 'Silent': '靜音',+ 'Everything': '全部',+ 'Your server': '你的伺服器',+ 'Your API key': '你的 API 金鑰',+ 'sec': '秒',+ 'Not on iPhone': 'iPhone 不支援',+ 'iPhone only': '僅限 iPhone',+ 'Android app only': '僅限 Android App',+ 'Guest': '訪客',+ 'Your data lives on this device. Sign in to sync.': '你的資料存在這台裝置上。登入即可同步。',+ 'Account, devices and sync': '帳號、裝置與同步',+ 'Synced with your server': '已與你的伺服器同步',+ 'Sync needs a look': '同步需要查看一下',+ 'This phone': '這支手機',+ 'Example data, only in this browser.': '範例資料,只存在此瀏覽器。',+ 'Search settings': '搜尋設定',+ 'No setting matches “{0}”.': '沒有與「{0}」相符的設定。',+ '{0} result': '{0} 個結果',+ '{0} results': '{0} 個結果',+ '{0} minute': '{0} 分鐘',+ '{0} minutes': '{0} 分鐘',+ '{0} second': '{0} 秒',+ '{0} seconds': '{0} 秒',+ 'Scroll to 0:00 to turn the rest timer off.': '捲動到 0:00 即可關閉休息計時。',+ 'The short break between the bursts of a rest-pause set.': '休息暫停組各段之間的短暫休息。',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': '每個動作也可以有自己的休息時間。在課表的動作設定裡修改。',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone 不允許 openGym 震動。用提示音或閃爍螢幕就夠了。',+ 'No account, no cloud. Back it up anytime in Data & backup.': '不需要帳號,也沒有雲端。隨時在「資料與備份」裡備份。',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': '每組自覺強度已關閉。請至 設定 → 訓練 中開啟以繼續評分。',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '請輸入另一台裝置在「設定 → 帳號 → 新增其他裝置」中顯示的代碼,此裝置隨後即可獲取專屬通行密鑰。',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在已登入的 openGym 網頁端開啟「設定 → 帳號 → 配對手機 App」,並輸入畫面顯示的位址與配對代碼。',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在瀏覽器中開啟 openGym 網站的「設定 → 帳號 → 配對手機 App」,並輸入畫面上的新代碼。手機上暫存的變更將全數整併至帳號中。',}diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex e5b84b60c..5327304a6 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -376,7 +376,6 @@ export default {'Create a passkey on this device for the profile “{0}”. It signs you in here from now on.': '在此设备上为档案“{0}”创建通行密钥。从现在起,你在这里用它登录。','Each one signs in to this profile from the device or password manager that keeps it. Tap one to rename or remove it.': '每个通行密钥都能从保存它的设备或密码管理器登录此档案。点按一个即可重命名或移除。','Enter the code from your other device.': '输入你另一台设备上的代码。',- 'Enter the code your other device shows under Settings → Add another device. This device then gets a passkey of its own.': '输入你另一台设备在“设置 → 添加其他设备”中显示的代码。之后此设备会有自己的通行密钥。','For this device, a security key, a password manager, or your phone through the browser’s own QR code. First confirm that it is you.': '用于此设备、安全密钥、密码管理器,或通过浏览器自带的二维码使用你的手机。请先确认是你本人。','It can no longer sign in to this profile. A device already signed in with it stays signed in. If it was lost, use Sign out everywhere.': '它将无法再登录此档案。已用它登录的设备会保持登录。如果设备丢失,请使用“在所有设备上退出登录”。','It is your only way in, so it cannot be removed until there is another.': '这是你唯一的登录方式,在有其他方式之前不能移除。',@@ -420,7 +419,6 @@ export default {'Couldn’t sign out everywhere. You’re still signed in.': '无法在所有设备上退出登录。你仍处于登录状态。','Create passkey profile': '创建通行密钥档案','Passkeys not supported in this browser.': '此浏览器不支持通行密钥。',- 'Appearance': '外观','synced with your profile': '与档案同步','Language': '语言','Exercise instructions aren\'t translated into this language yet, so they stay in English.': '动作说明还没有翻译成这种语言,所以暂时显示英文。',@@ -434,7 +432,6 @@ export default {'System': '跟随系统','Accent color': '强调色','General': '通用',- 'During a workout': '训练期间','Keep screen awake': '保持屏幕常亮','The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.': '训练进行时屏幕保持常亮,组间无需再解锁手机。','Weight unit': '重量单位',@@ -445,15 +442,11 @@ export default {'0.5': '0.5','0.25': '0.25','Rest timer': '休息计时',- 'Sounds': '声音',- 'Flash screen when timer ends': '计时结束时闪烁屏幕','Vibrate': '振动','Weigh in before workouts': '训练前称重','Asks for your body weight when a workout starts. Off starts the session straight away.': '开始训练时询问体重。关闭后直接进入训练。','No weigh-ins yet. Log your weight to start the curve.': '还没有称重记录。记一下体重,曲线就开始了。',- 'Play sounds when the phone is on silent': '手机静音时也播放提示音','Music playing on this phone stops during a workout and does not resume by itself.': '锻炼期间,这部手机正在播放的音乐会停止,且不会自动恢复。',- 'Classic timer sound': '经典计时提示音','The quieter three-beep sound from before 1.3.9, instead of the louder chime.': '使用 1.3.9 版本之前更轻柔的三声提示音,而不是更响亮的铃声。','Data': '数据','Export backup (JSON)': '导出备份(JSON)',@@ -562,7 +555,6 @@ export default {'Expand': '放大','Exercise animations': '动作动画','Workout options': '训练选项',- 'Workout view': '训练视图','Cards': '卡片','List': '列表','Compact': '紧凑',@@ -669,7 +661,6 @@ export default {// --- mobile build ---'Your data': '你的数据','All data stays on this phone': '所有数据都保存在这部手机上',- 'No account, no cloud. Back it up anytime with Export below.': '无需账号,无需云端。随时用下方的导出功能备份。','Reminds you at this time on days that have a routine planned.': '在安排了训练计划的日子,此时间提醒你。','Workout day': '训练日','{0} is on the plan today. Let’s go!': '今天的计划是{0}。冲吧!',@@ -806,7 +797,6 @@ export default {'average effort': '平均强度','at {0} {1} or harder': '{0} {1} 或更硬','{0} of {1} finished sets rated': '{1} 个已完成组中有 {0} 个已评分',- 'Effort per set is switched off. Turn it on in Settings to keep rating.': '每组强度已关闭。在设置中打开即可继续评分。','Week by week': '逐周变化','Where the sets land': '组都落在哪里','Most working sets belong close to failure, not at it. Half at the floor and half at the top still average out to a healthy-looking middle.': '大多数正式组应该接近力竭,而不是真的力竭。一半在最底、一半在最顶,平均下来照样看着很健康。',@@ -1012,7 +1002,6 @@ export default {'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…': '连接中…',@@ -1346,7 +1335,6 @@ export default {'Drop set': '递减组','Rest-pause burst': '休息暂停组','Remove this set': '删除这一组',- 'Workout controls': '训练中的按钮','Weight and reps buttons': '重量和次数的 +/− 按钮','Off: tap the number and type it': '关闭:点按数字直接输入','Drop and burst shortcuts on every set': '每组显示递减/休息暂停快捷按钮',@@ -1362,7 +1350,6 @@ export default {'The latest version will be downloaded and the installer will open.': '将下载最新版本并打开安装程序。','Download & Install': '下载并安装','Update failed: {0}': '更新失败:{0}',- 'Updates': '更新','Check for updates': '检查更新','Checking…': '正在检查…','You have v{0}': '当前 v{0}',@@ -1451,7 +1438,6 @@ export default {'This phone switches back to local-only and its copy of your account is removed. First it checks that your server has every change. If not, you choose what happens to them.': '这部手机将切换回仅本地模式,并删除其中的账号副本。会先检查你的服务器是否已有全部更改。如果没有,由你决定如何处理。','Your data is removed from this browser; your profile on the server keeps it. First it checks that the server has every change. If not, you choose what happens to them.': '你的数据将从此浏览器中删除;服务器上的个人资料会保留它们。会先检查服务器是否已有全部更改。如果没有,由你决定如何处理。','Signs this profile out on every device, including this one. Phones paired with it are disconnected and have to be paired again. Your passkeys keep working, so you can sign in with them again anytime.': '在所有设备(包括此设备)上退出此个人资料。与它配对的手机会断开连接,需要重新配对。你的通行密钥仍然有效,随时可以用它们重新登录。',- 'Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在浏览器中打开你的 openGym 网站的设置 →“配对手机应用”,然后输入那里显示的新配对码。这部手机保留的内容会合并到你的账号。','{0} change': '{0} 项更改','{0} changes': '{0} 项更改',// --- plan vs session: the routine's own reps, per-routine progress (#275, #216) ---@@ -1689,7 +1675,6 @@ export default {// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': '轮换','Fixed Week': '固定周',- 'Scheduling': '排期','Externally managed': '由外部管理','Position {0}': '第 {0} 位','Add routine to the rotation': '将训练日添加到轮换',@@ -1751,7 +1736,6 @@ export default {'{0} photos': '{0} 张照片','Your server was reached, but it refused the app’s request (CORS). If a reverse proxy such as Traefik adds CORS headers, let requests from {0} through to openGym unchanged. See “Phone app and CORS” in docs/SELF_HOSTING.md.': '已连接到你的服务器,但它拒绝了应用的请求(CORS)。如果 Traefik 等反向代理会添加 CORS 头,请让来自 {0} 的请求原样转发到 openGym。参见 docs/SELF_HOSTING.md 中的“Phone app and CORS”。','Could not reach {0}. Check the address and that this phone can reach it.': '无法连接到 {0}。请检查地址,以及这部手机能否访问它。',- 'Vibrate when the phone is on silent': '手机静音时也振动','The end of a rest or a hold buzzes like an alarm, even in silent mode.': '休息或保持结束时会像闹钟一样振动,即使在静音模式下。',// --- repeat a saved workout today (#58) ---'Repeat today': '今天再练一次',@@ -1795,4 +1779,67 @@ export default {'Switch sides': '换边','Saves a dated copy to “{0}” after finishing a workout or editing a routine, and keeps the newest {1}.': '每次完成训练或修改计划后,在“{0}”中保存一份带日期的副本,并保留最新的 {1} 份。','Saves a dated copy to the folder you chose after finishing a workout or editing a routine, and keeps the newest {0}.': '每次完成训练或修改计划后,在你选择的文件夹中保存一份带日期的副本,并保留最新的 {0} 份。',+ // --- Settings (v1.3.11) ---+ 'Timer alerts': '计时提醒',+ 'Reminders': '提醒',+ 'Plan & schedule': '计划与安排',+ 'Units & language': '单位与语言',+ 'Look & Home': '外观与首页',+ 'Data & backup': '数据与备份',+ 'About & updates': '关于与更新',+ 'Fine-tuning': '细节调整',+ 'Logging': '记录',+ 'Before and during': '开始前与训练中',+ 'Sessions and timed sets': '训练与计时组',+ 'Buttons on the workout screen': '训练界面上的按钮',+ 'When a rest ends': '休息结束时',+ 'On Home': '首页上',+ 'Back up': '备份',+ 'Bring data in': '导入数据',+ 'How you train': '训练方式',+ 'Play a sound': '播放提示音',+ 'Sound': '提示音',+ 'Chime (louder)': '铃声(更响)',+ 'Classic beeps': '经典哔声',+ 'Play even on silent': '静音时也播放',+ 'Vibrate on silent too': '静音时也振动',+ 'Flash the screen': '闪烁屏幕',+ 'Version': '版本',+ 'Source code': '源代码',+ '{0} rest': '休息 {0}',+ 'No rest timer': '不计时休息',+ 'Buttons, timed sets': '按钮、计时组',+ 'Flash': '闪烁',+ 'Silent': '静音',+ 'Everything': '全部',+ 'Your server': '你的服务器',+ 'Your API key': '你的 API 密钥',+ 'sec': '秒',+ 'Not on iPhone': 'iPhone 不支持',+ 'iPhone only': '仅限 iPhone',+ 'Android app only': '仅限 Android 应用',+ 'Guest': '访客',+ 'Your data lives on this device. Sign in to sync.': '你的数据保存在这台设备上。登录即可同步。',+ 'Account, devices and sync': '账号、设备与同步',+ 'Synced with your server': '已与你的服务器同步',+ 'Sync needs a look': '同步需要查看一下',+ 'This phone': '这部手机',+ 'Example data, only in this browser.': '示例数据,仅保存在此浏览器中。',+ 'Search settings': '搜索设置',+ 'No setting matches “{0}”.': '没有与“{0}”匹配的设置。',+ '{0} result': '{0} 个结果',+ '{0} results': '{0} 个结果',+ '{0} minute': '{0} 分钟',+ '{0} minutes': '{0} 分钟',+ '{0} second': '{0} 秒',+ '{0} seconds': '{0} 秒',+ 'Scroll to 0:00 to turn the rest timer off.': '滚动到 0:00 即可关闭休息计时。',+ 'The short break between the bursts of a rest-pause set.': '歇息暂停组中各段之间的短暂休息。',+ 'Each exercise can have its own rest too. Set it in the exercise settings of a routine.': '每个动作也可以有自己的休息时间。在计划的动作设置里修改。',+ 'iPhone doesn’t let openGym vibrate. A sound or a flash does the job.': 'iPhone 不允许 openGym 振动。用提示音或闪烁屏幕就够了。',+ 'No account, no cloud. Back it up anytime in Data & backup.': '无需账号,也没有云端。随时在“数据与备份”里备份。',+ 'Effort per set is off. Turn it on in Settings → Workout to keep rating.': '每组强度已关闭。在 设置 → 训练 中打开即可继续评分。',+ 'Enter the code your other device shows under Settings → Account → Add another device. This device then gets a passkey of its own.': '输入你另一台设备在“设置 → 账号 → 添加其他设备”中显示的代码。之后此设备会有自己的通行密钥。',+ 'Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.': '在你已登录的 openGym 网站上,打开 设置 → 账号 →“配对手机应用”,然后输入其地址和那里显示的配对码。',+ 'Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.': '在浏览器中打开你的 openGym 网站的 设置 → 账号 →“配对手机应用”,然后输入那里显示的新配对码。这部手机保留的内容会合并到你的账号。',}diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsxindex d924ce5ed..a0e98ff23 100644--- a/frontend/src/views/Admin.jsx+++ b/frontend/src/views/Admin.jsx@@ -282,7 +282,7 @@ export default function Admin() {return <div className="narrow"><div className="hdr">- <button className="iconbtn" onClick={() => nav('/settings')} aria-label="Back"><Icon name="chevronLeft" /></button>+ <button className="iconbtn" onClick={() => nav('/settings/account')} aria-label="Back"><Icon name="chevronLeft" /></button><div style={{ flex: 1, marginInlineStart: 8 }}><h1 style={{ margin: 0 }}>Admin</h1><div className="sub">{users ? users.length + ' users · ' + activeCount + ' active this week' : usersErr ? 'Could not load' : 'Loading…'}</div></div><button className="iconbtn" onClick={() => { loadUsers(); loadInvites(); setTick(n => n + 1) }} aria-label="refresh">↻</button>diff --git a/frontend/src/views/MobileOnboarding.jsx b/frontend/src/views/MobileOnboarding.jsxindex 462a87726..6b18e9ae5 100644--- a/frontend/src/views/MobileOnboarding.jsx+++ b/frontend/src/views/MobileOnboarding.jsx@@ -35,8 +35,8 @@ export function ConnectSheet({ close, initialUrl = '', again = false }) {<h3>{again ? t('Pair again') : t('Connect to my server')}</h3><div className="muted small" style={{ marginBottom: 14 }}>{again- ? t('Open Settings → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.')- : t('Open Settings → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.')}+ ? t('Open Settings → Account → “Pair the mobile app” on your openGym site in a browser and enter the new code shown there. What this phone kept is merged into your account.')+ : t('Open Settings → Account → “Pair the mobile app” on the openGym site you’re already signed into, then enter its address and the code shown there.')}</div><input ref={ref} className="input" placeholder={t('Server address (e.g. gym.example.com)')} value={url}onChange={e => setUrl(e.target.value)} autoCapitalize="none" autoCorrect="off" inputMode="url" />diff --git a/frontend/src/views/Settings.account-id.test.jsx b/frontend/src/views/Settings.account-id.test.jsxindex 9f7e88253..731f2859e 100644--- a/frontend/src/views/Settings.account-id.test.jsx+++ b/frontend/src/views/Settings.account-id.test.jsx@@ -79,7 +79,7 @@ afterEach(() => { act(() => { mounted.splice(0).forEach(({ root, host }) => { rodescribe('Settings → Account ID', () => {it('a signed-in browser shows the id under Account, and a tap copies it', async () => {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const row = idRow(section(page, 'Account'))expect(row).toBeTruthy()expect(row.querySelector('.acct-id').textContent).toBe(ID)@@ -91,13 +91,13 @@ describe('Settings → Account ID', () => {it('a paired phone shows it in the Server & sync block', () => {mocks.MOBILE = true- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)expect(idRow(section(page, 'Server & sync')).querySelector('.acct-id').textContent).toBe(ID)})it('a clipboard that refuses says nothing, and the id stays on screen', async () => {writeText.mockImplementation(() => Promise.reject(new Error('denied')))- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => idRow(page).click())await tick()expect(mocks.toast).not.toHaveBeenCalled()@@ -109,7 +109,7 @@ describe('Settings → Account ID', () => {const execCommand = vi.fn(() => true)Object.defineProperty(document, 'execCommand', { value: execCommand, configurable: true })try {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => idRow(page).click())await tick()expect(execCommand).toHaveBeenCalledWith('copy')@@ -119,7 +119,7 @@ describe('Settings → Account ID', () => {it('a guest has no account and no id', () => {mocks.user = null- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)expect(idRow(page)).toBeUndefined()})})diff --git a/frontend/src/views/Settings.backupfolder.test.jsx b/frontend/src/views/Settings.backupfolder.test.jsxindex 115124e4c..a810c810a 100644--- a/frontend/src/views/Settings.backupfolder.test.jsx+++ b/frontend/src/views/Settings.backupfolder.test.jsx@@ -83,7 +83,7 @@ afterEach(() => {host.remove()})-const mount = async () => { await act(async () => { root.render(<Settings />) }) }+const mount = async () => { await act(async () => { root.render(<Settings page="data" />) }) }const shown = () => !!host.querySelector('.backup-folder-row')describe('the backup folder rows', () => {diff --git a/frontend/src/views/Settings.connstatus.test.jsx b/frontend/src/views/Settings.connstatus.test.jsxindex fe18d499e..bb1454992 100644--- a/frontend/src/views/Settings.connstatus.test.jsx+++ b/frontend/src/views/Settings.connstatus.test.jsx@@ -72,7 +72,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="look" />))const row = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Show connection status'))describe('Show connection status', () => {diff --git a/frontend/src/views/Settings.gifsize.test.jsx b/frontend/src/views/Settings.gifsize.test.jsxindex a0d83d4a3..1b69fd9e8 100644--- a/frontend/src/views/Settings.gifsize.test.jsx+++ b/frontend/src/views/Settings.gifsize.test.jsx@@ -63,7 +63,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="workout" />))const segButton = label => [...host.querySelectorAll('.seg button')].find(b => b.textContent === label)describe('Settings — exercise animations', () => {diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsxindex c5efa904f..d9ef48383 100644--- a/frontend/src/views/Settings.jsx+++ b/frontend/src/views/Settings.jsx@@ -1,5 +1,5 @@import { useEffect, useRef, useState, forwardRef, useSyncExternalStore } from 'react'-import { useNavigate } from 'react-router-dom'+import { useNavigate, useParams, useLocation, Navigate } from 'react-router-dom'import { useStore, DEF, hasData } from '../store/useStore.js'import { workoutControls } from '../lib/workout-controls.js'import { speedUnitOf } from '../lib/speed.js'@@ -8,13 +8,13 @@ import { useUI } from '../store/useUI.js'import { ACCENTS, ACCENT_NAMES, todayISO, localTZ, weekStartOf, MONDAY, SUNDAY, fmtPlate } from '../lib/format.js'import { inventoryFor, ownsPlates } from '../lib/plates.js'import { effortOf } from '../lib/history.js'-import { unlock, playOnSilentSupported, vibrateSupported } from '../lib/sound.js'+import { unlock, playOnSilentSupported, vibrateSupported, appleTouchDevice } from '../lib/sound.js'import { scheduleModeOf, queueRecovery, rotationIds, startPass, stopPass } from '../lib/rotation.js'import { queueOf } from '../lib/queue.js'import { api, webauthnOK, passkeyRegister, IS_ANDROID } from '../lib/api.js'import { pushSupported, enablePush, disablePush, sendTestPush, syncPushSubscription } from '../lib/push.js'import { wakeLockSupported } from '../lib/wakelock.js'-import { t, tn, LANGS, INSTR_LANGS, EXERCISE_NAME_LANGS, baseLang } from '../lib/i18n.js'+import { t, tn, LANGS, INSTR_LANGS, EXERCISE_NAME_LANGS, baseLang, dateLocale } from '../lib/i18n.js'import { effectiveLang } from '../lib/default-lang.js'import { DEMO, REPO } from '../lib/demo.js'import { MOBILE, isAndroid, shareExport, shareExportBlob, syncReminder } from '../lib/mobile.js'@@ -27,18 +27,53 @@ import { limitsFrom, fmtMB, MB } from '../lib/media-limits.js'import { setRestAccent } from '../lib/rest-alert.js'import { checkForUpdate, downloadAndInstall } from '../lib/update.js'import { forgetCoach } from '../lib/coach-api.js'+import { REST_MAX, REST_PAUSE_MIN, REST_PAUSE_MAX, fmtRest, fmtDuration } from '../lib/duration.js'import { starterPlanSheet, confirmSheet, importFromApp, importFromHevy, equipmentProfileSheet, plateInventorySheet, menuSheet } from '../sheets.jsx'import Icon from '../components/Icon.jsx'+import { durationSheet } from '../components/DurationWheel.jsx'import BackupFolderRow, { useBackupFolder, autoBackupSubtitle } from '../components/BackupFolderRow.jsx'import { ServerSyncSection, KeptChangesRows, leaveServer, connectServer, passkeySignIn } from '../components/ServerSync.jsx'import { passwordOn, PasswordRow, openPasswordSignIn, openPasswordRegister } from '../components/PasswordAuth.jsx'import { usePasskeys, PasskeysRow, DeviceLinkRow } from '../components/Passkeys.jsx'-import { Section, Row, SelectRow, Switch, Segmented, Button, TextField } from '../components/ui.jsx'+import { Section, Row, SelectRow, Switch, Segmented, Button, TextField, SearchField } from '../components/ui.jsx'+import { PAGES, ROOT_GROUPS, pageVisible, searchSettings, pageTrail } from './settings-pages.js'-export default function Settings() {+/* Settings (v1.3.11). The root is one screen: an account card, eleven rows that each open a page+ (/settings/<page>), and a search over every row. Rare things live one level further down+ (Workout → Fine-tuning). The rows and their rules are the ones the single long page had; only+ where they sit changed. settings-pages.js says which page holds what, and is what the search+ reads. `page` is the open page (null for the root), `find` a row a search hit asked for, which+ is scrolled to and flashed. */++// What was typed into the search, kept while you step into a hit and back out again.+let lastQuery = ''++// The route: /settings and /settings/<page>. An unknown page, or one this device does not have+// (the Coach page off the phone app), goes back to the root.+export function SettingsRoute() {+ const { page } = useParams()+ const loc = useLocation()+ const ctx = { user: useStore(s => s.user), mobile: MOBILE }+ if (page && (!PAGES[page] || !pageVisible(PAGES[page].parent || page, ctx))) return <Navigate to="/settings" replace />+ if (page === 'coach') return <Navigate to="/coach/setup" replace />+ return <Settings key={page || 'root'} page={page || null} find={loc.state?.find || null} />+}++// "Mon" / "Sun" in the app's language, for the Plan & schedule row's preview.+const shortWeekday = day => {+ try { return new Intl.DateTimeFormat(dateLocale(), { weekday: 'short' }).format(new Date(2024, 0, day === 0 ? 7 : 1)) } catch { return day === 0 ? 'Sun' : 'Mon' }+}++// Running as an installed app (home-screen web app or the phone app): no install tip then.+const standalone = () => {+ try { return !!(window.matchMedia?.('(display-mode: standalone)').matches || window.navigator.standalone === true) } catch { return false }+}++export default function Settings({ page = null, find = null }) {const nav = useNavigate()const S = useStore(s => s.S)const user = useStore(s => s.user)+ const sync = useStore(s => s.sync)const coachLocal = useStore(s => s.coachLocal)// Name-and-password sign-in, where the instance offers it (#118).const config = useStore(s => s.config)@@ -48,17 +83,18 @@ export default function Settings() {const lang = effectiveLang(S, config)// This profile's passkeys and the code for another device (#95). A change to them is read back// here and by the password row, whose "Remove" depends on there being a passkey.- const passkeys = usePasskeys(!!user && !MOBILE && !DEMO)+ const passkeys = usePasskeys(!!user && !MOBILE && !DEMO && (page === 'account'))const [credsV, setCredsV] = useState(0)const credsChanged = () => { passkeys.load(); setCredsV(v => v + 1) }const { update, importConflict, importBackup, setUnit, resetEverything: resetAll, setUser, pullState, pushState, resetDemo } = useStore()const toast = useUI(s => s.toast)const fileRef = useRef(null)const importRef = useRef(null)+ const body = useRef(null)const wakeOK = wakeLockSupported()// A planner's own queue (no rotationId, or one that doesn't match the saved rotation here) is- // not this app's to switch off or overwrite — the Scheduling row goes read-only for it.+ // not this app's to switch off or overwrite. The Scheduling row goes read-only for it.const liveQ = queueOf(S)const externalQ = !!liveQ && (!S.rotation || liveQ.rotationId !== S.rotation.id)@@ -113,10 +149,23 @@ export default function Settings() {// The in-app updater installs an .apk, so it only applies to the native Android build.// On iOS and the web this check is skipped and the update row never appears. isAndroid()// already answers false off the mobile build; the MOBILE check on top keeps the web bundle- // from even asking (and from calling gitlab.com on every Settings visit).+ // from even asking (and from calling gitlab.com on every Settings visit). Only the pages+ // that show it ask: the root (for nothing but `android`) skips the release check.if (!MOBILE) return- isAndroid().then(ok => { setAndroid(ok); if (ok) checkForUpdate().then(setUpdateInfo).catch(() => {}) })- }, [])+ isAndroid().then(ok => { setAndroid(ok); if (ok && page === 'about') checkForUpdate().then(setUpdateInfo).catch(() => {}) })+ }, [page])++ // A search hit: scroll its row into view and flash it once.+ useEffect(() => {+ if (!find || !body.current) return+ const label = t(find)+ const row = [...body.current.querySelectorAll('.lrow')].find(r => r.querySelector('.lrow-t')?.textContent === label)+ if (!row) return+ row.classList.add('sp-flash')+ if (typeof row.scrollIntoView === 'function') row.scrollIntoView({ block: 'center' })+ const tm = setTimeout(() => row.classList.remove('sp-flash'), 1900)+ return () => clearTimeout(tm)+ }, [find])// The same check, on demand: the automatic one is silent when it finds nothing or cannot// reach gitlab.com, and a person who taps "Check for updates" deserves an answer either way.@@ -305,373 +354,530 @@ export default function Settings() {},})- return <div className="narrow">- <div className="hdr">- <button className="iconbtn" onClick={() => nav('/home')} aria-label={t('Home')}><Icon name="chevronLeft" /></button>- <div style={{ flex: 1, marginInlineStart: 10 }}><h1>{t('Settings')}</h1></div>- </div>-- {/* ---------- the server: which one, which account, how that stands, "Sync now" ----------- A paired phone's Admin and Disconnect sit in the same block; a browser's account rows- follow in their own. */}- {user && !DEMO && <ServerSyncSection>- {MOBILE && <>- {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}- <AccountIdRow id={user.id} />- <Row icon="signOut" iconTint="var(--red)" title={t('Disconnect')} danger onClick={disconnect} />- </>}- </ServerSyncSection>}+ /* ---------------- what the pages and the search need to know about this device ---------------- */+ const canVibrate = vibrateSupported()+ const ctx = {+ user, mobile: MOBILE, android, demo: DEMO, wakeOK, hasMedia, pwOn, webauthn: webauthnOK(),+ sound: !!S.sound, playOnSilent: playOnSilentSupported(), canVibrate, vibrate: S.vibrate !== false,+ profiles: (S.equipProfiles || []).length > 0, nameLang: EXERCISE_NAME_LANGS.includes(baseLang(lang)),+ }+ const mode = scheduleModeOf(S)+ const layout = ['list', 'compact'].includes(S.workoutView) ? S.workoutView : 'cards'+ const layoutLabel = { cards: t('Cards'), list: t('List'), compact: t('Compact') }[layout]+ const activeProfile = (S.equipProfiles || []).find(p => p.id === S.activeEquipId)+ const themeLabel = { dark: t('Dark'), light: t('Light'), system: t('System') }[S.theme || 'dark'] || t('Dark')+ // The value a root row shows, so most questions are answered without opening the page.+ const preview = {+ workout: () => (S.restSec > 0 ? t('{0} rest', fmtRest(S.restSec)) : t('No rest timer')) + ' · ' + layoutLabel,+ alerts: () => [S.sound ? t('Sound') : null, canVibrate && S.vibrate !== false ? t('Vibrate') : null, S.timerFlash ? t('Flash') : null].filter(Boolean).join(' · ') || t('Silent'),+ reminders: () => (S.reminder?.on ? (S.reminder.time || DEF.reminder?.time || '') : t('Off')),+ plan: () => (mode === 'rotation' ? t('Rotation') : t('Fixed Week')) + ' · ' + shortWeekday(weekStartOf(S) === SUNDAY ? 0 : 1),+ units: () => (S.unit || 'kg') + ' · ' + (LANGS[lang] || lang),+ equipment: () => (S.equipFilterOn && activeProfile ? activeProfile.name : t('Everything')),+ look: () => themeLabel + ' · ' + t(ACCENT_NAMES[S.accent || 'lime'] || 'Green'),+ coach: () => (coachLocal?.mode === 'server' ? t('Your server') : coachLocal?.mode === 'byok' ? t('Your API key') : t('Off')),+ data: () => '',+ about: () => 'v' + __APP_VERSION__,+ }- {/* ---------- account (demo and mobile builds have nothing to sign in to) ---------- */}- {!(MOBILE && user) && <Section title={MOBILE ? t('Your data') : DEMO ? t('Demo') : t('Account')}>- {MOBILE ? <>- <Row icon="lock" iconTint="var(--acc)" title={t('All data stays on this phone')} subtitle={t('No account, no cloud. Back it up anytime with Export below.')} />- <Row icon="link" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted openGym instead.')} accessory="chevron"- onClick={connectServer} />- <KeptChangesRows />- </> : DEMO ? <>- <Row icon="sparkles" iconTint="var(--acc)" title={t('You’re in the demo')} subtitle={t('Example data, stored only in this browser. Go wild and change anything you like.')} />- <Row icon="reset" iconTint="var(--blue)" title={t('Reset demo data')} accessory="chevron"- onClick={() => confirmSheet({ title: t('Reset demo data?'), message: t('Puts the example plan, workouts and weigh-ins back the way they started.'), confirmText: t('Reset'), onConfirm: () => { resetDemo(); nav('/home'); toast(t('Demo data reset')) } })} />- <Row icon="rocket" iconTint="var(--indigo)" title={t('Self-host openGym')} subtitle={t('Passkey sign-in, sync across your devices, your own data.')} accessory="chevron"- onClick={() => window.open(REPO, '_blank', 'noopener')} />- </> : user ? <>- {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}- <PasskeysRow state={passkeys.st} changed={credsChanged} />- <DeviceLinkRow state={passkeys.st} />- <Row icon="link" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the openGym app on your phone to this account.')} accessory="chevron"- onClick={() => useUI.getState().openSheet(close => <PairSheet close={close} />)} />- {pwOn && <PasswordRow version={credsV} />}- <Row icon="signOut" iconTint="var(--red)" title={t('Sign out')} danger onClick={signOutHere} />- <Row icon="shield" iconTint="var(--red)" title={t('Sign out everywhere')} subtitle={t('Ends this profile’s sessions on all your devices.')} danger onClick={signOutEverywhere} />- <AccountIdRow id={user.id} />- </> : webauthnOK() ? <>- <Row icon="sparkles" iconTint="var(--acc)" title={t('Create passkey profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={registerHere} />- <Row icon="person" iconTint="var(--blue)" title={t('Sign in with passkey')} accessory="chevron" onClick={passkeySignIn} />- {pwOn && <Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} />}- <KeptChangesRows />- </> : pwOn ? <>- {/* No passkeys in this browser (plain http on a LAN address, say): a password is the way in. */}- <Row icon="sparkles" iconTint="var(--acc)" title={t('Create new profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={openPasswordRegister} />- <Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} />- <KeptChangesRows />- </> : <>- <Row icon="lock" iconTint="var(--grey)" title={t('Passkeys not supported in this browser.')} />- <KeptChangesRows />- </>}- </Section>}- {!user && !DEMO && !MOBILE && <p className="sect-f" style={{ marginTop: -18, marginBottom: 22 }}>{t('Guest mode: your data lives only in this browser.')}</p>}+ const open = id => {+ if (id === 'coach') { nav('/coach/setup'); return }+ nav('/settings/' + id)+ }+ // Back the way you came when there is a way (the browser's back, Android's back, this button+ // all do the same); a page opened from a link with nothing behind it goes up to its parent.+ const back = () => {+ const up = PAGES[page]?.parent ? '/settings/' + PAGES[page].parent : '/settings'+ if ((window.history.state?.idx || 0) > 0) nav(-1)+ else nav(up, { replace: true })+ }- {/* ---------- the Coach on a phone: through the paired server, or with the user's own key ---------- */}- {MOBILE && <Section title={t('AI Coach')}>- <Row icon="sparkles" iconTint="var(--acc)" title={t('AI Coach')} accessory="chevron"- subtitle={coachLocal?.mode === 'server' ? t('Runs on your openGym server') : coachLocal?.mode === 'byok' ? t('Runs on this phone with your own API key') : t('Off. Choose how the Coach should run.')}- onClick={() => nav('/coach/setup')} />- </Section>}+ /* ---------------- the pages ---------------- */+ const restRow = <Row icon="timer" iconTint="var(--orange)" title={t('Rest timer')} value={fmtRest(S.restSec)} accessory="chevron"+ onClick={() => durationSheet({+ title: t('Rest timer'), value: S.restSec, max: REST_MAX, off: t('Off'),+ footer: t('Scroll to 0:00 to turn the rest timer off.'),+ onDone: v => update(s => { s.restSec = v }),+ })} />+ // Default for a rest-pause burst added live on a plain set. A planned exercise's own "Rest (s)"+ // (in its drop set / burst config) overrides it, the same way the main rest timer is the+ // fallback for an exercise without a rest of its own. On the wheel too, 5 s to 5 min: the+ // burst's rest is never 0 (lib/history.js keeps it at 5 s at least), so the wheel stops there.+ const restPauseRow = <Row icon="bolt" iconTint="var(--orange)" title={t('Rest-pause rest')} value={fmtDuration(S.restPauseSec || 15)} accessory="chevron"+ onClick={() => durationSheet({+ title: t('Rest-pause rest'), value: S.restPauseSec || 15, min: REST_PAUSE_MIN, max: REST_PAUSE_MAX,+ footer: t('The short break between the bursts of a rest-pause set.'),+ onDone: v => update(s => { s.restPauseSec = v }),+ })} />- {/* ---------- general ---------- */}- <Section title={t('General')} footer={t('Switching the unit offers to convert every stored weight.')}>- {/* Fixed Week (S.week) or Rotation (the live queue, lib/queue.js + lib/rotation.js).- Derived from the queue, never stored. */}- <Row icon="shuffle" iconTint="var(--green)" title={t('Scheduling')}>- {externalQ- ? <span className="small dim">{t('Rotation')} · {t('Externally managed')}</span>- : <Segmented className="seg-inline"- options={[{ value: 'week', label: t('Fixed Week') }, { value: 'rotation', label: t('Rotation') }]}- value={scheduleModeOf(S)} onChange={setScheduleMode} />}- </Row>- <SelectRow- icon="globe" iconTint="var(--blue)" title={t('Language')}- value={lang} onChange={v => update(s => { s.lang = v; s.langAuto = false })}- options={Object.entries(LANGS).map(([k, name]) => ({- value: k, label: name,- subtitle: INSTR_LANGS.includes(k) ? null : t("Exercise instructions aren't translated into this language yet, so they stay in English."),- }))}- />- {EXERCISE_NAME_LANGS.includes(baseLang(lang)) && <>- <Row icon="dumbbell" iconTint="var(--purple)" title={t('English exercise names')}- subtitle={t('Show the English name in parentheses next to the translated one.')}>- <Switch checked={S.enParens?.[baseLang(lang)] ?? true}- disabled={S.enOnly?.[baseLang(lang)] === true}- onChange={v => update(s => { s.enParens = { ...(s.enParens || {}), [baseLang(lang)]: v } })} />+ const pages = {+ workout: () => <>+ <Section title={t('Rest')} footer={t('Each exercise can have its own rest too. Set it in the exercise settings of a routine.')}>+ {restRow}+ {restPauseRow}+ </Section>+ <Section title={t('Logging')}>+ {/* Two names for the same judgement, so the column asks in the scale you already think in.+ The (i) sits before the control: you read it on the way to the choice, not after it. */}+ <Row icon="gauge" iconTint="var(--purple)" title={t('Effort per set')}>+ <button className="helpbtn" aria-label={t('What are RIR and RPE?')} onClick={effortHelpSheet}><Icon name="info" /></button>+ <Segmented className="seg-inline"+ options={[{ value: 'none', label: t('Off') }, { value: 'rir', label: t('RIR') }, { value: 'rpe', label: t('RPE') }]}+ value={effortOf(S)} onChange={v => update(s => { s.effort = v; delete s.showRir })} /></Row>- <Row icon="globe" iconTint="var(--purple)" title={t('English names only')}- subtitle={t('Replace the translated names with the original English ones.')}>- <Switch checked={S.enOnly?.[baseLang(lang)] === true}- onChange={v => update(s => { s.enOnly = { ...(s.enOnly || {}), [baseLang(lang)]: v } })} />+ {/* The line under each exercise that the rows are held against (#173). Tapping the line in+ a workout switches it too; this is where the choice can be found without knowing that. */}+ <SelectRow icon="history" iconTint="var(--blue)" title={t('Shown under each exercise')}+ value={S.logRef === 'best' ? 'best' : 'last'} onChange={v => update(s => { s.logRef = v })}+ options={[+ { value: 'last', label: t('Last time'), subtitle: t('What you did the last time, in that routine.') },+ { value: 'best', label: t('Best set'), subtitle: t('Your heaviest set of the exercise, from any workout.') },+ ]} />+ {/* One exercise at a time (cards with Prev/Next), the whole session stacked as a+ scrollable list, or that list stripped to just names and set rows (compact). Legacy or+ unknown values read as cards. The workout's ⋯ menu can override it for one session. */}+ <Row icon="layout" iconTint="var(--blue)" title={t('Layout')}>+ <Segmented className="seg-inline"+ options={[{ value: 'cards', label: t('Cards') }, { value: 'list', label: t('List') }, { value: 'compact', label: t('Compact') }]}+ value={layout} onChange={v => update(s => { s.workoutView = v })} /></Row>- </>}- <Row icon="scale" iconTint="var(--teal)" title={t('Weight unit')}>- <Segmented className="seg-inline"- options={[{ value: 'kg', label: 'kg' }, { value: 'lb', label: 'lb' }]}- value={S.unit} onChange={v => switchUnit(v)} />- </Row>- {/* Cardio speed (Discord "miles per hour"). Unlike the weight unit this converts nothing:- speeds stay stored in km/h and only what is shown and typed follows it (lib/speed.js).- Until chosen it follows the weight unit, so a profile in pounds already reads mph. */}- <Row icon="figureRun" iconTint="var(--teal)" title={t('Speed unit')}>- <Segmented className="seg-inline"- options={[{ value: 'kmh', label: 'km/h' }, { value: 'mph', label: 'mph' }]}- value={speedUnitOf(S)} onChange={v => update(s => { s.speedUnit = v })} />- </Row>- {/* Display only: one decimal reads fine for plate-loadable numbers, two for anyone whose- per-side figure lands on .25 or .75, or who loads microplates (issue #139). Nothing is- stored or rounded differently — lib/format.js fmtNum just prints what is already there. */}- <Row icon="plate" iconTint="var(--teal)" title={t('Weight decimals')} subtitle={t('How precisely weights are shown.')}>- <Segmented className="seg-inline"- options={[{ value: 1, label: t('0.5') }, { value: 2, label: t('0.25') }]}- value={S.wdec === 2 ? 2 : 1} onChange={v => update(s => { s.wdec = v })} />- </Row>- {/* Monday or Sunday — the Plan list, the Home strip, the calendar grid and every- "this week" total follow it. Stored as a getDay() index (see lib/format.js). */}- <Row icon="calendar" iconTint="var(--orange)" title={t('Week starts on')}>- <Segmented className="seg-inline"- options={[{ value: MONDAY, label: t('Monday') }, { value: SUNDAY, label: t('Sunday') }]}- value={weekStartOf(S)} onChange={v => update(s => { s.weekStart = v })} />- </Row>- {/* Membership QR codes on Home (views/CheckIn.jsx); off = no Home card, no route. */}- <Row icon="qr" iconTint="var(--blue)" title={t('Gym check-in')}- subtitle={t('Show a card on Home with your membership QR codes.')}>- <Switch checked={S.checkIn !== false} onChange={v => update(s => { s.checkIn = v })} />- </Row>- {/* The Home summary is optional; hiding it leaves weight logging, history and Stats intact. */}- <Row icon="scale" iconTint="var(--green)" title={t('Body weight')}- subtitle={t('Show the body weight card on Home.')}>- <Switch checked={S.showWeightCard !== false} onChange={v => update(s => { s.showWeightCard = v })} />- </Row>- </Section>+ </Section>+ <Section title={t('Before and during')} footer={wakeOK ? t('The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.') : null}>+ {/* The quick weigh-in that opens on Start (sheets.jsx startFlow, issue #137); off skips+ straight to the session. Home and Stats still log weight by hand. */}+ <Row icon="scale" iconTint="var(--green)" title={t('Weigh in before workouts')}+ subtitle={t('Asks for your body weight when a workout starts. Off starts the session straight away.')}>+ <Switch checked={S.weighIn !== false} onChange={v => update(s => { s.weighIn = v })} />+ </Row>+ {(wakeOK || !MOBILE) && (+ <Row icon="phoneScreen" iconTint="var(--yellow)" title={t('Keep screen awake')}+ subtitle={wakeOK ? null : t('Not supported in this browser.')}>+ <Switch checked={wakeOK && S.keepAwake !== false} disabled={!wakeOK}+ onChange={v => update(s => { s.keepAwake = v })} />+ </Row>+ )}+ {/* 'full'/'mini' is also what the tap-toggle on the workout animation writes; 'off' hides+ workout media entirely (library, detail sheet and picker thumbs are unaffected).+ Legacy/unknown values read as 'full'. */}+ <Row icon="image" iconTint="var(--teal)" title={t('Exercise animations')}>+ <Segmented className="seg-inline"+ options={[{ value: 'full', label: t('Full') }, { value: 'mini', label: t('Small') }, { value: 'off', label: t('Hidden') }]}+ value={S.gifSize === 'mini' || S.gifSize === 'off' ? S.gifSize : 'full'}+ onChange={v => update(s => { s.gifSize = v })} />+ </Row>+ </Section>+ <Section>+ <Row icon="wrench" iconTint="var(--grey)" title={t('Fine-tuning')} subtitle={t('Buttons, timed sets')} accessory="chevron" onClick={() => open('advanced')} />+ </Section>+ </>,- {/* ---------- during a workout ---------- */}- <Section title={t('During a workout')} footer={wakeOK ? t('The screen stays on while a workout is running, so you don’t have to unlock your phone between sets.') : null}>- {/* The quick weigh-in that opens on Start (sheets.jsx startFlow, issue #137); off skips straight- to the session. Home and Stats still log weight by hand. */}- <Row icon="scale" iconTint="var(--green)" title={t('Weigh in before workouts')}- subtitle={t('Asks for your body weight when a workout starts. Off starts the session straight away.')}>- <Switch checked={S.weighIn !== false} onChange={v => update(s => { s.weighIn = v })} />- </Row>- {/* One exercise at a time (cards with Prev/Next), the whole session stacked as a- scrollable list, or that list stripped to just names and set rows (compact).- Legacy/unknown values read as cards. The running session can override this from- the workout header's ⋮ menu without changing this default. */}- <Row icon="list" iconTint="var(--blue)" title={t('Workout view')}>- <Segmented className="seg-inline"- options={[{ value: 'cards', label: t('Cards') }, { value: 'list', label: t('List') }, { value: 'compact', label: t('Compact') }]}- value={['list', 'compact'].includes(S.workoutView) ? S.workoutView : 'cards'}- onChange={v => update(s => { s.workoutView = v })} />- </Row>- {/* Whose reps a planned session opens with (lib/session-start.js). The plan's by default:- the routine is what you said you would do, and history and progression decide the- weight. The other choice is the old behaviour, reps carried over from last time.- Absent (an older profile) reads as the plan. */}- <SelectRow icon="clipboard" iconTint="var(--acc)" title={t('Planned sessions start from')}- value={S.startFrom === 'last' ? 'last' : 'plan'} onChange={v => update(s => { s.startFrom = v })}- options={[- { value: 'plan', label: t('Your plan'), subtitle: t('The routine’s sets and reps. Your history decides the weight.') },- { value: 'last', label: t('Your last session'), subtitle: t('The reps you logged last time in that routine, carried over.') },- ]} />- {/* The line under each exercise that the rows are held against (#173). Tapping the line in- a workout switches it too; this is where the choice can be found without knowing that. */}- <SelectRow icon="history" iconTint="var(--blue)" title={t('Shown under each exercise')}- value={S.logRef === 'best' ? 'best' : 'last'} onChange={v => update(s => { s.logRef = v })}- options={[- { value: 'last', label: t('Last time'), subtitle: t('What you did the last time, in that routine.') },- { value: 'best', label: t('Best set'), subtitle: t('Your heaviest set of the exercise, from any workout.') },- ]} />- {/* The lean workout screen keeps the sets and one "more" button per exercise; each switch- brings one of the old always-visible button groups back for people who liked them. */}- <Row icon="wrench" iconTint="var(--purple)" title={t('Workout controls')} accessory="chevron"- subtitle={t('Everything hidden here stays one tap away: the ⋯ button of an exercise and the number of a set.')}- onClick={() => workoutControlsSheet()} />- <SelectRow icon="timer" iconTint="var(--orange)" title={t('Rest timer')}- value={S.restSec} onChange={v => update(s => { s.restSec = v })}- options={[{ value: 0, label: t('Off') }, ...[60, 90, 120, 150, 180].map(v => ({ value: v, label: v + 's' }))]} />- {/* Default for a rest-pause burst added live on a plain set — a planned exercise's own- "Rest (s)" (in its Intensifier config) overrides this, same as the main rest timer- is the fallback whenever an exercise has no progression rule of its own. */}- <SelectRow icon="bolt" iconTint="var(--acc)" title={t('Rest-pause rest')}- value={S.restPauseSec} onChange={v => update(s => { s.restPauseSec = v })}- options={[10, 15, 20, 30].map(v => ({ value: v, label: v + 's' }))} />- {(wakeOK || !MOBILE) && (- <Row icon="sun" iconTint="var(--yellow)" title={t('Keep screen awake')}- subtitle={wakeOK ? null : t('Not supported in this browser.')}>- <Switch checked={wakeOK && S.keepAwake !== false} disabled={!wakeOK}- onChange={v => update(s => { s.keepAwake = v })} />+ advanced: () => {+ // S.wc overlays DEF.wc, so a profile from before these switches existed reads as the lean default.+ const wc = workoutControls(S)+ const setWc = (k, v) => update(s => { s.wc = { ...workoutControls(s), [k]: v } })+ return <>+ <Section title={t('Sessions and timed sets')}>+ {/* Whose reps a planned session opens with (lib/session-start.js). The plan's by default:+ the routine is what you said you would do, and history and progression decide the+ weight. The other choice is the old behaviour, reps carried over from last time.+ Absent (an older profile) reads as the plan. */}+ <SelectRow icon="clipboard" iconTint="var(--green)" title={t('Planned sessions start from')}+ value={S.startFrom === 'last' ? 'last' : 'plan'} onChange={v => update(s => { s.startFrom = v })}+ options={[+ { value: 'plan', label: t('Your plan'), subtitle: t('The routine’s sets and reps. Your history decides the weight.') },+ { value: 'last', label: t('Your last session'), subtitle: t('The reps you logged last time in that routine, carried over.') },+ ]} />+ <Row icon="stopwatch" iconTint="var(--orange)" title={t('Keep timing after target')}+ subtitle={t('Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.')}>+ <Switch aria-label={t('Keep timing after target')} checked={!!S.timedSetOvertime}+ onChange={v => update(s => { s.timedSetOvertime = v })} />+ </Row>+ </Section>+ {/* The lean workout screen keeps the sets and one "more" button per exercise; each switch+ brings one of the old always-visible button groups back for people who liked them. */}+ <Section title={t('Buttons on the workout screen')} footer={t('Everything hidden here stays one tap away: the ⋯ button of an exercise and the number of a set.')}>+ <Row icon="plusCircle" iconTint="var(--green)" title={t('Weight and reps buttons')} subtitle={t('Off: tap the number and type it')}>+ <Switch checked={wc.steppers} onChange={v => setWc('steppers', v)} />+ </Row>+ <Row icon="bolt" iconTint="var(--orange)" title={t('Drop and burst shortcuts on every set')}>+ <Switch checked={wc.setShortcuts} onChange={v => setWc('setShortcuts', v)} />+ </Row>+ <Row icon="link" iconTint="var(--blue)" title={t('Superset buttons in the exercise header')}>+ <Switch checked={wc.pairButtons} onChange={v => setWc('pairButtons', v)} />+ </Row>+ <Row icon="swap" iconTint="var(--teal)" title={t('Move, swap and remove buttons below the exercise')}>+ <Switch checked={wc.exerciseButtons} onChange={v => setWc('exerciseButtons', v)} />+ </Row>+ </Section>+ </>+ },++ alerts: () => {+ const iPhone = appleTouchDevice()+ return <>+ <Section title={t('When a rest ends')}>+ <Row icon="speaker" iconTint="var(--pink)" title={t('Play a sound')}>+ {/* Turning the sound on is a tap: unlock the audio context now so a timer that ends+ before the next set check can already sound (iOS, #152). */}+ <Switch checked={!!S.sound} onChange={v => { if (v) unlock(true); update(s => { s.sound = v }) }} />+ </Row>+ {/* The chime that replaced the original three beeps (Discord: "too quiet under music")+ is not an improvement for everyone: louder is a cost with headphones or in a quiet+ room. The chime by default; Classic brings the original back unchanged+ (lib/sound.js's CLASSIC). Stored as S.classicChime, as before. */}+ {S.sound && <SelectRow icon="bell" iconTint="var(--pink)" title={t('Sound')}+ value={S.classicChime ? 'classic' : 'chime'} onChange={v => update(s => { s.classicChime = v === 'classic' })}+ options={[+ { value: 'chime', label: t('Chime (louder)') },+ { value: 'classic', label: t('Classic beeps'), subtitle: t('The quieter three-beep sound from before 1.3.9, instead of the louder chime.') },+ ]} />}+ {/* iOS only (WebKit's audio-session API, iOS 17+): with it off the ring/silent switch+ mutes the timer. On, the phone treats the timer like a music player (exclusive, and+ the music app is not told it may resume), so it is a choice, off by default. */}+ {S.sound && playOnSilentSupported() && (+ <Row icon="speaker" iconTint="var(--orange)" title={t('Play even on silent')}+ subtitle={<>{t('Music playing on this phone stops during a workout and does not resume by itself.')}<br />{t('iPhone only')}</>}>+ <Switch checked={!!S.soundOnSilent} onChange={v => update(s => { s.soundOnSilent = v })} />+ </Row>+ )}+ </Section>+ {/* The buzz at the end of a rest or a hold and on a set tick, on its own switch like the+ sound (Discord, asierlama). iOS has no navigator.vibrate: the row stays, greyed out,+ and says so, instead of an iPhone user looking for a setting that is not there. */}+ <Section footer={!canVibrate && iPhone ? t('iPhone doesn’t let openGym vibrate. A sound or a flash does the job.') : null}>+ <Row icon="vibrate" iconTint="var(--indigo)" title={t('Vibrate')} className={canVibrate ? '' : 'dis'}+ subtitle={canVibrate ? null : iPhone ? t('Not on iPhone') : t('Not supported in this browser.')}>+ <Switch checked={canVibrate && S.vibrate !== false} disabled={!canVibrate} onChange={v => update(s => { s.vibrate = v })} />+ </Row>+ {/* Android app only (#375): silent mode mutes the ordinary buzz and the notification's,+ so the end of a rest or a hold can buzz as an alarm instead. Opt-in, like the iOS row+ above: an alarm-class buzz is the most insistent thing an app can do on some phones. */}+ {MOBILE && android && canVibrate && S.vibrate !== false && (+ <Row icon="vibrate" iconTint="var(--indigo)" title={t('Vibrate on silent too')}+ subtitle={<>{t('The end of a rest or a hold buzzes like an alarm, even in silent mode.')}<br />{t('Android app only')}</>}>+ <Switch checked={!!S.vibrateOnSilent} onChange={v => update(s => { s.vibrateOnSilent = v })} />+ </Row>+ )}+ <Row icon="sun" iconTint="var(--yellow)" title={t('Flash the screen')}>+ <Switch checked={!!S.timerFlash} onChange={v => update(s => { s.timerFlash = v })} />+ </Row>+ </Section>+ </>+ },++ reminders: () => <NotificationsCard S={S} update={update} toast={toast} />,++ plan: () => <>+ <Section>+ {/* Fixed Week (S.week) or Rotation (the live queue, lib/queue.js + lib/rotation.js).+ Derived from the queue, never stored. */}+ <Row icon="repeat" iconTint="var(--orange)" title={t('How you train')}>+ {externalQ+ ? <span className="small dim">{t('Rotation')} · {t('Externally managed')}</span>+ : <Segmented className="seg-inline"+ options={[{ value: 'week', label: t('Fixed Week') }, { value: 'rotation', label: t('Rotation') }]}+ value={mode} onChange={setScheduleMode} />}</Row>- )}- {/* 'full'/'mini' is also what the tap-toggle on the workout animation writes; 'off' hides- workout media entirely (library, detail sheet and picker thumbs are unaffected).- Legacy/unknown values read as 'full'. */}- <Row icon="figureRun" iconTint="var(--green)" title={t('Exercise animations')}>- <Segmented className="seg-inline"- options={[{ value: 'full', label: t('Full') }, { value: 'mini', label: t('Small') }, { value: 'off', label: t('Hidden') }]}- value={S.gifSize === 'mini' || S.gifSize === 'off' ? S.gifSize : 'full'}- onChange={v => update(s => { s.gifSize = v })} />- </Row>- <Row icon="bell" iconTint="var(--pink)" title={t('Sounds')}>- {/* Turning Sounds on is a tap: unlock the audio context now so a timer that ends before- the next set check can already sound (iOS, #152). */}- <Switch checked={!!S.sound} onChange={v => { if (v) unlock(true); update(s => { s.sound = v }) }} />- </Row>- {/* iOS only (WebKit's audio-session API, iOS 17+): with it off the ring/silent switch mutes- the timer. On, the phone treats the timer like a music player — exclusive, and the- music app is not told it may resume — so it is a choice, off by default (lib/sound.js). */}- {S.sound && playOnSilentSupported() && (- <Row icon="bell" iconTint="var(--orange)" title={t('Play sounds when the phone is on silent')}- subtitle={t('Music playing on this phone stops during a workout and does not resume by itself.')}>- <Switch checked={!!S.soundOnSilent} onChange={v => update(s => { s.soundOnSilent = v })} />+ {/* Monday or Sunday: the Plan list, the Home strip, the calendar grid and every "this+ week" total follow it. Stored as a getDay() index (see lib/format.js). */}+ <Row icon="calendar" iconTint="var(--orange)" title={t('Week starts on')}>+ <Segmented className="seg-inline"+ options={[{ value: MONDAY, label: t('Monday') }, { value: SUNDAY, label: t('Sunday') }]}+ value={weekStartOf(S)} onChange={v => update(s => { s.weekStart = v })} /></Row>- )}- {/* The chime that replaced the original three beeps (Discord: "too quiet under music") is- not an improvement for everyone — louder is a cost with headphones or in a quiet room.- Off by default so a fresh profile keeps the current sound; on brings the original back- unchanged (lib/sound.js's CLASSIC). */}- {S.sound && (- <Row icon="bell" iconTint="var(--teal)" title={t('Classic timer sound')}- subtitle={t('The quieter three-beep sound from before 1.3.9, instead of the louder chime.')}>- <Switch checked={!!S.classicChime} onChange={v => update(s => { s.classicChime = v })} />+ </Section>+ <Section>+ <Row icon="clipboard" iconTint="var(--green)" title={t('Load starter plan')} accessory="chevron" onClick={starterPlanSheet} />+ </Section>+ </>,++ units: () => <>+ <Section>+ <SelectRow+ icon="globe" iconTint="var(--blue)" title={t('Language')}+ value={lang} onChange={v => update(s => { s.lang = v; s.langAuto = false })}+ options={Object.entries(LANGS).map(([k, name]) => ({+ value: k, label: name,+ subtitle: INSTR_LANGS.includes(k) ? null : t("Exercise instructions aren't translated into this language yet, so they stay in English."),+ }))}+ />+ {ctx.nameLang && <>+ <Row icon="globe" iconTint="var(--purple)" title={t('English exercise names')}+ subtitle={t('Show the English name in parentheses next to the translated one.')}>+ <Switch checked={S.enParens?.[baseLang(lang)] ?? true}+ disabled={S.enOnly?.[baseLang(lang)] === true}+ onChange={v => update(s => { s.enParens = { ...(s.enParens || {}), [baseLang(lang)]: v } })} />+ </Row>+ <Row icon="globe" iconTint="var(--purple)" title={t('English names only')}+ subtitle={t('Replace the translated names with the original English ones.')}>+ <Switch checked={S.enOnly?.[baseLang(lang)] === true}+ onChange={v => update(s => { s.enOnly = { ...(s.enOnly || {}), [baseLang(lang)]: v } })} />+ </Row>+ </>}+ </Section>+ <Section footer={t('Switching the unit offers to convert every stored weight.')}>+ <Row icon="scale" iconTint="var(--teal)" title={t('Weight unit')}>+ <Segmented className="seg-inline"+ options={[{ value: 'kg', label: 'kg' }, { value: 'lb', label: 'lb' }]}+ value={S.unit} onChange={v => switchUnit(v)} /></Row>- )}- {/* The buzz at the end of a rest or a hold and on a set tick, on its own switch like the- sound (Discord, asierlama). Not offered where there is nothing to buzz: iOS has no- navigator.vibrate. */}- {vibrateSupported() && (- <Row icon="bell" iconTint="var(--indigo)" title={t('Vibrate')}>- <Switch checked={S.vibrate !== false} onChange={v => update(s => { s.vibrate = v })} />+ {/* Display only: one decimal reads fine for plate-loadable numbers, two for anyone whose+ per-side figure lands on .25 or .75, or who loads microplates (issue #139). Nothing is+ stored or rounded differently; lib/format.js fmtNum just prints what is already there. */}+ <Row icon="ruler" iconTint="var(--teal)" title={t('Weight decimals')} subtitle={t('How precisely weights are shown.')}>+ <Segmented className="seg-inline"+ options={[{ value: 1, label: t('0.5') }, { value: 2, label: t('0.25') }]}+ value={S.wdec === 2 ? 2 : 1} onChange={v => update(s => { s.wdec = v })} /></Row>- )}- {/* Android app only (#375): silent mode mutes the ordinary buzz and the notification's, so- the end of a rest or a hold can buzz as an alarm instead. Opt-in, like the iOS row above:- an alarm-class buzz is the most insistent thing an app can do on some phones. */}- {MOBILE && android && vibrateSupported() && S.vibrate !== false && (- <Row icon="bell" iconTint="var(--indigo)" title={t('Vibrate when the phone is on silent')}- subtitle={t('The end of a rest or a hold buzzes like an alarm, even in silent mode.')}>- <Switch checked={!!S.vibrateOnSilent} onChange={v => update(s => { s.vibrateOnSilent = v })} />+ {/* Cardio speed (Discord "miles per hour"). Unlike the weight unit this converts nothing:+ speeds stay stored in km/h and only what is shown and typed follows it (lib/speed.js).+ Until chosen it follows the weight unit, so a profile in pounds already reads mph. */}+ <Row icon="figureRun" iconTint="var(--teal)" title={t('Speed unit')}>+ <Segmented className="seg-inline"+ options={[{ value: 'kmh', label: 'km/h' }, { value: 'mph', label: 'mph' }]}+ value={speedUnitOf(S)} onChange={v => update(s => { s.speedUnit = v })} /></Row>- )}- <Row icon="sun" iconTint="var(--yellow)" title={t('Flash screen when timer ends')}>- <Switch checked={!!S.timerFlash} onChange={v => update(s => { s.timerFlash = v })} />- </Row>- <Row icon="timer" title={t('Keep timing after target')}- subtitle={t('Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.')}>- <Switch aria-label={t('Keep timing after target')} checked={!!S.timedSetOvertime}- onChange={v => update(s => { s.timedSetOvertime = v })} />- </Row>- {/* Two names for the same judgement, so the column asks in the scale you already think in.- The (i) sits before the control — you read it on the way to the choice, not after it. */}- <Row icon="target" iconTint="var(--purple)" title={t('Effort per set')}>- <button className="helpbtn" aria-label={t('What are RIR and RPE?')} onClick={effortHelpSheet}><Icon name="info" /></button>- <Segmented className="seg-inline"- options={[{ value: 'none', label: t('Off') }, { value: 'rir', label: t('RIR') }, { value: 'rpe', label: t('RPE') }]}- value={effortOf(S)} onChange={v => update(s => { s.effort = v; delete s.showRir })} />- </Row>- </Section>+ </Section>+ </>,- {(user || MOBILE) && <NotificationsCard S={S} update={update} toast={toast} />}+ equipment: () => <EquipmentCard S={S} update={update} />,- {/* ---------- equipment ---------- */}- <EquipmentCard S={S} update={update} />-- {/* ---------- appearance ---------- */}- <Section title={t('Appearance')} footer={DEMO || MOBILE ? undefined : t('synced with your profile')}>- <Row icon="moon" iconTint="var(--indigo)" title={t('Theme')}>- <Segmented- className="seg-inline"- options={[- { value: 'dark', icon: 'moon', label: t('Dark') },- { value: 'light', icon: 'sun', label: t('Light') },- { value: 'system', icon: 'gear', label: t('System') },- ]}- value={S.theme || 'dark'}- onChange={v => update(s => { s.theme = v })}- />- </Row>- {/* Purely how the muscle map is drawn — nothing else in the app reads this. */}- <Row icon="figureStrength" iconTint="var(--teal)" title={t('Body diagram')}>- <Segmented- className="seg-inline"- options={[{ value: 'male', label: t('Male') }, { value: 'female', label: t('Female') }]}- value={S.body === 'female' ? 'female' : 'male'}- onChange={v => update(s => { s.body = v })}- />- </Row>- {/* The bar at the top that says the app is offline, kept local, or not synced (#369, #330).- Here and not under Server & sync, which a phone kept local never shows. */}- {!DEMO && <Row icon="cloud" iconTint="var(--blue)" title={t('Show connection status')}- subtitle={t('Off: the bar at the top is hidden. A dot on Home still warns when syncing is stuck.')}>- <Switch checked={S.connStatus !== false} onChange={v => update(s => { s.connStatus = v })} />- </Row>}- <div className="lrow" style={{ flexDirection: 'column', alignItems: 'stretch', gap: 12, paddingTop: 13, paddingBottom: 14 }}>- <span className="lrow-t">{t('Accent color')}</span>- <div className="swatches">- {Object.entries(ACCENTS).map(([k, c]) => (- <button key={k} className={'swatch' + ((S.accent || 'lime') === k ? ' on' : '')}- style={{ background: c }} onClick={() => { update(s => { s.accent = k }); setRestAccent(k) }} aria-label={t(ACCENT_NAMES[k] || k)} />- ))}+ look: () => <>+ <Section footer={DEMO || MOBILE ? undefined : t('synced with your profile')}>+ <Row icon="moon" iconTint="var(--indigo)" title={t('Theme')}>+ <Segmented+ className="seg-inline"+ options={[+ { value: 'dark', icon: 'moon', label: t('Dark') },+ { value: 'light', icon: 'sun', label: t('Light') },+ { value: 'system', icon: 'gear', label: t('System') },+ ]}+ value={S.theme || 'dark'}+ onChange={v => update(s => { s.theme = v })}+ />+ </Row>+ <div className="lrow" style={{ flexWrap: 'wrap', rowGap: 12, paddingBottom: 14 }}>+ <span className="lrow-i" style={{ '--tint': 'var(--purple)' }}><Icon name="palette" /></span>+ <span className="lrow-m"><span className="lrow-t">{t('Accent color')}</span></span>+ <span className="lrow-v">{t(ACCENT_NAMES[S.accent || 'lime'] || 'Green')}</span>+ <div className="swatches" style={{ flexBasis: '100%', paddingInlineStart: 41 }}>+ {Object.entries(ACCENTS).map(([k, c]) => (+ <button key={k} className={'swatch' + ((S.accent || 'lime') === k ? ' on' : '')}+ style={{ background: c }} onClick={() => { update(s => { s.accent = k }); setRestAccent(k) }} aria-label={t(ACCENT_NAMES[k] || k)} />+ ))}+ </div></div>+ {/* Purely how the muscle map is drawn; nothing else in the app reads this. */}+ <Row icon="figureStrength" iconTint="var(--teal)" title={t('Body diagram')}>+ <Segmented+ className="seg-inline"+ options={[{ value: 'male', label: t('Male') }, { value: 'female', label: t('Female') }]}+ value={S.body === 'female' ? 'female' : 'male'}+ onChange={v => update(s => { s.body = v })}+ />+ </Row>+ </Section>+ <Section title={t('On Home')}>+ {/* Membership QR codes on Home (views/CheckIn.jsx); off = no Home card, no route. */}+ <Row icon="qr" iconTint="var(--blue)" title={t('Gym check-in')}+ subtitle={t('Show a card on Home with your membership QR codes.')}>+ <Switch checked={S.checkIn !== false} onChange={v => update(s => { s.checkIn = v })} />+ </Row>+ {/* The Home summary is optional; hiding it leaves weight logging, history and Stats intact. */}+ <Row icon="scale" iconTint="var(--green)" title={t('Body weight')}+ subtitle={t('Show the body weight card on Home.')}>+ <Switch checked={S.showWeightCard !== false} onChange={v => update(s => { s.showWeightCard = v })} />+ </Row>+ {/* The bar at the top that says the app is offline, kept local, or not synced (#369, #330).+ Here and not under Server & sync, which a phone kept local never shows. */}+ {!DEMO && <Row icon="cloud" iconTint="var(--blue)" title={t('Show connection status')}+ subtitle={t('Off: the bar at the top is hidden. A dot on Home still warns when syncing is stuck.')}>+ <Switch checked={S.connStatus !== false} onChange={v => update(s => { s.connStatus = v })} />+ </Row>}+ </Section>+ </>,++ data: () => <>+ <Section title={t('Back up')}>+ <Row icon="share" iconTint="var(--blue)" title={t('Export backup (JSON)')} subtitle={hasMedia ? t('Without photos and videos') : undefined} accessory="chevron" onClick={doExport} />+ {hasMedia && <Row icon="share" iconTint="var(--blue)" title={t('Export with photos & videos (.zip)')} accessory="chevron" onClick={doExportZip} />}+ {/* 14 is AUTO_BACKUP_KEEP in lib/mobile.js, written out because the Settings tests mock+ that module wholesale; mobile.autobackup.test.js pins the two together. */}+ {MOBILE && <Row icon="folder" iconTint="var(--blue)" title={t('Auto-backup on changes')}+ subtitle={autoBackupSubtitle(android && S.autoBackup ? backupDir : null, 14)}>+ <Switch checked={!!S.autoBackup} onChange={v => update(s => { s.autoBackup = v })} />+ </Row>}+ {/* Android only: the system folder picker (#161). iOS shows Documents in Files already. */}+ {MOBILE && android && S.autoBackup && <BackupFolderRow />}+ </Section>+ <Section title={t('Bring data in')}>+ <Row icon="download" iconTint="var(--teal)" title={t('Import backup')} accessory="chevron" onClick={() => fileRef.current.click()} />+ <Row icon="download" iconTint="var(--teal)" title={t('Import from another app')}+ subtitle={t('FitNotes, Strong, Hevy, or body weight from Apple Health')}+ accessory="chevron" onClick={() => importRef.current.click()} />+ <Row icon="key" iconTint="var(--teal)" title={t('Import from Hevy')}+ subtitle={t('Pull your history with a Hevy Pro API key')}+ accessory="chevron" onClick={importFromHevy} />+ </Section>+ {hasMedia && <Section><MediaRow /></Section>}+ <Section>+ <Row icon="trash" iconTint="var(--red)" title={t('Reset everything')} danger onClick={resetEverything} />+ </Section>+ <input ref={fileRef} type="file" accept=".json,.zip,application/json,application/zip" style={{ display: 'none' }} onChange={doImport} />+ {/* Reset after reading so picking the same file twice still fires onChange. */}+ <input ref={importRef} type="file" accept=".csv,.xml,text/csv,text/xml" style={{ display: 'none' }}+ onChange={ev => { const f = ev.target.files[0]; if (f) importFromApp(f); ev.target.value = '' }} />+ </>,++ about: () => <>+ {/* Updates. On Android the row is always there: it checks on demand and installs when a+ release is newer (checksum verified, see onUpdateRowClick). On the web the app updates+ with its server, so the row points at the APK for the phone instead. iOS has no APK. */}+ <Section footer={MOBILE ? (android ? t('Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.') : null) : t('The web app updates together with your server. The Android app installs its own updates from here.')}>+ <Row icon="info" iconTint="var(--grey)" title={t('Version')} value={'v' + __APP_VERSION__} />+ {MOBILE+ ? android && <Row icon="download" iconTint="var(--green)"+ title={updateInfo?.hasUpdate ? t('Update to openGym v{0}', updateInfo.latestVersion) : t('Check for updates')}+ subtitle={checking ? t('Checking…') : t('You have v{0}', __APP_VERSION__)}+ accessory="chevron"+ onClick={() => (updateInfo?.hasUpdate ? onUpdateRowClick() : checkNow())} />+ : <Row icon="download" iconTint="var(--green)" title={t('Get the Android app')}+ subtitle={t('Download the APK from opengym.duarte-santos.ch')} accessory="chevron"+ onClick={() => window.open('https://opengym.duarte-santos.ch/#download', '_blank', 'noopener')} />}+ </Section>+ {/* "Add to Home screen": not inside the phone app, and not once it is installed. */}+ {!MOBILE && !standalone() && <Section title={t('Tip')}>+ <Row icon="share" iconTint="var(--blue)"+ title={IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : t('In Safari: Share → Add to Home Screen')}+ subtitle={t('to install openGym as a full-screen app.') + ' ' + (user ? t('Your data syncs with your profile. Sign in anywhere and it’s there.') : t('Guest data stays on this device, so export a backup now and then!'))} />+ </Section>}+ {/* The version, where the support template tells people to look for it. On the phone+ build there is no address bar and no about box, so without this there is no way to tell+ which build you are running, or whether an update actually installed. */}+ <div className="dim small sp-version">+ openGym v{__APP_VERSION__} · {t('free & open source (AGPL v3)')}<br />+ <a href="https://github.com/DuarteSantos8/openGym" target="_blank" rel="noopener">{t('Source code')}</a> · exercise data: hasaneyldrm/exercises-dataset (MIT)<br />+ exercise images and animations © <a href="https://gymvisual.com/" target="_blank" rel="noopener">Gym visual</a></div>- </Section>+ </>,- {/* ---------- data: fill it, bring things over, back it up, wipe it ---------- */}- <Section title={t('Data')}>- <Row icon="sparkles" iconTint="var(--acc)" title={t('Load starter plan')} accessory="chevron" onClick={starterPlanSheet} />- <Row icon="shuffle" iconTint="var(--teal)" title={t('Import from another app')}- subtitle={t('FitNotes, Strong, Hevy, or body weight from Apple Health')}- accessory="chevron" onClick={() => importRef.current.click()} />- <Row icon="key" iconTint="var(--teal)" title={t('Import from Hevy')}- subtitle={t('Pull your history with a Hevy Pro API key')}- accessory="chevron" onClick={importFromHevy} />- <Row icon="upload" iconTint="var(--blue)" title={t('Import backup')} accessory="chevron" onClick={() => fileRef.current.click()} />- <Row icon="download" iconTint="var(--blue)" title={t('Export backup (JSON)')} subtitle={hasMedia ? t('Without photos and videos') : undefined} accessory="chevron" onClick={doExport} />- {hasMedia && <Row icon="download" iconTint="var(--blue)" title={t('Export with photos & videos (.zip)')} accessory="chevron" onClick={doExportZip} />}- {hasMedia && <MediaRow />}- {/* 14 is AUTO_BACKUP_KEEP in lib/mobile.js, written out because the Settings tests mock- that module wholesale; mobile.autobackup.test.js pins the two together. */}- {MOBILE && <Row icon="history" iconTint="var(--blue)" title={t('Auto-backup on changes')}- subtitle={autoBackupSubtitle(android && S.autoBackup ? backupDir : null, 14)}>- <Switch checked={!!S.autoBackup} onChange={v => update(s => { s.autoBackup = v })} />- </Row>}- {/* Android only: the system folder picker (#161). iOS shows Documents in Files already. */}- {MOBILE && android && S.autoBackup && <BackupFolderRow />}- <Row icon="trash" iconTint="var(--red)" title={t('Reset everything')} danger onClick={resetEverything} />- </Section>- <input ref={fileRef} type="file" accept=".json,.zip,application/json,application/zip" style={{ display: 'none' }} onChange={doImport} />- {/* Reset after reading so picking the same file twice still fires onChange. */}- <input ref={importRef} type="file" accept=".csv,.xml,text/csv,text/xml" style={{ display: 'none' }}- onChange={ev => { const f = ev.target.files[0]; if (f) importFromApp(f); ev.target.value = '' }} />+ account: () => <>+ {/* The server: which one, which account, how that stands, "Sync now". A paired phone's+ Admin and Disconnect sit in the same block; a browser's account rows follow in their own. */}+ {user && !DEMO && <ServerSyncSection>+ {MOBILE && <>+ {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}+ <AccountIdRow id={user.id} />+ <Row icon="signOut" iconTint="var(--red)" title={t('Disconnect')} danger onClick={disconnect} />+ </>}+ </ServerSyncSection>}++ {/* account (demo and mobile builds have nothing to sign in to) */}+ {!(MOBILE && user) && <Section title={MOBILE ? t('Your data') : DEMO ? t('Demo') : t('Account')}>+ {MOBILE ? <>+ <Row icon="lock" iconTint="var(--acc)" title={t('All data stays on this phone')} subtitle={t('No account, no cloud. Back it up anytime in Data & backup.')} />+ <Row icon="link" iconTint="var(--indigo)" title={t('Connect to my server')} subtitle={t('Sync this device to your own self-hosted openGym instead.')} accessory="chevron"+ onClick={connectServer} />+ <KeptChangesRows />+ </> : DEMO ? <>+ <Row icon="sparkles" iconTint="var(--acc)" title={t('You’re in the demo')} subtitle={t('Example data, stored only in this browser. Go wild and change anything you like.')} />+ <Row icon="reset" iconTint="var(--blue)" title={t('Reset demo data')} accessory="chevron"+ onClick={() => confirmSheet({ title: t('Reset demo data?'), message: t('Puts the example plan, workouts and weigh-ins back the way they started.'), confirmText: t('Reset'), onConfirm: () => { resetDemo(); nav('/home'); toast(t('Demo data reset')) } })} />+ <Row icon="rocket" iconTint="var(--indigo)" title={t('Self-host openGym')} subtitle={t('Passkey sign-in, sync across your devices, your own data.')} accessory="chevron"+ onClick={() => window.open(REPO, '_blank', 'noopener')} />+ </> : user ? <>+ {user.admin && <Row icon="wrench" iconTint="var(--indigo)" title={t('Admin dashboard')} accessory="chevron" onClick={() => nav('/admin')} />}+ <PasskeysRow state={passkeys.st} changed={credsChanged} />+ <DeviceLinkRow state={passkeys.st} />+ <Row icon="link" iconTint="var(--blue)" title={t('Pair the mobile app')} subtitle={t('Connect the openGym app on your phone to this account.')} accessory="chevron"+ onClick={() => useUI.getState().openSheet(close => <PairSheet close={close} />)} />+ {pwOn && <PasswordRow version={credsV} />}+ <Row icon="signOut" iconTint="var(--red)" title={t('Sign out')} danger onClick={signOutHere} />+ <Row icon="shield" iconTint="var(--red)" title={t('Sign out everywhere')} subtitle={t('Ends this profile’s sessions on all your devices.')} danger onClick={signOutEverywhere} />+ <AccountIdRow id={user.id} />+ </> : webauthnOK() ? <>+ <Row icon="sparkles" iconTint="var(--acc)" title={t('Create passkey profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={registerHere} />+ <Row icon="person" iconTint="var(--blue)" title={t('Sign in with passkey')} accessory="chevron" onClick={passkeySignIn} />+ {pwOn && <Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} />}+ <KeptChangesRows />+ </> : pwOn ? <>+ {/* No passkeys in this browser (plain http on a LAN address, say): a password is the way in. */}+ <Row icon="sparkles" iconTint="var(--acc)" title={t('Create new profile')} subtitle={t('Keeps your data safe and separate per person.')} accessory="chevron" onClick={openPasswordRegister} />+ <Row icon="key" iconTint="var(--orange)" title={t('Sign in with password')} accessory="chevron" onClick={() => openPasswordSignIn()} />+ <KeptChangesRows />+ </> : <>+ <Row icon="lock" iconTint="var(--grey)" title={t('Passkeys not supported in this browser.')} />+ <KeptChangesRows />+ </>}+ </Section>}+ {!user && !DEMO && !MOBILE && <p className="sect-f" style={{ marginTop: -18, marginBottom: 22 }}>{t('Guest mode: your data lives only in this browser.')}</p>}+ </>,+ }- {/* "Add to Home screen" makes no sense inside the native app */}- {!MOBILE && <Section title={t('Tip')}>- <Row icon="lightbulb" iconTint="var(--yellow)"- title={IS_ANDROID ? t('In Chrome: ⋮ menu → Add to Home screen') : t('In Safari: Share → Add to Home Screen')}- subtitle={t('to install openGym as a full-screen app.') + ' ' + (user ? t('Your data syncs with your profile. Sign in anywhere and it’s there.') : t('Guest data stays on this device, so export a backup now and then!'))} />- </Section>}+ /* ---------------- a page ---------------- */+ if (page && pages[page]) {+ const parent = PAGES[page].parent+ return <div className="narrow" ref={body}>+ <div className="sp-nav">+ <button className="sp-back" onClick={back} aria-label={t('Back')}>+ <Icon name="chevronLeft" /><span>{parent ? t(PAGES[parent].title) : t('Settings')}</span>+ </button>+ <h1 className="sp-title">{t(PAGES[page].title)}</h1>+ </div>+ {pages[page]()}+ </div>+ }- {/* ---------- updates: the last thing on the page, so keeping openGym current is one tap ----------- On Android the row is always there — it checks on demand and installs when a release is- newer (checksum verified, see onUpdateRowClick). On the web the app updates with its- server, so the row points at the APK for the phone instead. iOS has no APK: nothing. */}- {(!MOBILE || android) && <Section title={t('Updates')}- footer={MOBILE ? t('Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.') : t('The web app updates together with your server. The Android app installs its own updates from here.')}>- {MOBILE- ? <Row icon="download" iconTint="var(--acc)"- title={updateInfo?.hasUpdate ? t('Update to openGym v{0}', updateInfo.latestVersion) : t('Check for updates')}- subtitle={checking ? t('Checking…') : t('You have v{0}', __APP_VERSION__)}- accessory="chevron"- onClick={() => (updateInfo?.hasUpdate ? onUpdateRowClick() : checkNow())} />- : <Row icon="download" iconTint="var(--acc)" title={t('Get the Android app')}- subtitle={t('Download the APK from opengym.duarte-santos.ch')} accessory="chevron"- onClick={() => window.open('https://opengym.duarte-santos.ch/#download', '_blank', 'noopener')} />}- </Section>}+ /* ---------------- the root ---------------- */+ return <SettingsRoot ctx={ctx} preview={preview} open={open} user={user} sync={sync}+ home={() => { lastQuery = ''; nav('/home') }} go={(hit) => {+ if (hit.page === 'coach') { nav('/coach/setup'); return }+ nav('/settings/' + hit.page, hit.isPage ? undefined : { state: { find: hit.title } })+ }} />+}- {/* The version, at the bottom of Settings — which is where the support template has been- telling people to look for it, and where it was not. On the phone build there is no- address bar and no about box, so without this there is no way to tell which build you- are running, or whether an update actually installed. */}- <div className="dim small" style={{ textAlign: 'center', marginTop: 4, lineHeight: 1.6 }}>- openGym v{__APP_VERSION__} · {t('free & open source (AGPL v3)')}<br />- <a href="https://github.com/DuarteSantos8/openGym" target="_blank" rel="noopener">source code</a> · exercise data: hasaneyldrm/exercises-dataset (MIT)<br />- exercise images and animations © <a href="https://gymvisual.com/" target="_blank" rel="noopener">Gym visual</a>+function SettingsRoot({ ctx, preview, open, user, sync, home, go }) {+ const [q, setQ] = useState(lastQuery)+ const set = v => { lastQuery = v; setQ(v) }+ const hits = q.trim() ? searchSettings(q, ctx) : null+ // The account card: who this is, and the one line that matters about it.+ const acct = DEMO ? { title: t('Demo'), sub: t('Example data, only in this browser.') }+ : user ? {+ title: user.name || t('Account'),+ sub: sync && sync.status && sync.status !== 'ok' ? t('Sync needs a look') : MOBILE ? t('Synced with your server') : t('Account, devices and sync'),+ }+ : MOBILE ? { title: t('This phone'), sub: t('All data stays on this phone') }+ : { title: t('Guest'), sub: t('Your data lives on this device. Sign in to sync.') }+ const initial = user && !DEMO ? String(user.name || '?').trim().charAt(0).toUpperCase() : null+ return <div className="narrow">+ <div className="sp-nav">+ <button className="sp-back" onClick={home} aria-label={t('Home')}><Icon name="chevronLeft" /><span>{t('Home')}</span></button>+ </div>+ <h1 className="sp-root-title">{t('Settings')}</h1>+ <div className="sp-search">+ <SearchField value={q} onChange={e => set(e.target.value)} onClear={() => set('')}+ placeholder={t('Search…')} aria-label={t('Search settings')} inputMode="search" enterKeyHint="search" autoComplete="off" /></div>+ {hits ? (hits.length ? <Section title={tn('{0} result', '{0} results', hits.length)}>+ {hits.slice(0, 40).map(h => (+ <Row key={h.page + ':' + h.title} icon={h.icon} iconTint={h.tint} title={h.label} subtitle={h.trail} accessory="chevron" onClick={() => go(h)} />+ ))}+ </Section> : <div className="sp-empty">{t('No setting matches “{0}”.', q.trim())}</div>) : <>+ <Section>+ <button className="lrow tap sp-acct" onClick={() => open('account')}>+ <span className={'sp-avatar' + (initial ? ' on' : '')} aria-hidden="true">{initial || <Icon name="personCircle" />}</span>+ <span className="lrow-m"><span className="lrow-t">{acct.title}</span><span className="lrow-s">{acct.sub}</span></span>+ <Icon name="chevronRight" className="lrow-c" />+ </button>+ </Section>+ {ROOT_GROUPS.map(g => g.filter(id => pageVisible(id, ctx))).filter(g => g.length).map(g => (+ <Section key={g[0]}>+ {g.map(id => <Row key={id} icon={PAGES[id].icon} iconTint={PAGES[id].tint} title={t(PAGES[id].title)}+ value={preview[id]?.() || null} accessory="chevron" onClick={() => open(id)} />)}+ </Section>+ ))}+ <div className="dim small sp-version">openGym v{__APP_VERSION__}</div>+ </>}</div>}@@ -689,35 +895,6 @@ const EFFORT_ROWS = [// against. Not where the stepper starts; + walks up from the bottom of the scale.const EFFORT_TYPICAL = 2-// Settings → During a workout → Workout controls. S.wc overlays DEF.wc, so a profile from-// before this setting existed reads as the lean default.-function WorkoutControlsSheet() {- const S = useStore(s => s.S)- const update = useStore(s => s.update)- const wc = workoutControls(S)- const set = (k, v) => update(s => { s.wc = { ...workoutControls(s), [k]: v } })- return <>- <h3>{t('Workout controls')}</h3>- <div className="muted small" style={{ marginBottom: 12 }}>{t('Everything hidden here stays one tap away: the ⋯ button of an exercise and the number of a set.')}</div>- <Section>- <Row icon="plus" iconTint="var(--acc)" title={t('Weight and reps buttons')} subtitle={t('Off: tap the number and type it')}>- <Switch checked={wc.steppers} onChange={v => set('steppers', v)} />- </Row>- <Row icon="bolt" iconTint="var(--orange)" title={t('Drop and burst shortcuts on every set')}>- <Switch checked={wc.setShortcuts} onChange={v => set('setShortcuts', v)} />- </Row>- <Row icon="link" iconTint="var(--blue)" title={t('Superset buttons in the exercise header')}>- <Switch checked={wc.pairButtons} onChange={v => set('pairButtons', v)} />- </Row>- <Row icon="shuffle" iconTint="var(--teal)" title={t('Move, swap and remove buttons below the exercise')}>- <Switch checked={wc.exerciseButtons} onChange={v => set('exerciseButtons', v)} />- </Row>- </Section>- </>-}-function workoutControlsSheet() {- useUI.getState().openSheet(() => <WorkoutControlsSheet />)-}// Download progress sheet — receives a ref callback that exposes a (received, total) setter.// Uses forwardRef so the caller can push byte counts in without re-rendering the whole Settings tree.diff --git a/frontend/src/views/Settings.logref.test.jsx b/frontend/src/views/Settings.logref.test.jsxindex 7a3518906..36632da4e 100644--- a/frontend/src/views/Settings.logref.test.jsx+++ b/frontend/src/views/Settings.logref.test.jsx@@ -69,7 +69,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="workout" />))const row = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Shown under each exercise'))const choose = label => {act(() => { row().click() })diff --git a/frontend/src/views/Settings.media.test.jsx b/frontend/src/views/Settings.media.test.jsxindex 1e380fd55..c6c32b8eb 100644--- a/frontend/src/views/Settings.media.test.jsx+++ b/frontend/src/views/Settings.media.test.jsx@@ -101,7 +101,7 @@ afterEach(() => {host.remove()_setMediaStore(null)})-const mount = async () => { act(() => root.render(<Settings />)); await settle() }+const mount = async () => { act(() => root.render(<Settings page="data" />)); await settle() }describe('Settings — photos and videos', () => {it('the JSON export says it leaves them out, the zip row and the Photos & videos row appear', async () => {diff --git a/frontend/src/views/Settings.nudge.test.jsx b/frontend/src/views/Settings.nudge.test.jsxindex 67e5eacd1..8cf0b3be1 100644--- a/frontend/src/views/Settings.nudge.test.jsx+++ b/frontend/src/views/Settings.nudge.test.jsx@@ -78,7 +78,7 @@ afterEach(() => {host.remove()})-const mount = async () => { await act(async () => { root.render(<Settings />) }) }+const mount = async () => { await act(async () => { root.render(<Settings page="reminders" />) }) }const row = text => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes(text))const nudgeRow = () => row('Nudge me when I skip a planned workout')const toneRow = () => row('Nudge tone')diff --git a/frontend/src/views/Settings.passkeys.test.jsx b/frontend/src/views/Settings.passkeys.test.jsxindex 1d07e27e4..082f25e66 100644--- a/frontend/src/views/Settings.passkeys.test.jsx+++ b/frontend/src/views/Settings.passkeys.test.jsx@@ -83,7 +83,7 @@ const asked = path => mocks.api.mock.calls.filter(([p]) => p === path).lengthdescribe('Settings: passkeys and another device', () => {it('a signed-in browser lists its passkeys and offers a code for another device, in Account', async () => {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()const account = section(page, 'Account')expect(titles(account)).toEqual(expect.arrayContaining(['Passkeys', 'Add another device']))@@ -96,7 +96,7 @@ describe('Settings: passkeys and another device', () => {it('a guest gets neither, and nothing is asked', async () => {mocks.user = null- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(titles(page)).not.toContain('Passkeys')expect(titles(page)).not.toContain('Add another device')@@ -107,7 +107,7 @@ describe('Settings: passkeys and another device', () => {const list = mocks.listmocks.list = {}try {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(titles(page)).not.toContain('Passkeys')expect(titles(page)).not.toContain('Add another device')@@ -123,21 +123,21 @@ describe('Settings: passkeys and another device', () => {if (path === '/api/account/passkeys' || path === '/api/account/password') throw Object.assign(new Error('HTTP 502'), { status: 502, data: {} })return answer(path)})- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(titles(section(page, 'Account'))).not.toEqual(expect.arrayContaining(['Passkeys']))expect(titles(section(page, 'Account'))).not.toContain('Password')mocks.api.mockImplementation(answer)mocks.sync = { ...mocks.sync, lastSynced: mocks.sync.lastSynced + 30000 } // a check that found both sides in step- act(() => mounted.at(-1).root.render(<Settings />))+ act(() => mounted.at(-1).root.render(<Settings page="account" />))await settle()expect(titles(section(page, 'Account'))).toEqual(expect.arrayContaining(['Passkeys', 'Add another device', 'Password']))expect(asked('/api/account/passkeys')).toBe(2)expect(asked('/api/account/password')).toBe(2)mocks.sync = { ...mocks.sync, lastSynced: mocks.sync.lastSynced + 30000 }- act(() => mounted.at(-1).root.render(<Settings />))+ act(() => mounted.at(-1).root.render(<Settings page="account" />))await settle()expect(asked('/api/account/passkeys')).toBe(2)expect(asked('/api/account/password')).toBe(2)@@ -150,10 +150,10 @@ describe('Settings: passkeys and another device', () => {return answer(path)})try {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()mocks.sync = { ...mocks.sync, lastSynced: mocks.sync.lastSynced + 30000 }- act(() => mounted.at(-1).root.render(<Settings />))+ act(() => mounted.at(-1).root.render(<Settings page="account" />))await settle()expect(titles(page)).not.toContain('Passkeys')expect(asked('/api/account/passkeys')).toBe(1)@@ -161,7 +161,7 @@ describe('Settings: passkeys and another device', () => {})it('a change to the passkeys reads the list and the password row again', async () => {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(asked('/api/account/passkeys')).toBe(1)expect(asked('/api/account/password')).toBe(1)diff --git a/frontend/src/views/Settings.password.test.jsx b/frontend/src/views/Settings.password.test.jsxindex 2c4f40815..e2c8185ee 100644--- a/frontend/src/views/Settings.password.test.jsx+++ b/frontend/src/views/Settings.password.test.jsx@@ -79,14 +79,14 @@ afterEach(() => { act(() => { mounted.splice(0).forEach(({ root, host }) => { rodescribe('Settings with password sign-in', () => {it('a signed-in browser gets a Password row in Account — and none on an instance without it', async () => {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()const account = section(page, 'Account')expect(titles(account)).toContain('Password')expect(rowByTitle(account, 'Password').textContent).toContain('Not set. Handy for signing in where passkeys don’t work.')mocks.config = null- const off = mount(<Settings />)+ const off = mount(<Settings page="account" />)await settle()expect(titles(section(off, 'Account'))).not.toContain('Password')})@@ -95,7 +95,7 @@ describe('Settings with password sign-in', () => {mocks.user = nullmocks.sync = nullmocks.webauthn = false- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const account = section(page, 'Account')expect(titles(account)).toEqual(['Create new profile', 'Sign in with password'])act(() => rowByTitle(account, 'Sign in with password').click())@@ -103,13 +103,13 @@ describe('Settings with password sign-in', () => {expect(sheet.querySelector('h3').textContent).toBe('Sign in with password')mocks.config = null- const off = mount(<Settings />)+ const off = mount(<Settings page="account" />)expect(titles(section(off, 'Account'))).toEqual(['Passkeys not supported in this browser.'])})it('"Sign in" after the server ended the session asks which way; the passkey is one tap on it', async () => {mocks.sync = { status: 'auth', offline: false, pending: true, auth: true, lastError: { status: 401 }, lastSynced: 0, server: null }- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const row = rowByTitle(section(page, 'Server & sync'), 'Sign in')expect(row).toBeTruthy()act(() => row.click())diff --git a/frontend/src/views/Settings.reset.test.jsx b/frontend/src/views/Settings.reset.test.jsxindex bc67eb3ce..5b7660922 100644--- a/frontend/src/views/Settings.reset.test.jsx+++ b/frontend/src/views/Settings.reset.test.jsx@@ -82,7 +82,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="data" />))const resetRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Reset everything'))const openDialog = () => {act(() => { resetRow().click() })@@ -154,9 +154,9 @@ describe('Settings — reset everything', () => {})describe('Settings — footer', () => {- it('links the source code to its home on GitHub', () => {- mount()- const link = [...host.querySelectorAll('a')].find(a => a.textContent === 'source code')+ it('links the source code to its home on GitHub, on About & updates', () => {+ act(() => root.render(<Settings page="about" />))+ const link = [...host.querySelectorAll('a')].find(a => a.textContent === 'Source code')expect(link.getAttribute('href')).toBe('https://github.com/DuarteSantos8/openGym')})})diff --git a/frontend/src/views/Settings.schedule.test.jsx b/frontend/src/views/Settings.schedule.test.jsxindex a325c265f..d10faf7d5 100644--- a/frontend/src/views/Settings.schedule.test.jsx+++ b/frontend/src/views/Settings.schedule.test.jsx@@ -1,5 +1,5 @@// @vitest-environment happy-dom-// Settings → Scheduling: the control's selection is DERIVED from the live queue (never stored),+// Settings → Plan & schedule → How you train: the control's selection is DERIVED from the live queue (never stored),// Fixed Week clears the pass after confirming and keeps the rotation, and Rotation// either starts a pass from the saved sequence or sends you to Plan.import React, { act } from 'react'@@ -64,13 +64,13 @@ beforeEach(() => {})afterEach(() => { act(() => root.unmount()); host.remove() })-const mount = over => { mocks.S = baseS(over); act(() => root.render(<Settings />)) }-// the two-option Segmented rendered by the Scheduling row+const mount = over => { mocks.S = baseS(over); act(() => root.render(<Settings page="plan" />)) }+// the two-option Segmented rendered by the How you train rowconst seg = () => [...host.querySelectorAll('button')].filter(b => ['Fixed Week', 'Rotation'].includes(b.textContent))const pick = label => act(() => seg().find(b => b.textContent === label).dispatchEvent(new MouseEvent('click', { bubbles: true })))const selected = () => seg().find(b => b.className.includes('on'))?.textContent-describe('Settings — Scheduling', () => {+describe('Settings — How you train (Plan & schedule)', () => {it('selects Fixed Week without a usable queue, Rotation with one this app manages', () => {mount()expect(selected()).toBe('Fixed Week')@@ -91,7 +91,7 @@ describe('Settings — Scheduling', () => {expect(selected()).toBe('Rotation')})- it('a planner-written queue makes Scheduling read-only text, not a control to flip', () => {+ it('a planner-written queue makes How you train read-only text, not a control to flip', () => {// No rotationId, and no S.rotation to match it against — this app does not own the queue.mount({ queue: { ids: ['a', 'b'], since: Date.now(), startsOn: todayISO(), label: 'US W1' } })expect(seg()).toEqual([])diff --git a/frontend/src/views/Settings.server-sync.test.jsx b/frontend/src/views/Settings.server-sync.test.jsxindex 030b737b0..56642097c 100644--- a/frontend/src/views/Settings.server-sync.test.jsx+++ b/frontend/src/views/Settings.server-sync.test.jsx@@ -92,7 +92,7 @@ const openSheet = (i = -1) => mount(mocks.sheets.at(i).render(() => {}))describe('Server & sync', () => {it('a paired phone in step: server, account, "All synced" with the time, and Sync now reporting back', async () => {- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const b = block(page)expect(b).toBeTruthy()expect(rowByTitle(b, 'gym.example.com').textContent).toContain('Signed in as andi')@@ -108,7 +108,7 @@ describe('Server & sync', () => {it('refused by the server: says so, how much is waiting, and offers "Pair again" with the address filled in', async () => {mocks.sync = sync('auth', { auth: true, pending: true, lastSynced: Date.now() - 2 * 86400000, lastError: { status: 401, code: 'auth' } })mocks.unsynced = { owed: true, count: 3 }- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const b = block(page)const status = rowByTitle(b, 'The server refuses this phone')expect(status.textContent).toContain('Last synced: 2 days ago')@@ -127,7 +127,7 @@ describe('Server & sync', () => {// server." (Android QA, v1.3.9). The status row says it; the server row says there is no address.it('a phone an earlier version unpaired says it is not connected once, and that its address is unknown', () => {mocks.sync = sync('auth', { auth: true, pending: true, server: null, lastError: { status: 0, code: 'not-paired' } })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const b = block(page)expect(rowByTitle(b, 'Server address unknown').textContent).toContain('Signed in as andi')expect([...b.querySelectorAll('.lrow-t')].filter(el => el.textContent === 'This phone is not connected to a server.')).toHaveLength(1)@@ -138,7 +138,7 @@ describe('Server & sync', () => {mocks.MOBILE = falsemocks.sync = sync('error', { pending: true, lastError: { status: 502, code: 'http' } })mocks.unsynced = { owed: true, count: 1 }- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)const status = rowByTitle(block(page), 'Server error (HTTP 502)')expect(status.textContent).toContain('Not synced with this server yet')expect(status.textContent).toContain('Not on your server yet: 1 change')@@ -148,7 +148,7 @@ describe('Server & sync', () => {it('while everything is fine, a change still in its debounce is not counted as waiting', () => {mocks.unsynced = { owed: true, count: 1 }- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)expect(rowByTitle(block(page), 'All synced').textContent).not.toContain('Not on your server yet')})@@ -156,7 +156,7 @@ describe('Server & sync', () => {mocks.user = nullmocks.sync = sync('local', { server: null })mocks.kept = [{ server: BASE, uid: 'u1', name: 'andi', at: 1 }]- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(block(page)).toBeUndefined()const kept = rowByTitle(page, 'Changes kept for andi')@@ -168,7 +168,7 @@ describe('Server & sync', () => {mocks.MOBILE = falsemocks.user = { id: 'u2', name: 'bea' }mocks.kept = [{ server: BASE, uid: 'u1', name: 'andi', at: 1 }]- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)await settle()expect(rowByTitle(block(page), 'Changes kept for andi')).toBeTruthy()})@@ -179,7 +179,7 @@ describe('leaving the server', () => {it('Disconnect no longer promises a sync it did not check, and goes straight through when nothing is waiting', async () => {mocks.disconnectServer.mockResolvedValueOnce({ owed: false })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())expect(confirm().message).not.toMatch(/synced to your server first/)expect(confirm().message).toContain('checks that your server has every change')@@ -192,7 +192,7 @@ describe('leaving the server', () => {it('with changes waiting it asks: how many, try again, export, or disconnect anyway — which keeps them', async () => {mocks.disconnectServer.mockResolvedValueOnce({ owed: true, count: 2 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())await act(async () => { await confirm().onConfirm() })expect(mocks.navs).toEqual([]) // nothing left, nothing wiped@@ -214,7 +214,7 @@ describe('leaving the server', () => {it('"Try again" syncs, and leaves once the server has everything', async () => {mocks.disconnectServer.mockResolvedValueOnce({ owed: true, count: 1 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())await act(async () => { await confirm().onConfirm() })const sheet = openSheet()@@ -234,7 +234,7 @@ describe('leaving the server', () => {it('refused by the server, "Try again" makes way for "Pair again" — pairing is what brings the changes over', async () => {mocks.sync = sync('auth', { auth: true, pending: true, lastError: { status: 401, code: 'auth' } })mocks.disconnectServer.mockResolvedValueOnce({ owed: true, count: null })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())await act(async () => { await confirm().onConfirm() })const sheet = openSheet()@@ -251,7 +251,7 @@ describe('leaving the server', () => {mocks.MOBILE = falsemocks.sync = sync('auth', { auth: true, pending: true, lastError: { status: 401, code: 'auth' } })mocks.signOut.mockResolvedValueOnce({ owed: true, count: 2 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Sign out').click())await act(async () => { await confirm().onConfirm() })const sheet = openSheet()@@ -262,7 +262,7 @@ describe('leaving the server', () => {it('a server that is only out of reach still offers Try again, and says so', async () => {mocks.disconnectServer.mockResolvedValueOnce({ owed: true, count: 1 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())await act(async () => { await confirm().onConfirm() })const sheet = openSheet()@@ -272,7 +272,7 @@ describe('leaving the server', () => {it('a copy that cannot be kept aside is not wiped either, and it says so', async () => {mocks.disconnectServer.mockResolvedValueOnce({ owed: true, count: 1 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Disconnect').click())await act(async () => { await confirm().onConfirm() })const sheet = openSheet()@@ -285,7 +285,7 @@ describe('leaving the server', () => {it('browser: Sign out checks first too, and "Sign out everywhere" says paired phones have to be paired again', async () => {mocks.MOBILE = falsemocks.signOut.mockResolvedValueOnce({ owed: true, count: 4 })- const page = mount(<Settings />)+ const page = mount(<Settings page="account" />)act(() => rowByTitle(page, 'Sign out').click())expect(confirm().message).not.toMatch(/synced to your profile first/)await act(async () => { await confirm().onConfirm() })diff --git a/frontend/src/views/Settings.sound.test.jsx b/frontend/src/views/Settings.sound.test.jsxindex 7e4df258e..ceff2d2ed 100644--- a/frontend/src/views/Settings.sound.test.jsx+++ b/frontend/src/views/Settings.sound.test.jsx@@ -74,66 +74,66 @@ afterEach(() => {setAudioSession(undefined)})-const mount = () => act(() => root.render(<Settings />))+const mount = (page = 'alerts') => act(() => root.render(<Settings page={page} />))const rowTitled = title => [...host.querySelectorAll('.lrow')].find(r => r.querySelector('.lrow-t')?.textContent === title)const switchIn = row => row.querySelector('[role="switch"]') || row.querySelector('input[type="checkbox"]') || row.querySelector('button')describe('Settings — play sounds when the phone is on silent', () => {- it('is offered on a browser with an audio session (iOS), under Sounds, with the music trade-off spelled out', () => {+ it('is offered on a browser with an audio session (iOS), under the sound rows, with the music trade-off spelled out', () => {mount()- const row = rowTitled('Play sounds when the phone is on silent')+ const row = rowTitled('Play even on silent')expect(row).toBeTruthy()- expect(row.querySelector('.lrow-s').textContent).toBe('Music playing on this phone stops during a workout and does not resume by itself.')+ expect(row.querySelector('.lrow-s').textContent).toBe('Music playing on this phone stops during a workout and does not resume by itself.iPhone only')const rows = [...host.querySelectorAll('.lrow')]- expect(rows.indexOf(row)).toBe(rows.indexOf(rowTitled('Sounds')) + 1)+ expect(rows.indexOf(row)).toBe(rows.indexOf(rowTitled('Sound')) + 1)})it('is not offered where the browser has no audio session API', () => {setAudioSession(undefined)mount()- expect(rowTitled('Play sounds when the phone is on silent')).toBeUndefined()+ expect(rowTitled('Play even on silent')).toBeUndefined()})it('is not offered on macOS Safari, which has the API but no ring/silent switch', () => {Object.defineProperty(navigator, 'userAgent', { value: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15', configurable: true })Object.defineProperty(navigator, 'maxTouchPoints', { value: 0, configurable: true })mount()- expect(rowTitled('Play sounds when the phone is on silent')).toBeUndefined()+ expect(rowTitled('Play even on silent')).toBeUndefined()})it('is not offered while Sounds is off', () => {mocks.S.sound = falsemount()- expect(rowTitled('Play sounds when the phone is on silent')).toBeUndefined()+ expect(rowTitled('Play even on silent')).toBeUndefined()})it('writes soundOnSilent to the store', () => {mount()- const sw = switchIn(rowTitled('Play sounds when the phone is on silent'))+ const sw = switchIn(rowTitled('Play even on silent'))expect(sw).toBeTruthy()act(() => { sw.click() })expect(mocks.S.soundOnSilent).toBe(true)})})-describe('Settings — Sounds switch unlocks audio from the tap', () => {+describe('Settings — Play a sound unlocks audio from the tap', () => {it('turning Sounds on unlocks; turning it off does not', () => {mocks.S.sound = falsemount()- act(() => { switchIn(rowTitled('Sounds')).click() })+ act(() => { switchIn(rowTitled('Play a sound')).click() })expect(mocks.S.sound).toBe(true)expect(unlock).toHaveBeenCalledWith(true)unlock.mockClear()mount()- act(() => { switchIn(rowTitled('Sounds')).click() })+ act(() => { switchIn(rowTitled('Play a sound')).click() })expect(mocks.S.sound).toBe(false)expect(unlock).not.toHaveBeenCalled()})})describe('Settings — optional timed-set overtime', () => {- it('offers the opt-in beside the timer alerts and writes the preference', () => {- mount()+ it('offers the opt-in in Fine-tuning and writes the preference', () => {+ mount('advanced')const row = rowTitled('Keep timing after target')expect(row).toBeTruthy()expect(row.querySelector('.lrow-s').textContent).toBe('Timed sets continue up to 15 extra minutes. Tap Done to log the actual duration.')@@ -156,8 +156,8 @@ describe('Settings — vibrate', () => {expect(row).toBeTruthy()expect(switchIn(row).getAttribute('aria-checked')).toBe('true')const rows = [...host.querySelectorAll('.lrow')]- expect(rows.indexOf(row)).toBeGreaterThan(rows.indexOf(rowTitled('Sounds')))- expect(rows.indexOf(row)).toBeLessThan(rows.indexOf(rowTitled('Flash screen when timer ends')))+ expect(rows.indexOf(row)).toBeGreaterThan(rows.indexOf(rowTitled('Play a sound')))+ expect(rows.indexOf(row)).toBeLessThan(rows.indexOf(rowTitled('Flash the screen')))})it('stays on offer with Sounds off: the buzz does not depend on the sound', () => {@@ -178,9 +178,37 @@ describe('Settings — vibrate', () => {expect(mocks.S.vibrate).toBe(true)})- it('is not offered where there is nothing to buzz (iOS has no navigator.vibrate)', () => {+ // v1.3.11: an iPhone user looking for Vibrate finds it, greyed out, with the reason.+ it('on an iPhone (no navigator.vibrate) the row stays, disabled, says "Not on iPhone" and explains below', () => {+ setVibrateApi(undefined)+ mount()+ const row = rowTitled('Vibrate')+ expect(row).toBeTruthy()+ expect(row.classList.contains('dis')).toBe(true)+ expect(row.querySelector('.lrow-s').textContent).toBe('Not on iPhone')+ expect(switchIn(row).disabled).toBe(true)+ expect(switchIn(row).getAttribute('aria-checked')).toBe('false')+ expect(host.textContent).toContain('iPhone doesn’t let openGym vibrate. A sound or a flash does the job.')+ })++ it('a desktop browser without vibration shows it disabled as not supported, with no iPhone footer', () => {setVibrateApi(undefined)+ Object.defineProperty(navigator, 'userAgent', { value: 'Mozilla/5.0 (X11; Linux x86_64) Gecko/20100101 Firefox/130.0', configurable: true })+ mount()+ expect(rowTitled('Vibrate').querySelector('.lrow-s').textContent).toBe('Not supported in this browser.')+ expect(host.textContent).not.toContain('iPhone doesn’t let openGym vibrate')+ })+})++describe('Settings — which sound', () => {+ it('shows the chime by default and Classic beeps for classicChime, only while sound is on', () => {+ mount()+ expect(rowTitled('Sound').querySelector('.lrow-v').textContent).toBe('Chime (louder)')+ mocks.S.classicChime = true+ mount()+ expect(rowTitled('Sound').querySelector('.lrow-v').textContent).toBe('Classic beeps')+ mocks.S.sound = falsemount()- expect(rowTitled('Vibrate')).toBeUndefined()+ expect(rowTitled('Sound')).toBeUndefined()})})diff --git a/frontend/src/views/Settings.speed.test.jsx b/frontend/src/views/Settings.speed.test.jsxindex 0922930ef..3786a579f 100644--- a/frontend/src/views/Settings.speed.test.jsx+++ b/frontend/src/views/Settings.speed.test.jsx@@ -65,7 +65,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="units" />))const segButton = label => [...host.querySelectorAll('.seg button')].find(b => b.textContent === label)describe('Settings — speed unit', () => {diff --git a/frontend/src/views/Settings.startfrom.test.jsx b/frontend/src/views/Settings.startfrom.test.jsxindex 9becc351d..11866a1a8 100644--- a/frontend/src/views/Settings.startfrom.test.jsx+++ b/frontend/src/views/Settings.startfrom.test.jsx@@ -69,7 +69,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="advanced" />))const row = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Planned sessions start from'))const choose = label => {act(() => { row().click() })diff --git a/frontend/src/views/Settings.update.test.jsx b/frontend/src/views/Settings.update.test.jsxindex 765cc5ec0..bb4846cc8 100644--- a/frontend/src/views/Settings.update.test.jsx+++ b/frontend/src/views/Settings.update.test.jsx@@ -83,7 +83,7 @@ afterEach(() => {// The effect resolves two promises (isAndroid, then checkForUpdate) before the row can render.const mount = async () => {- await act(async () => { root.render(<Settings />) })+ await act(async () => { root.render(<Settings page="about" />) })await act(async () => { await Promise.resolve(); await Promise.resolve() })}const updateRow = () => [...host.querySelectorAll('.lrow')].find(r => r.textContent.includes('Update to openGym v9.9.9'))diff --git a/frontend/src/views/Settings.vibrate-silent.test.jsx b/frontend/src/views/Settings.vibrate-silent.test.jsxindex e6298b977..0c23f4c10 100644--- a/frontend/src/views/Settings.vibrate-silent.test.jsx+++ b/frontend/src/views/Settings.vibrate-silent.test.jsx@@ -83,10 +83,10 @@ afterEach(() => {// The effect resolves two promises (isAndroid, then checkForUpdate) before the row can render.const mount = async () => {- await act(async () => { root.render(<Settings />) })+ await act(async () => { root.render(<Settings page="alerts" />) })await act(async () => { await Promise.resolve(); await Promise.resolve() })}-const TITLE = 'Vibrate when the phone is on silent'+const TITLE = 'Vibrate on silent too'const rowTitled = title => [...host.querySelectorAll('.lrow')].find(r => r.querySelector('.lrow-t')?.textContent === title)const switchIn = row => row.querySelector('[role="switch"]') || row.querySelector('input[type="checkbox"]') || row.querySelector('button')@@ -97,7 +97,7 @@ describe('Settings — vibrate when the phone is on silent', () => {await mount()const row = rowTitled(TITLE)expect(row).toBeTruthy()- expect(row.querySelector('.lrow-s').textContent).toBe('The end of a rest or a hold buzzes like an alarm, even in silent mode.')+ expect(row.querySelector('.lrow-s').textContent).toBe('The end of a rest or a hold buzzes like an alarm, even in silent mode.Android app only')const rows = [...host.querySelectorAll('.lrow')]expect(rows.indexOf(row)).toBe(rows.indexOf(rowTitled('Vibrate')) + 1)expect(switchIn(row).getAttribute('aria-checked')).toBe('false')diff --git a/frontend/src/views/Settings.workoutview.test.jsx b/frontend/src/views/Settings.workoutview.test.jsxindex a58b2d59d..809871c88 100644--- a/frontend/src/views/Settings.workoutview.test.jsx+++ b/frontend/src/views/Settings.workoutview.test.jsx@@ -63,7 +63,7 @@ afterEach(() => {host.remove()})-const mount = () => act(() => root.render(<Settings />))+const mount = () => act(() => root.render(<Settings page="workout" />))const segButton = label => [...host.querySelectorAll('.seg button')].find(b => b.textContent === label)describe('Settings — workout view', () => {diff --git a/frontend/src/views/Stats.jsx b/frontend/src/views/Stats.jsxindex 3501ffc9b..9aa57ba97 100644--- a/frontend/src/views/Stats.jsx+++ b/frontend/src/views/Stats.jsx@@ -326,7 +326,7 @@ function EffortCard({ S }) {</div><div className="small dim" style={{ marginTop: 8 }}>{t('{0} of {1} finished sets rated', sum.rated, sum.done)}</div>{effortOf(S) === 'none' && <div className="small" style={{ color: 'var(--yellow)', marginTop: 4 }}>- {t('Effort per set is switched off. Turn it on in Settings to keep rating.')}+ {t('Effort per set is off. Turn it on in Settings → Workout to keep rating.')}</div>}{pts.length > 1 && <><h4 className="sec" style={{ marginTop: 12 }}>{t('Week by week')}</h4>diff --git a/frontend/src/views/settings-pages.js b/frontend/src/views/settings-pages.jsnew file mode 100644index 000000000..5230e1495--- /dev/null+++ b/frontend/src/views/settings-pages.js@@ -0,0 +1,166 @@+// Settings (v1.3.11): which page each row lives on, and the index the search field reads.+//+// The root holds eleven rows in four groups plus the account card; each opens a page at+// /settings/<page>. Rare things hang one level further down (Workout → Fine-tuning). Titles here+// are the English keys the pages render with t(), so a search hit can find its row on the page+// by the same text and flash it (views/Settings.jsx). settings-pages.test.jsx renders every page+// and checks that each entry below really is a row there.+import { t } from '../lib/i18n.js'++export const PAGES = {+ workout: { title: 'Workout', icon: 'play', tint: 'var(--green)' },+ alerts: { title: 'Timer alerts', icon: 'speaker', tint: 'var(--pink)' },+ reminders: { title: 'Reminders', icon: 'bell', tint: 'var(--red)' },+ plan: { title: 'Plan & schedule', icon: 'calendar', tint: 'var(--orange)' },+ units: { title: 'Units & language', icon: 'ruler', tint: 'var(--teal)' },+ equipment: { title: 'Equipment', icon: 'plate', tint: 'var(--indigo)' },+ look: { title: 'Look & Home', icon: 'palette', tint: 'var(--purple)' },+ coach: { title: 'AI Coach', icon: 'sparkles', tint: 'var(--green)' },+ data: { title: 'Data & backup', icon: 'folder', tint: 'var(--blue)' },+ about: { title: 'About & updates', icon: 'info', tint: 'var(--grey)' },+ account: { title: 'Account', icon: 'personCircle', tint: 'var(--grey)' },+ advanced: { title: 'Fine-tuning', icon: 'wrench', tint: 'var(--grey)', parent: 'workout' },+}+export const PAGE_IDS = Object.keys(PAGES)++// The root, top to bottom. Whether a row shows is pageVisible's call.+export const ROOT_GROUPS = [['workout', 'alerts', 'reminders'], ['plan', 'units', 'equipment'], ['look', 'coach'], ['data', 'about']]++/**+ * Whether a page exists for this device and profile. Reminders need a push server (signed in) or+ * the phone's own notifications; the Coach page is the phone's Coach setup (the web app's Coach+ * runs on the server, set up by its admin).+ */+export function pageVisible(page, ctx) {+ if (page === 'reminders') return !!(ctx.user || ctx.mobile)+ if (page === 'coach') return !!ctx.mobile+ return page in PAGES+}++// One entry per row. `kw` is extra words people search for (English; the translated title and+// page name are searched too). `when` repeats the row's own visibility rule, so a search never+// offers a row the page would not show.+const signedInWeb = c => !!c.user && !c.mobile && !c.demo+export const SEARCH = [+ // Workout+ { page: 'workout', title: 'Rest timer', icon: 'timer', tint: 'var(--orange)', kw: 'rest pause break seconds minutes timer countdown' },+ { page: 'workout', title: 'Rest-pause rest', icon: 'bolt', tint: 'var(--orange)', kw: 'burst cluster rest pause' },+ { page: 'workout', title: 'Effort per set', icon: 'gauge', tint: 'var(--purple)', kw: 'rir rpe effort reps in reserve difficulty' },+ { page: 'workout', title: 'Shown under each exercise', icon: 'history', tint: 'var(--blue)', kw: 'last time best set reference previous' },+ { page: 'workout', title: 'Layout', icon: 'layout', tint: 'var(--blue)', kw: 'workout view cards list compact' },+ { page: 'workout', title: 'Weigh in before workouts', icon: 'scale', tint: 'var(--green)', kw: 'body weight weigh scale start' },+ { page: 'workout', title: 'Keep screen awake', icon: 'phoneScreen', tint: 'var(--yellow)', kw: 'wake lock screen sleep display on', when: c => c.wakeOK || !c.mobile },+ { page: 'workout', title: 'Exercise animations', icon: 'image', tint: 'var(--teal)', kw: 'gif animation video media pictures images' },+ { page: 'workout', title: 'Fine-tuning', icon: 'wrench', tint: 'var(--grey)', kw: 'advanced more options' },+ // Fine-tuning+ { page: 'advanced', title: 'Planned sessions start from', icon: 'clipboard', tint: 'var(--green)', kw: 'start from plan last session reps carry over' },+ { page: 'advanced', title: 'Keep timing after target', icon: 'stopwatch', tint: 'var(--orange)', kw: 'timed set overtime hold duration' },+ { page: 'advanced', title: 'Weight and reps buttons', icon: 'plusCircle', tint: 'var(--green)', kw: 'steppers plus minus buttons workout controls' },+ { page: 'advanced', title: 'Drop and burst shortcuts on every set', icon: 'bolt', tint: 'var(--orange)', kw: 'drop set burst shortcuts workout controls' },+ { page: 'advanced', title: 'Superset buttons in the exercise header', icon: 'link', tint: 'var(--blue)', kw: 'superset pair workout controls' },+ { page: 'advanced', title: 'Move, swap and remove buttons below the exercise', icon: 'swap', tint: 'var(--teal)', kw: 'move swap remove replace workout controls' },+ // Timer alerts+ { page: 'alerts', title: 'Play a sound', icon: 'speaker', tint: 'var(--pink)', kw: 'sound sounds audio beep chime volume' },+ { page: 'alerts', title: 'Sound', icon: 'bell', tint: 'var(--pink)', kw: 'classic timer sound beep chime tone', when: c => c.sound },+ { page: 'alerts', title: 'Play even on silent', icon: 'speaker', tint: 'var(--orange)', kw: 'silent mute ring switch iphone music', when: c => c.sound && c.playOnSilent },+ { page: 'alerts', title: 'Vibrate', icon: 'vibrate', tint: 'var(--indigo)', kw: 'vibrate vibration haptic haptics buzz' },+ { page: 'alerts', title: 'Vibrate on silent too', icon: 'vibrate', tint: 'var(--indigo)', kw: 'alarm silent vibrate android', when: c => c.mobile && c.android && c.canVibrate && c.vibrate },+ { page: 'alerts', title: 'Flash the screen', icon: 'sun', tint: 'var(--yellow)', kw: 'flash light blink screen' },+ // Reminders+ { page: 'reminders', title: 'Push notifications', icon: 'bell', tint: 'var(--red)', kw: 'push notification alerts', when: c => !c.mobile && c.user },+ { page: 'reminders', title: 'Workout day reminder', icon: 'calendar', tint: 'var(--orange)', kw: 'reminder notification remind' },+ { page: 'reminders', title: 'Nudge me when I skip a planned workout', icon: 'flame', tint: 'var(--red)', kw: 'nudge skip missed motivation' },+ // Plan & schedule+ { page: 'plan', title: 'How you train', icon: 'repeat', tint: 'var(--orange)', kw: 'scheduling schedule rotation fixed week split' },+ { page: 'plan', title: 'Week starts on', icon: 'calendar', tint: 'var(--orange)', kw: 'monday sunday first day week' },+ { page: 'plan', title: 'Load starter plan', icon: 'clipboard', tint: 'var(--green)', kw: 'starter template beginner program routine' },+ // Units & language+ { page: 'units', title: 'Language', icon: 'globe', tint: 'var(--blue)', kw: 'language translation idioma sprache langue lingua' },+ { page: 'units', title: 'English exercise names', icon: 'globe', tint: 'var(--purple)', kw: 'exercise names english translation', when: c => c.nameLang },+ { page: 'units', title: 'English names only', icon: 'globe', tint: 'var(--purple)', kw: 'exercise names english translation', when: c => c.nameLang },+ { page: 'units', title: 'Weight unit', icon: 'scale', tint: 'var(--teal)', kw: 'kg lb lbs pounds kilos kilograms unit' },+ { page: 'units', title: 'Weight decimals', icon: 'ruler', tint: 'var(--teal)', kw: 'decimals precision microplates rounding' },+ { page: 'units', title: 'Speed unit', icon: 'figureRun', tint: 'var(--teal)', kw: 'speed mph kmh km/h miles cardio' },+ // Equipment+ { page: 'equipment', title: 'Plates', icon: 'plate', tint: 'var(--orange)', kw: 'plates bar plate math barbell' },+ { page: 'equipment', title: 'Filter by equipment', icon: 'dumbbell', tint: 'var(--green)', kw: 'equipment filter home gym', when: c => c.profiles },+ { page: 'equipment', title: 'Active profile', icon: 'house', tint: 'var(--blue)', kw: 'equipment profile home gym', when: c => c.profiles },+ { page: 'equipment', title: 'Add equipment profile', icon: 'plusCircle', tint: 'var(--green)', kw: 'equipment profile home gym hotel' },+ // Look & Home+ { page: 'look', title: 'Theme', icon: 'moon', tint: 'var(--indigo)', kw: 'dark mode light mode theme appearance night' },+ { page: 'look', title: 'Accent color', icon: 'palette', tint: 'var(--purple)', kw: 'color colour accent tint' },+ { page: 'look', title: 'Body diagram', icon: 'figureStrength', tint: 'var(--teal)', kw: 'muscle map body male female' },+ { page: 'look', title: 'Gym check-in', icon: 'qr', tint: 'var(--blue)', kw: 'qr code membership card check in barcode' },+ { page: 'look', title: 'Body weight', icon: 'scale', tint: 'var(--green)', kw: 'weight card home' },+ { page: 'look', title: 'Show connection status', icon: 'cloud', tint: 'var(--blue)', kw: 'sync offline banner bar connection', when: c => !c.demo },+ // Data & backup+ { page: 'data', title: 'Export backup (JSON)', icon: 'share', tint: 'var(--blue)', kw: 'export backup json download save' },+ { page: 'data', title: 'Export with photos & videos (.zip)', icon: 'share', tint: 'var(--blue)', kw: 'zip media export backup', when: c => c.hasMedia },+ { page: 'data', title: 'Auto-backup on changes', icon: 'folder', tint: 'var(--blue)', kw: 'auto backup automatic', when: c => c.mobile },+ { page: 'data', title: 'Import backup', icon: 'download', tint: 'var(--teal)', kw: 'import restore backup json zip' },+ { page: 'data', title: 'Import from another app', icon: 'download', tint: 'var(--teal)', kw: 'strong hevy fitnotes apple health csv import' },+ { page: 'data', title: 'Import from Hevy', icon: 'key', tint: 'var(--teal)', kw: 'hevy api import' },+ { page: 'data', title: 'Photos & videos', icon: 'image', tint: 'var(--teal)', kw: 'media storage photos videos upload', when: c => c.hasMedia },+ { page: 'data', title: 'Reset everything', icon: 'trash', tint: 'var(--red)', kw: 'delete wipe reset erase' },+ // About & updates+ { page: 'about', title: 'Check for updates', icon: 'download', tint: 'var(--green)', kw: 'update apk android version', when: c => c.mobile && c.android },+ { page: 'about', title: 'Get the Android app', icon: 'download', tint: 'var(--green)', kw: 'apk android download app', when: c => !c.mobile },+ { page: 'about', title: 'Version', icon: 'info', tint: 'var(--grey)', kw: 'version about licence license source code open source' },+ // Account+ { page: 'account', title: 'Passkeys', icon: 'lock', tint: 'var(--acc)', kw: 'passkey security login', when: signedInWeb },+ { page: 'account', title: 'Add another device', icon: 'qr', tint: 'var(--blue)', kw: 'device link code phone computer', when: signedInWeb },+ { page: 'account', title: 'Pair the mobile app', icon: 'link', tint: 'var(--blue)', kw: 'pair phone app android iphone', when: signedInWeb },+ { page: 'account', title: 'Password', icon: 'key', tint: 'var(--orange)', kw: 'password login', when: c => signedInWeb(c) && c.pwOn },+ { page: 'account', title: 'Sign out', icon: 'signOut', tint: 'var(--red)', kw: 'log out logout sign out', when: signedInWeb },+ { page: 'account', title: 'Sign out everywhere', icon: 'shield', tint: 'var(--red)', kw: 'log out all devices sessions', when: signedInWeb },+ { page: 'account', title: 'Account ID', icon: 'person', tint: 'var(--grey)', kw: 'id uid admin account', when: c => !!c.user && !c.demo },+ { page: 'account', title: 'Admin dashboard', icon: 'wrench', tint: 'var(--indigo)', kw: 'admin users dashboard', when: c => !!c.user?.admin && !c.demo },+ { page: 'account', title: 'Disconnect', icon: 'signOut', tint: 'var(--red)', kw: 'disconnect server local', when: c => c.mobile && !!c.user },+ { page: 'account', title: 'Connect to my server', icon: 'link', tint: 'var(--indigo)', kw: 'server sync self-hosted connect', when: c => c.mobile && !c.user },+ { page: 'account', title: 'Sign in with passkey', icon: 'person', tint: 'var(--blue)', kw: 'login sign in log in passkey', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },+ { page: 'account', title: 'Sign in with password', icon: 'key', tint: 'var(--orange)', kw: 'login sign in log in password', when: c => !c.mobile && !c.demo && !c.user && c.pwOn },+ { page: 'account', title: 'Create passkey profile', icon: 'sparkles', tint: 'var(--acc)', kw: 'register account sign up create profile', when: c => !c.mobile && !c.demo && !c.user && c.webauthn },+ { page: 'account', title: 'Reset demo data', icon: 'reset', tint: 'var(--blue)', kw: 'demo reset example', when: c => c.demo },+]++// Lower case, accents and other marks dropped, so "théme", "Thème" and "theme" meet.+export const fold = s => String(s || '').normalize('NFD').replace(/\p{M}/gu, '').toLowerCase()++/** The trail a hit names under its title: "Workout" or "Workout › Fine-tuning". */+export function pageTrail(page, tr = t) {+ const p = PAGES[page]+ if (!p) return ''+ return p.parent ? tr(PAGES[p.parent].title) + ' › ' + tr(p.title) : tr(p.title)+}++/**+ * Settings rows matching a query, best first: every word of the query has to appear in the+ * row's title, its page, or its extra words (in English and in the app's language). A title+ * that starts with the query ranks first, then a title containing it, then the rest. Pages+ * themselves are hits too ("units" finds Units & language).+ */+export function searchSettings(query, ctx, tr = t) {+ const words = fold(query).trim().split(/\s+/).filter(Boolean)+ if (!words.length) return []+ const q = words.join(' ')+ const hits = []+ const consider = (entry, isPage) => {+ const title = tr(entry.title)+ const hay = fold([title, entry.title, entry.kw || '', isPage ? '' : pageTrail(entry.page, tr), isPage ? '' : PAGES[entry.page]?.title].join(' '))+ if (!words.every(w => hay.includes(w))) return+ const ft = fold(title)+ const rank = ft.startsWith(q) ? 0 : ft.includes(q) ? 1 : isPage ? 2 : 3+ hits.push({ ...entry, label: title, trail: isPage ? tr('Settings') : pageTrail(entry.page, tr), isPage, rank })+ }+ for (const id of PAGE_IDS) {+ const top = PAGES[id].parent ? PAGES[id].parent : id+ if (!pageVisible(top, ctx) || id === 'advanced') continue+ consider({ page: id, title: PAGES[id].title, icon: PAGES[id].icon, tint: PAGES[id].tint }, true)+ }+ for (const e of SEARCH) {+ if (!pageVisible(PAGES[e.page].parent || e.page, ctx)) continue+ if (e.when && !e.when(ctx)) continue+ consider(e, false)+ }+ return hits.sort((a, b) => a.rank - b.rank)+}diff --git a/frontend/src/views/settings-pages.test.jsx b/frontend/src/views/settings-pages.test.jsxnew file mode 100644index 000000000..60652e3bc--- /dev/null+++ b/frontend/src/views/settings-pages.test.jsx@@ -0,0 +1,281 @@+// @vitest-environment happy-dom+// Settings v1.3.11: the root, the pages, the search and the rest wheels. Every row the search+// knows has to be a row on its page, and every page and row title has a word in each pack.+import React, { act } from 'react'+import { createRoot } from 'react-dom/client'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'+import { PAGES, PAGE_IDS, ROOT_GROUPS, SEARCH, pageVisible, searchSettings, pageTrail, fold } from './settings-pages.js'++globalThis.IS_REACT_ACT_ENVIRONMENT = true++const mocks = vi.hoisted(() => {+ const state = { S: null, user: null, MOBILE: false, sheets: [], navs: [] }+ state.snapshot = () => ({+ S: state.S, user: state.user, coachLocal: null, sync: null, config: null,+ update: mut => { const next = structuredClone(state.S); mut(next); state.S = next },+ replaceState: vi.fn(), setUser: vi.fn(), pullState: vi.fn(), pushState: vi.fn(), setUnit: vi.fn(),+ resetEverything: vi.fn(), resetDemo: vi.fn(), importBackup: vi.fn(), importConflict: vi.fn(),+ })+ return state+})+vi.mock('../store/useStore.js', () => {+ const useStore = selector => selector ? selector(mocks.snapshot()) : mocks.snapshot()+ useStore.getState = mocks.snapshot+ return { useStore, DEF: { reminder: { time: '17:30' } }, hasData: () => false }+})+vi.mock('../store/useUI.js', () => {+ const snap = () => ({ toast: vi.fn(), openSheet: render => { mocks.sheets.push(render); return { close: vi.fn() } } })+ const useUI = selector => selector ? selector(snap()) : snap()+ useUI.getState = snap+ return { useUI }+})+vi.mock('react-router-dom', () => ({ useNavigate: () => (...a) => mocks.navs.push(a) }))+vi.mock('../lib/api.js', () => ({ api: vi.fn(() => Promise.resolve({})), webauthnOK: () => false, passkeyLogin: vi.fn(), passkeyRegister: vi.fn(), IS_ANDROID: false }))+vi.mock('../lib/push.js', () => ({ pushSupported: () => false, enablePush: vi.fn(), disablePush: vi.fn(), sendTestPush: vi.fn(), syncPushSubscription: vi.fn() }))+vi.mock('../lib/wakelock.js', () => ({ wakeLockSupported: () => true }))+vi.mock('../lib/mobile.js', () => ({ get MOBILE() { return mocks.MOBILE }, isAndroid: () => Promise.resolve(false), shareExport: vi.fn(), shareExportBlob: vi.fn(), syncReminder: vi.fn() }))+vi.mock('./MobileOnboarding.jsx', () => ({ ConnectSheet: () => null }))+vi.mock('../sheets.jsx', () => ({+ starterPlanSheet: vi.fn(), confirmSheet: vi.fn(), importFromApp: vi.fn(), importFromHevy: vi.fn(),+ equipmentProfileSheet: vi.fn(), plateInventorySheet: vi.fn(), menuSheet: vi.fn(),+}))++import Settings from './Settings.jsx'++globalThis.__APP_VERSION__ ??= 'test'++let host, root+beforeEach(() => {+ mocks.S = {+ unit: 'kg', restSec: 90, restPauseSec: 15, sound: true, vibrate: true, effort: 'none', gifSize: 'full', lang: 'en',+ workouts: [], routines: [], exWeights: {}, equipProfiles: [{ id: 'p1', name: 'Home', equipment: [] }], activeEquipId: 'p1',+ reminder: { on: false, time: '17:30' },+ }+ mocks.user = null+ mocks.MOBILE = false+ mocks.sheets = []+ mocks.navs = []+ Object.defineProperty(navigator, 'vibrate', { value: () => true, configurable: true, writable: true })+ host = document.createElement('div')+ document.body.appendChild(host)+ root = createRoot(host)+})+afterEach(() => {+ act(() => root.unmount())+ host.remove()+ delete navigator.vibrate+})++const mount = (page = null, find = null) => act(() => root.render(<Settings page={page} find={find} />))+const rowTitled = title => [...host.querySelectorAll('.lrow')].find(r => r.querySelector('.lrow-t')?.textContent === title)+const titles = () => [...host.querySelectorAll('.lrow .lrow-t')].map(e => e.textContent)++// This test's guest in a browser, as the page itself sees it.+const guestWeb = {+ user: null, mobile: false, android: false, demo: false, wakeOK: true, hasMedia: false, pwOn: false, webauthn: false,+ sound: true, playOnSilent: false, canVibrate: true, vibrate: true, profiles: true, nameLang: false,+}++describe('the root', () => {+ it('is an account card and one row per page, in the four groups, with value previews', () => {+ mount()+ expect(host.querySelector('.sp-acct .lrow-t').textContent).toBe('Guest')+ expect(host.querySelector('.sp-acct .lrow-s').textContent).toBe('Your data lives on this device. Sign in to sync.')+ // a guest in a browser has no reminders (no push server) and no Coach page (the server's Coach)+ expect(titles()).toEqual(['Guest', 'Workout', 'Timer alerts', 'Plan & schedule', 'Units & language', 'Equipment', 'Look & Home', 'Data & backup', 'About & updates'])+ expect(rowTitled('Workout').querySelector('.lrow-v').textContent).toBe('1:30 rest · Cards')+ expect(rowTitled('Timer alerts').querySelector('.lrow-v').textContent).toBe('Sound · Vibrate')+ expect(rowTitled('Plan & schedule').querySelector('.lrow-v').textContent).toMatch(/^Fixed Week · Mon/)+ expect(rowTitled('Units & language').querySelector('.lrow-v').textContent).toBe('kg · English')+ expect(rowTitled('Equipment').querySelector('.lrow-v').textContent).toBe('Everything')+ expect(rowTitled('About & updates').querySelector('.lrow-v').textContent).toMatch(/^v\d|^vtest/)+ })++ it('previews a rest that was never on the old list, and no timer at all', () => {+ mocks.S.restSec = 105+ mount()+ expect(rowTitled('Workout').querySelector('.lrow-v').textContent).toBe('1:45 rest · Cards')+ mocks.S.restSec = 0+ mount()+ expect(rowTitled('Workout').querySelector('.lrow-v').textContent).toBe('No rest timer · Cards')+ })++ it('signed in, Reminders is there and the card names the account; on the phone app the Coach too', () => {+ mocks.user = { id: 'u1', name: 'Dana' }+ mount()+ expect(titles()).toContain('Reminders')+ expect(titles()).not.toContain('AI Coach')+ expect(host.querySelector('.sp-acct .lrow-t').textContent).toBe('Dana')+ expect(host.querySelector('.sp-avatar').textContent).toBe('D')+ mocks.user = null+ mocks.MOBILE = true+ mount()+ expect(titles()).toContain('Reminders')+ expect(titles()).toContain('AI Coach')+ expect(host.querySelector('.sp-acct .lrow-t').textContent).toBe('This phone')+ })++ it('a row opens its page; the Coach row opens the phone Coach setup; the card opens Account', () => {+ mocks.MOBILE = true+ mount()+ act(() => rowTitled('Timer alerts').click())+ act(() => rowTitled('AI Coach').click())+ act(() => host.querySelector('.sp-acct').click())+ expect(mocks.navs).toEqual([['/settings/alerts'], ['/coach/setup'], ['/settings/account']])+ })++ it('searches every setting and a hit goes to its page with the row to flash', () => {+ mount()+ const input = host.querySelector('.sp-search input')+ const type = v => act(() => {+ const set = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set+ set.call(input, v)+ input.dispatchEvent(new Event('input', { bubbles: true }))+ })+ type('haptic')+ expect(titles()).toEqual(['Vibrate'])+ expect(host.querySelector('.lrow .lrow-s').textContent).toBe('Timer alerts')+ act(() => rowTitled('Vibrate').click())+ expect(mocks.navs.at(-1)).toEqual(['/settings/alerts', { state: { find: 'Vibrate' } }])+ type('zzzz')+ expect(host.querySelector('.sp-empty').textContent).toBe('No setting matches “zzzz”.')+ })+})++describe('the pages', () => {+ it('each search entry is a row on its page (guest in a browser)', () => {+ const byPage = {}+ for (const e of SEARCH) if (pageVisible(PAGES[e.page].parent || e.page, guestWeb) && (!e.when || e.when(guestWeb))) (byPage[e.page] ||= []).push(e.title)+ expect(Object.keys(byPage).sort()).toEqual(['about', 'advanced', 'alerts', 'data', 'equipment', 'look', 'plan', 'units', 'workout'])+ for (const [page, want] of Object.entries(byPage)) {+ mount(page)+ const have = titles()+ for (const title of want) expect(have, `${page}: ${title}`).toContain(title)+ }+ })++ it('every old row has a home: the Workout page holds the rest, logging and the before/during rows', () => {+ mount('workout')+ expect([...host.querySelectorAll('.sect-t')].map(e => e.textContent)).toEqual(['Rest', 'Logging', 'Before and during'])+ expect(titles()).toEqual(['Rest timer', 'Rest-pause rest', 'Effort per set', 'Shown under each exercise', 'Layout',+ 'Weigh in before workouts', 'Keep screen awake', 'Exercise animations', 'Fine-tuning'])+ mount('advanced')+ expect(titles()).toEqual(['Planned sessions start from', 'Keep timing after target', 'Weight and reps buttons',+ 'Drop and burst shortcuts on every set', 'Superset buttons in the exercise header', 'Move, swap and remove buttons below the exercise'])+ })++ it('the Fine-tuning switches write S.wc as the old Workout controls sheet did', () => {+ mount('advanced')+ act(() => rowTitled('Superset buttons in the exercise header').querySelector('[role="switch"]').click())+ expect(mocks.S.wc.pairButtons).toBe(true)+ })++ it('a sub-page names where back goes; Fine-tuning goes back to Workout', () => {+ mount('alerts')+ expect(host.querySelector('.sp-back').textContent).toBe('Settings')+ expect(host.querySelector('.sp-title').textContent).toBe('Timer alerts')+ mount('advanced')+ expect(host.querySelector('.sp-back').textContent).toBe('Workout')+ act(() => host.querySelector('.sp-back').click())+ expect(mocks.navs.at(-1)).toEqual(['/settings/workout', { replace: true }])+ })++ it('a search hit flashes its row', () => {+ mount('alerts', 'Flash the screen')+ expect(rowTitled('Flash the screen').classList.contains('sp-flash')).toBe(true)+ })+})++describe('the rest wheels', () => {+ const doneIn = sheet => {+ const close = vi.fn()+ const h = document.createElement('div'); document.body.appendChild(h)+ const r = createRoot(h)+ act(() => r.render(sheet(close)))+ return { h, r, close }+ }+ it('Rest timer opens the wheel and stores any value as seconds in restSec', () => {+ mount('workout')+ expect(rowTitled('Rest timer').querySelector('.lrow-v').textContent).toBe('1:30')+ act(() => rowTitled('Rest timer').click())+ const { h, r } = doneIn(mocks.sheets.at(-1))+ expect(h.querySelector('h3').textContent).toBe('Rest timer')+ const [min, sec] = h.querySelectorAll('[role="spinbutton"]')+ expect(min.getAttribute('aria-valuemax')).toBe('15')+ act(() => { sec.dispatchEvent(new KeyboardEvent('keydown', { key: 'PageUp', bubbles: true })) })+ act(() => { sec.dispatchEvent(new KeyboardEvent('keydown', { key: 'ArrowUp', bubbles: true })) })+ act(() => { [...h.querySelectorAll('button')].find(b => b.textContent === 'Done').click() })+ expect(mocks.S.restSec).toBe(101)+ act(() => r.unmount()); h.remove()+ mount('workout')+ expect(rowTitled('Rest timer').querySelector('.lrow-v').textContent).toBe('1:41')+ })++ it('0:00 is the timer off', () => {+ mocks.S.restSec = 0+ mount('workout')+ expect(rowTitled('Rest timer').querySelector('.lrow-v').textContent).toBe('Off')+ })++ it('Rest-pause rest uses the wheel too, 5 s to 5 minutes', () => {+ mount('workout')+ act(() => rowTitled('Rest-pause rest').click())+ const { h, r } = doneIn(mocks.sheets.at(-1))+ const [min, sec] = h.querySelectorAll('[role="spinbutton"]')+ expect(min.getAttribute('aria-valuemax')).toBe('5')+ act(() => { sec.dispatchEvent(new KeyboardEvent('keydown', { key: 'Home', bubbles: true })) })+ act(() => { [...h.querySelectorAll('button')].find(b => b.textContent === 'Done').click() })+ expect(mocks.S.restPauseSec).toBe(5)+ act(() => r.unmount()); h.remove()+ })+})++describe('searchSettings', () => {+ const tr = s => s+ it('matches titles, synonyms and pages, ignoring case and accents', () => {+ expect(searchSettings('Vibrate', guestWeb, tr).map(h => h.title)).toEqual(['Vibrate'])+ expect(searchSettings('buzz', guestWeb, tr).map(h => h.title)).toEqual(['Vibrate'])+ expect(searchSettings('pounds', guestWeb, tr).map(h => h.title)).toEqual(['Weight unit'])+ expect(searchSettings('dark mode', guestWeb, tr).map(h => h.title)).toEqual(['Theme'])+ expect(searchSettings('gif', guestWeb, tr).map(h => h.title)).toEqual(['Exercise animations'])+ expect(searchSettings('RÉST TIMER', guestWeb, tr)[0].title).toBe('Rest timer')+ expect(fold('Thème')).toBe('theme')+ })++ it('pages are hits too, and a title starting with the query comes first', () => {+ const hits = searchSettings('units', guestWeb, tr)+ expect(hits[0]).toMatchObject({ title: 'Units & language', isPage: true, page: 'units' })+ expect(searchSettings('rest', guestWeb, tr).slice(0, 2).map(h => h.title)).toEqual(['Rest timer', 'Rest-pause rest'])+ })++ it('names Fine-tuning under Workout, and keeps to the rows this device shows', () => {+ expect(pageTrail('advanced', tr)).toBe('Workout › Fine-tuning')+ expect(searchSettings('overtime', guestWeb, tr)[0].trail).toBe('Workout › Fine-tuning')+ expect(searchSettings('nudge', guestWeb, tr)).toEqual([]) // no Reminders for a web guest+ expect(searchSettings('nudge', { ...guestWeb, user: { id: 'u' } }, tr).map(h => h.title)).toEqual(['Nudge me when I skip a planned workout'])+ expect(searchSettings('coach', guestWeb, tr)).toEqual([])+ expect(searchSettings('coach', { ...guestWeb, mobile: true }, tr)[0].page).toBe('coach')+ expect(searchSettings('vibrate silent', { ...guestWeb, mobile: true, android: true }, tr).map(h => h.title)).toEqual(['Vibrate on silent too'])+ expect(searchSettings(' ', guestWeb, tr)).toEqual([])+ })++ it('searches in the app language as well', () => {+ const de = { Vibrate: 'Vibration', 'Timer alerts': 'Timer-Hinweise', Settings: 'Einstellungen' }+ const hits = searchSettings('vibration', guestWeb, s => de[s] || s)+ expect(hits[0]).toMatchObject({ title: 'Vibrate', label: 'Vibration', trail: 'Timer-Hinweise' })+ })+})++describe('translations', () => {+ const packs = import.meta.glob('../locales/*.js', { eager: true, import: 'default' })+ it('every page and searchable row title has a word in each pack', () => {+ const keys = [...new Set([...PAGE_IDS.map(id => PAGES[id].title), ...SEARCH.map(e => e.title)])]+ for (const [file, pack] of Object.entries(packs)) {+ const missing = keys.filter(k => !Object.hasOwn(pack, k) || !String(pack[k]).trim())+ expect(missing, file).toEqual([])+ }+ })+ it('the root groups only name real pages', () => {+ for (const g of ROOT_GROUPS) for (const id of g) expect(PAGES[id], id).toBeTruthy()+ })+})diff --git a/frontend/src/views/week-start.test.jsx b/frontend/src/views/week-start.test.jsxindex 36a510fad..7edd32db1 100644--- a/frontend/src/views/week-start.test.jsx+++ b/frontend/src/views/week-start.test.jsx@@ -70,7 +70,7 @@ const segButton = label => [...host.querySelectorAll('.seg button')].find(b => bconst dayRows = () => [...host.querySelectorAll('.item .tt')].map(e => e.textContent)describe('Settings — week starts on', () => {- const mount = () => act(() => root.render(<Settings />))+ const mount = () => act(() => root.render(<Settings page="plan" />))it('offers Monday and Sunday and writes the getDay() index', () => {mount()