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
Merge stores (62d37fcd: widgets, Live Activity, Apple Health) into watch, build 33
Duarte Santosf155e36c000f
diff --cc .github/workflows/ios.ymlindex 26d75a6dd,61722ec9e..95f54eceb--- a/.github/workflows/ios.yml+++ b/.github/workflows/ios.yml@@@ -45,15 -45,9 +45,18 @@@ jobs# The asset pack downloader extension, until the project with it is committed (does nothing then).- run: ruby ios/ci/add-asset-downloader.rbworking-directory: frontend+ # The Apple Watch app (ios/App/Watch), added to the project for the run and embedded in App.app.+ - run: ruby ios/ci/add-watch-app.rb+ working-directory: frontend+ # The watch's session logic and the animation codec, tested on the Mac (no simulator).+ - name: WatchCore tests+ working-directory: frontend/ios/App/WatchCore+ run: |+ set -o pipefail+ swift test 2>&1 | tail -60+ # The widgets and the Live Activity's extension, likewise until it is committed.+ - run: ruby ios/ci/add-widgets.rb+ working-directory: frontend- name: Build for the simulatorworking-directory: frontend/ios/Apprun: |@@@ -86,48 -80,23 +89,65 @@@cat build/console.log | grep -v "^\s*$" | head -200if grep -q "not implemented on ios" build/console.log; then echo "::error::a plugin the page uses is missing on iOS"; exit 1; figrep -q "RestAlert" build/console.log || { echo "::error::the page never reached the RestAlert plugin"; exit 1; }+ echo "$UDID" > build/udid.txt+ # The widgets and the Live Activity as pictures, light and dark (App/WidgetPreview.swift draws+ # them with made-up data): nobody can put a widget on a simulator's Home Screen without a Mac.+ - name: Draw the widgets+ working-directory: frontend/ios/App+ run: |+ UDID=$(cat build/udid.txt)+ xcrun simctl terminate "$UDID" ch.opengym.app 2>/dev/null || true+ xcrun simctl launch "$UDID" ch.opengym.app -OpenGymWidgetPreview+ DATA=$(xcrun simctl get_app_container "$UDID" ch.opengym.app data)+ for i in $(seq 60); do test -f "$DATA/Documents/widget-preview/done.txt" && break; sleep 2; done+ mkdir -p build/widgets+ cp "$DATA"/Documents/widget-preview/*.png build/widgets/ 2>/dev/null || true+ ls -la build/widgets+ test -f "$DATA/Documents/widget-preview/done.txt" || { echo "::error::the widget pictures were never drawn"; exit 1; }+ # The extension really is in the app, with its own Info.plist.+ test -f build/dd/Build/Products/Debug-iphonesimulator/App.app/PlugIns/OpenGymWidgets.appex/Info.plist || { echo "::error::no widget extension in the app"; exit 1; }+ # The watch app on its own in a watch simulator, with the demo session it carries+ # (SessionStore.demoJSON: text only, no exercise media), for a look at it.+ - name: Show the watch app+ continue-on-error: true+ working-directory: frontend/ios/App+ run: |+ APP=build/dd/Build/Products/Debug-watchsimulator/OpenGymWatch.app+ test -d "$APP" || { echo "::warning::no watch app was built"; exit 1; }+ if ! xcrun simctl list runtimes | grep -q watchOS; then xcodebuild -downloadPlatform watchOS || true; fi+ mkdir -p build/watch+ # Every screen on a small and a large watch: 41 or 42 mm, 45 or 46 mm.+ for size in small large; do+ UDID=$(xcrun simctl list devices available -j | SIZE=$size node -e '+ const d = JSON.parse(require("fs").readFileSync(0)).devices+ const all = Object.entries(d).filter(([k]) => k.includes("watchOS")).flatMap(([, v]) => v).filter(x => /Apple Watch/.test(x.name))+ const re = process.env.SIZE === "small" ? /\((40|41|42)mm\)/ : /\((44|45|46)mm\)/+ const pick = all.filter(x => re.test(x.name) && !/Ultra|SE/.test(x.name)).pop() || all.filter(x => re.test(x.name)).pop()+ process.stdout.write(pick ? pick.udid + " " + pick.name.replace(/[^A-Za-z0-9]+/g, "-") : "")')+ test -n "$UDID" || { echo "::warning::no $size watch simulator"; continue; }+ NAME=${UDID#* }; UDID=${UDID%% *}+ xcrun simctl boot "$UDID" || true+ xcrun simctl bootstatus "$UDID" -b+ xcrun simctl install "$UDID" "$APP"+ # A synthetic clip (a square moving, made with ffmpeg for the tests; no exercise media)+ # in the app's own container, to show the animation path renders.+ DATA=$(xcrun simctl get_app_container "$UDID" ch.opengym.app.watchkitapp data 2>/dev/null || true)+ CLIP=""+ if [ -n "$DATA" ]; then mkdir -p "$DATA/tmp" && cp ../WatchCore/Tests/WatchCoreTests/Fixtures/synthetic-square.webp "$DATA/tmp/clip.webp" && CLIP="$DATA/tmp/clip.webp"; fi+ for screen in idle empty set weight rest finish; do+ xcrun simctl terminate "$UDID" ch.opengym.app.watchkitapp 2>/dev/null || true+ if [ "$screen" = set ] && [ -n "$CLIP" ]; then+ xcrun simctl launch "$UDID" ch.opengym.app.watchkitapp -OpenGymWatchDemo -OpenGymWatchScreen "$screen" -OpenGymWatchDemoClip "$CLIP"+ else+ xcrun simctl launch "$UDID" ch.opengym.app.watchkitapp -OpenGymWatchDemo -OpenGymWatchScreen "$screen"+ fi+ sleep 6+ xcrun simctl io "$UDID" screenshot "build/watch/$size-$screen.png"+ done+ echo "$size: $NAME" >> build/watch/devices.txt+ xcrun simctl shutdown "$UDID" || true+ done+ ls -la build/watch- uses: actions/upload-artifact@v6if: always()with:@@@ -136,7 -105,7 +156,8 @@@frontend/ios/App/build/xcodebuild.logfrontend/ios/App/build/console.logfrontend/ios/App/build/first-screen.png+ frontend/ios/App/build/watch+ frontend/ios/App/build/widgetsretention-days: 7# A walk through the app in the simulator (ios/App/AppUITests): a rest that ends while the app@@@ -160,8 -129,9 +181,11 @@@working-directory: frontend- run: ruby ios/ci/add-asset-downloader.rbworking-directory: frontend+ - run: ruby ios/ci/add-watch-app.rb+ working-directory: frontend+ # The widgets and the Live Activity's extension, likewise until it is committed.+ - run: ruby ios/ci/add-widgets.rb+ working-directory: frontend- run: ruby ios/ci/add-ui-tests.rbworking-directory: frontend- name: Run the UI tests@@@ -213,8 -183,9 +237,11 @@@working-directory: frontend- run: ruby ios/ci/add-asset-downloader.rbworking-directory: frontend+ - run: ruby ios/ci/add-watch-app.rb+ working-directory: frontend+ # The widgets and the Live Activity's extension, likewise until it is committed.+ - run: ruby ios/ci/add-widgets.rb+ working-directory: frontend- name: Archive, unsignedworking-directory: frontend/ios/Apprun: |diff --cc frontend/ios/App/App.xcodeproj/project.pbxprojindex 90439321f,c1f2a7a55..fd3bf82bc--- a/frontend/ios/App/App.xcodeproj/project.pbxproj+++ b/frontend/ios/App/App.xcodeproj/project.pbxproj@@@ -24,8 -24,12 +24,14 @@@AA0300000000000000000002 /* DeviceAuthPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0300000000000000000001 /* DeviceAuthPlugin.swift */; };AA0400000000000000000002 /* AnimationPacksPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0400000000000000000001 /* AnimationPacksPlugin.swift */; };AA0300000000000000000004 /* NudgeCheckPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0300000000000000000003 /* NudgeCheckPlugin.swift */; };- AA0500000000000000000002 /* WatchBridgePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000001 /* WatchBridgePlugin.swift */; };+ AA0500000000000000000002 /* AppleHealthPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000001 /* AppleHealthPlugin.swift */; };+ AA0500000000000000000004 /* WidgetBridgePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000003 /* WidgetBridgePlugin.swift */; };+ AA0500000000000000000006 /* LiveActivityPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000005 /* LiveActivityPlugin.swift */; };+ AA0500000000000000000008 /* WorkoutActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000007 /* WorkoutActivity.swift */; };+ AA0500000000000000000010 /* WidgetViews.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000009 /* WidgetViews.swift */; };+ AA0500000000000000000012 /* WidgetPreview.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0500000000000000000011 /* WidgetPreview.swift */; };++ AA0700000000000000000002 /* WatchBridgePlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0700000000000000000001 /* WatchBridgePlugin.swift */; };+ AA0600000000000000000002 /* ClipCodec.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA0600000000000000000001 /* ClipCodec.swift */; };/* End PBXBuildFile section *//* Begin PBXFileReference section */@@@ -51,8 -55,12 +57,14 @@@AA0400000000000000000001 /* AnimationPacksPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimationPacksPlugin.swift; sourceTree = "<group>"; };AA0400000000000000000003 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };AA0300000000000000000003 /* NudgeCheckPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NudgeCheckPlugin.swift; sourceTree = "<group>"; };- AA0500000000000000000001 /* WatchBridgePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchBridgePlugin.swift; sourceTree = "<group>"; };+ AA0500000000000000000001 /* AppleHealthPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppleHealthPlugin.swift; sourceTree = "<group>"; };+ AA0500000000000000000003 /* WidgetBridgePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetBridgePlugin.swift; sourceTree = "<group>"; };+ AA0500000000000000000005 /* LiveActivityPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiveActivityPlugin.swift; sourceTree = "<group>"; };+ AA0500000000000000000007 /* WorkoutActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WorkoutActivity.swift; sourceTree = "<group>"; };+ AA0500000000000000000009 /* WidgetViews.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetViews.swift; sourceTree = "<group>"; };+ AA0500000000000000000011 /* WidgetPreview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetPreview.swift; sourceTree = "<group>"; };++ AA0700000000000000000001 /* WatchBridgePlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchBridgePlugin.swift; sourceTree = "<group>"; };+ AA0600000000000000000001 /* ClipCodec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ClipCodec.swift; path = ../WatchCore/Sources/WatchCore/ClipCodec.swift; sourceTree = "<group>"; };/* End PBXFileReference section *//* Begin PBXFrameworksBuildPhase section */@@@ -107,8 -115,12 +119,14 @@@AA0400000000000000000001 /* AnimationPacksPlugin.swift */,AA0400000000000000000003 /* App.entitlements */,AA0300000000000000000003 /* NudgeCheckPlugin.swift */,- AA0500000000000000000001 /* WatchBridgePlugin.swift */,+ AA0500000000000000000001 /* AppleHealthPlugin.swift */,+ AA0500000000000000000003 /* WidgetBridgePlugin.swift */,+ AA0500000000000000000005 /* LiveActivityPlugin.swift */,+ AA0500000000000000000007 /* WorkoutActivity.swift */,+ AA0500000000000000000009 /* WidgetViews.swift */,+ AA0500000000000000000011 /* WidgetPreview.swift */,++ AA0700000000000000000001 /* WatchBridgePlugin.swift */,+ AA0600000000000000000001 /* ClipCodec.swift */,AA0200000000000000000007 /* PrivacyInfo.xcprivacy */,504EC30B1FED79650016851F /* Main.storyboard */,504EC30E1FED79650016851F /* Assets.xcassets */,@@@ -254,8 -266,12 +272,14 @@@AA0300000000000000000002 /* DeviceAuthPlugin.swift in Sources */,AA0400000000000000000002 /* AnimationPacksPlugin.swift in Sources */,AA0300000000000000000004 /* NudgeCheckPlugin.swift in Sources */,- AA0500000000000000000002 /* WatchBridgePlugin.swift in Sources */,+ AA0500000000000000000002 /* AppleHealthPlugin.swift in Sources */,+ AA0500000000000000000004 /* WidgetBridgePlugin.swift in Sources */,+ AA0500000000000000000006 /* LiveActivityPlugin.swift in Sources */,+ AA0500000000000000000008 /* WorkoutActivity.swift in Sources */,+ AA0500000000000000000010 /* WidgetViews.swift in Sources */,+ AA0500000000000000000012 /* WidgetPreview.swift in Sources */,++ AA0700000000000000000002 /* WatchBridgePlugin.swift in Sources */,+ AA0600000000000000000002 /* ClipCodec.swift in Sources */,);runOnlyForDeploymentPostprocessing = 0;};@@@ -395,7 -411,7 +419,7 @@@ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;CODE_SIGN_ENTITLEMENTS = App/App.entitlements;CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 31;- CURRENT_PROJECT_VERSION = 32;++ CURRENT_PROJECT_VERSION = 33;INFOPLIST_FILE = App/Info.plist;IPHONEOS_DEPLOYMENT_TARGET = 15.5;LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";@@@ -416,7 -439,7 +447,7 @@@ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;CODE_SIGN_ENTITLEMENTS = App/App.entitlements;CODE_SIGN_STYLE = Automatic;- CURRENT_PROJECT_VERSION = 31;- CURRENT_PROJECT_VERSION = 32;++ CURRENT_PROJECT_VERSION = 33;INFOPLIST_FILE = App/Info.plist;IPHONEOS_DEPLOYMENT_TARGET = 15.5;LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";diff --cc frontend/ios/App/App/MainViewController.swiftindex cced3e090,74b45045c..e07403103--- a/frontend/ios/App/App/MainViewController.swift+++ b/frontend/ios/App/App/MainViewController.swift@@@ -24,7 -24,10 +24,11 @@@ class MainViewController: CAPBridgeViewbridge?.registerPluginInstance(DeviceAuthPlugin())bridge?.registerPluginInstance(AnimationPacksPlugin())bridge?.registerPluginInstance(NudgeCheckPlugin())+ bridge?.registerPluginInstance(WatchBridgePlugin())+ bridge?.registerPluginInstance(AppleHealthPlugin())+ bridge?.registerPluginInstance(WidgetBridgePlugin())+ bridge?.registerPluginInstance(LiveActivityPlugin())+ WidgetPreview.runIfAsked()// After loadView has finished: the view is the web view only once it has.if ProcessInfo.processInfo.arguments.contains(MainViewController.pendingProbeArgument) {DispatchQueue.main.async { [weak self] in self?.showPendingProbe() }diff --cc frontend/src/App.jsxindex 21d5632c4,198e6907b..6298de3c2--- a/frontend/src/App.jsx+++ b/frontend/src/App.jsx@@@ -14,8 -13,8 +14,10 @@@ import { workoutVolume } from './lib/hiimport { setSystemBarsLight } from './lib/system-bars.js'import { initBackButton } from './lib/back.js'import { installEdgeSwipeBack, BACK_PREVIEW_EVENT } from './lib/edge-swipe-back.js'+import { startWatchSync, bindWatchAppActions, patchSetIn } from './lib/watch-sync.js'+import { stampWorkout } from './lib/sync-merge.js'+ import { startWidgetSync } from './lib/widgets.js'+ import { startLiveActivitySync } from './lib/live-activity.js'import { useWakeLock } from './lib/wakelock.js'import { installViewportGuard } from './lib/viewport-guard.js'import { installChipDrag } from './lib/hchips.js'@@@ -329,23 -328,15 +331,33 @@@ export default function App()}, [])// iOS: swipe from the left edge for the page's own back button (lib/edge-swipe-back.js)useEffect(() => installEdgeSwipeBack(), [])+ // iPhone app with an Apple Watch: the running workout goes to the watch, its ticks come back+ // (lib/watch-sync.js). Nothing at all on the web, on Android, or without a paired watch.+ useEffect(() => {+ if (!MOBILE) return+ let stop = null, gone = false+ startWatchSync({ useStore, useUI }).then(fn => { if (gone) fn(); else stop = fn })+ // A session started on the watch starts here as the phone's Start does, with the watch's id+ // and start time, and no weigh-in question (the lifter is at the watch, not here).+ const unbind = bindWatchAppActions({+ start: (ids, opts) => beginWorkout(ids, null, opts),+ patchSet: (where, fields, opts = {}) => useStore.getState().update(s => {+ patchSetIn(s, where, fields, stampWorkout, { ...opts, recount: w => { w.vol = workoutVolume(w) } })+ }),+ // Ticks from the watch are the workout screen's to apply: it opens, and drains the queue.+ openWorkout: () => { if (!String(window.location.hash || '').startsWith('#/workout')) navToWorkout() },+ })+ return () => { gone = true; stop?.(); unbind() }+ }, [])+ // iPhone app: the Home Screen widgets and the workout's Live Activity (lib/widgets.js,+ // lib/live-activity.js). Nothing at all on the web or on Android.+ useEffect(() => {+ if (!MOBILE) return+ const stops = [], gone = { v: false }+ const keep = fn => { if (gone.v) fn(); else stops.push(fn) }+ startWidgetSync({ useStore }).then(keep).catch(() => {})+ startLiveActivitySync({ useStore, useUI }).then(keep).catch(() => {})+ return () => { gone.v = true; stops.forEach(fn => fn()) }+ }, [])return <HashRouter><Shell /></HashRouter>}diff --cc frontend/src/locales/ar.jsindex 7a8aa18a9,2e6223da0..8c8bf2913--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@@ -2410,16 -2410,24 +2410,39 @@@ export default'Skip completed exercises': 'تخطّي التمارين المكتملة',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'لا يستطيع هذا التطبيق التأكيد بمفتاح مرور. أنشئ الرمز في متصفح مسجّل الدخول إلى هذا الملف الشخصي، أو أضف كلمة مرور هناك أولًا.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'الوزن',+ 'Send workouts to the watch': 'إرسال التمارين إلى الساعة',- 'Apple Health on the watch': 'صحتي على الساعة',++ 'Open on the watch': 'افتح على الساعة',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'ابدأ تمرينًا على الهاتف وسيظهر openGym على معصمك.',++ 'Not allowed': 'غير مسموح',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'فعّل Apple صحتي وستقيس الساعة نبضك في كل مجموعة.',+ 'Tap the wrist when a rest is over': 'نقرة على المعصم عند انتهاء الراحة',+ 'The Digital Crown turns first': 'التاج الرقمي يغيّر أولًا',+ 'No Apple Watch paired with this iPhone': 'لا توجد Apple Watch مقترنة بهذا الـ iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym ليس على Apple Watch بعد. ثبّته من تطبيق Watch.',+ 'openGym is on your Apple Watch': 'openGym موجود على Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'غير مسموح على الساعة. اسمح به من تطبيق صحتي على iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'النبض أثناء التمرين وبجانب كل مجموعة، والتمرين محفوظ في صحتي. تسأل الساعة مرة واحدة.',+ 'Apple Health': 'Apple صحتي',+ 'Write to Apple Health': 'الحفظ في Apple صحتي',+ 'Open Apple Health': 'فتح Apple صحتي',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'تنتقل التمارين وأوزانك إلى Apple صحتي عندما تنهيها أو تغيّرها.',+ 'Writing to Apple Health': 'جارٍ الحفظ في Apple صحتي',+ 'Apple Health permission not granted': 'لم يُمنح إذن Apple صحتي',+ 'Could not write to Apple Health': 'تعذّر الحفظ في Apple صحتي',+ 'Could not remove it from Apple Health': 'تعذّرت الإزالة من Apple صحتي',+ 'Stop writing to Apple Health?': 'إيقاف الحفظ في Apple صحتي؟',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'ما حفظه openGym بالفعل يمكن أن يبقى في Apple صحتي كبياناتك، أو أن يُزال منه.',+ 'Your workouts in Apple Health': 'تمارينك في Apple صحتي',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'يمكن لـ openGym حفظ كل تمرين وكل وزن في Apple صحتي، ويمكن لساعة Apple Watch أن تعرض نبضك أثناء الرفع.',+ 'Workouts and weigh-ins saved to Apple Health': 'التمارين والأوزان في Apple صحتي',+ 'Heart rate per set on your Apple Watch': 'النبض لكل مجموعة على Apple Watch',+ 'Switch it off anytime in Settings': 'أوقفه متى شئت من الإعدادات',+ 'You can change it anytime in Settings.': 'يمكنك تغييره متى شئت من الإعدادات.',+ 'Last PR': 'آخر رقم قياسي',+ 'Workout running': 'تمرين جارٍ',+ 'Set {0} of {1}': 'المجموعة {0} من {1}',+ 'All sets done': 'اكتملت كل المجموعات',}diff --cc frontend/src/locales/bn.jsindex d384e4458,d5c52a1d6..0df0886ba--- a/frontend/src/locales/bn.js+++ b/frontend/src/locales/bn.js@@@ -2434,16 -2434,24 +2434,39 @@@ export default'Skip completed exercises': 'শেষ হওয়া ব্যায়াম বাদ দিন',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'এই অ্যাপ পাসকি দিয়ে নিশ্চিত করতে পারে না। এই প্রোফাইলে সাইন ইন করা ব্রাউজারে কোডটি বানান, অথবা আগে সেখানে একটি পাসওয়ার্ড যোগ করুন।',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'ওজন',+ 'Send workouts to the watch': 'ওয়ার্কআউট ঘড়িতে পাঠান',- 'Apple Health on the watch': 'ঘড়িতে Apple Health',++ 'Open on the watch': 'ঘড়িতে খুলুন',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'ফোনে ওয়ার্কআউট শুরু করুন, openGym আপনার কবজিতে চলে আসবে।',++ 'Not allowed': 'অনুমতি নেই',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Apple Health চালু করুন, ঘড়ি প্রতিটি সেটে আপনার হৃদস্পন্দন মাপবে।',+ 'Tap the wrist when a rest is over': 'বিশ্রাম শেষে কবজিতে টোকা',+ 'The Digital Crown turns first': 'Digital Crown প্রথমে বদলায়',+ 'No Apple Watch paired with this iPhone': 'এই iPhone-এর সাথে কোনো Apple Watch যুক্ত নেই',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym এখনও আপনার Apple Watch-এ নেই। Watch অ্যাপ থেকে ইনস্টল করুন।',+ 'openGym is on your Apple Watch': 'openGym আপনার Apple Watch-এ আছে',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'ঘড়িতে অনুমতি নেই। iPhone-এর Health অ্যাপে অনুমতি দিন।',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'ওয়ার্কআউটের সময় আর প্রতিটি সেটের পাশে হার্ট রেট, আর ওয়ার্কআউট Apple Health-এ সেভ। ঘড়ি একবার জিজ্ঞেস করে।',+ 'Apple Health': 'Apple Health',+ 'Write to Apple Health': 'Apple Health-এ সেভ করুন',+ 'Open Apple Health': 'Apple Health খুলুন',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'ওয়ার্কআউট আর ওজন শেষ বা বদল করলেই Apple Health-এ চলে যায়।',+ 'Writing to Apple Health': 'Apple Health-এ সেভ হচ্ছে',+ 'Apple Health permission not granted': 'Apple Health-এর অনুমতি দেওয়া হয়নি',+ 'Could not write to Apple Health': 'Apple Health-এ সেভ করা গেল না',+ 'Could not remove it from Apple Health': 'Apple Health থেকে সরানো গেল না',+ 'Stop writing to Apple Health?': 'Apple Health-এ সেভ করা বন্ধ করবেন?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym যা আগে সেভ করেছে তা আপনার ডেটা হিসেবে Apple Health-এ থাকতে পারে, বা সরানো যেতে পারে।',+ 'Your workouts in Apple Health': 'আপনার ওয়ার্কআউট Apple Health-এ',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym প্রতিটি ওয়ার্কআউট আর ওজন Apple Health-এ সেভ করতে পারে, আর আপনার Apple Watch তোলার সময় হার্ট রেট দেখাতে পারে।',+ 'Workouts and weigh-ins saved to Apple Health': 'ওয়ার্কআউট আর ওজন Apple Health-এ',+ 'Heart rate per set on your Apple Watch': 'Apple Watch-এ প্রতি সেটের হার্ট রেট',+ 'Switch it off anytime in Settings': 'সেটিংসে যেকোনো সময় বন্ধ করুন',+ 'You can change it anytime in Settings.': 'সেটিংসে যেকোনো সময় এটি বদলাতে পারেন।',+ 'Last PR': 'শেষ PR',+ 'Workout running': 'ওয়ার্কআউট চলছে',+ 'Set {0} of {1}': 'সেট {0} / {1}',+ 'All sets done': 'সব সেট শেষ',}diff --cc frontend/src/locales/de.jsindex ad990ddcb,c6e416ac5..d09bfe5ff--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@@ -2375,16 -2375,24 +2375,39 @@@ export default'Skip completed exercises': 'Erledigte Übungen überspringen',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Diese App kann nicht mit einem Passkey bestätigen. Erstell den Code in einem Browser, der mit diesem Profil angemeldet ist, oder leg dort zuerst ein Passwort fest.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Gewicht',+ 'Send workouts to the watch': 'Trainings an die Watch senden',- 'Apple Health on the watch': 'Apple Health auf der Watch',++ 'Open on the watch': 'Auf der Watch öffnen',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Starte ein Training am iPhone, und openGym springt dir aufs Handgelenk.',++ 'Not allowed': 'Nicht erlaubt',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Schalte Apple Health ein, dann misst die Watch deinen Puls bei jedem Satz.',+ 'Tap the wrist when a rest is over': 'Am Handgelenk tippen, wenn die Pause vorbei ist',+ 'The Digital Crown turns first': 'Die Digital Crown dreht zuerst',+ 'No Apple Watch paired with this iPhone': 'Keine Apple Watch mit diesem iPhone gekoppelt',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym ist noch nicht auf deiner Apple Watch. Installiere es in der Watch-App.',+ 'openGym is on your Apple Watch': 'openGym ist auf deiner Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Auf der Watch nicht erlaubt. Erlaube es in der Health-App auf deinem iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Puls während des Trainings und neben jedem Satz, und das Training in Apple Health gespeichert. Die Watch fragt einmal.',+ 'Apple Health': 'Apple Health',+ 'Write to Apple Health': 'In Apple Health speichern',+ 'Open Apple Health': 'Apple Health öffnen',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Trainings und Wiegungen landen in Apple Health, sobald du sie abschließt oder änderst.',+ 'Writing to Apple Health': 'Wird in Apple Health gespeichert',+ 'Apple Health permission not granted': 'Apple Health nicht erlaubt',+ 'Could not write to Apple Health': 'Konnte nicht in Apple Health speichern',+ 'Could not remove it from Apple Health': 'Konnte es nicht aus Apple Health entfernen',+ 'Stop writing to Apple Health?': 'Nicht mehr in Apple Health speichern?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Was openGym schon gespeichert hat, kann als deine Daten in Apple Health bleiben oder entfernt werden.',+ 'Your workouts in Apple Health': 'Deine Trainings in Apple Health',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym kann jedes Training und jede Wiegung in Apple Health speichern, und deine Apple Watch zeigt dir beim Heben deinen Puls.',+ 'Workouts and weigh-ins saved to Apple Health': 'Trainings und Wiegungen in Apple Health',+ 'Heart rate per set on your Apple Watch': 'Puls pro Satz auf deiner Apple Watch',+ 'Switch it off anytime in Settings': 'Jederzeit in den Einstellungen abschaltbar',+ 'You can change it anytime in Settings.': 'Du kannst das jederzeit in den Einstellungen ändern.',+ 'Last PR': 'Letzter Rekord',+ 'Workout running': 'Training läuft',+ 'Set {0} of {1}': 'Satz {0} von {1}',+ 'All sets done': 'Alle Sätze erledigt',}diff --cc frontend/src/locales/es.jsindex 84c3f8695,9f1a47c23..5195ae291--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Saltar ejercicios completados',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Esta app no puede confirmar con una passkey. Crea el código en un navegador con este perfil abierto, o añade allí una contraseña primero.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Peso',+ 'Send workouts to the watch': 'Enviar entrenos al reloj',- 'Apple Health on the watch': 'Salud en el reloj',++ 'Open on the watch': 'Abrir en el reloj',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Empieza un entreno en el móvil y openGym aparece en tu muñeca.',++ 'Not allowed': 'No permitido',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Activa Apple Salud y el reloj mide tu pulso en cada serie.',+ 'Tap the wrist when a rest is over': 'Toque en la muñeca al acabar el descanso',+ 'The Digital Crown turns first': 'La Digital Crown ajusta primero',+ 'No Apple Watch paired with this iPhone': 'Ningún Apple Watch enlazado con este iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym aún no está en tu Apple Watch. Instálalo desde la app Watch.',+ 'openGym is on your Apple Watch': 'openGym está en tu Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'No permitido en el reloj. Permítelo en la app Salud de tu iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'El pulso durante el entreno y junto a cada serie, y el entreno guardado en Salud. El reloj pregunta una vez.',+ 'Apple Health': 'Apple Salud',+ 'Write to Apple Health': 'Guardar en Apple Salud',+ 'Open Apple Health': 'Abrir Apple Salud',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Los entrenos y los pesajes van a Apple Salud cuando los terminas o los cambias.',+ 'Writing to Apple Health': 'Guardando en Apple Salud',+ 'Apple Health permission not granted': 'Permiso de Apple Salud no concedido',+ 'Could not write to Apple Health': 'No se pudo guardar en Apple Salud',+ 'Could not remove it from Apple Health': 'No se pudo quitar de Apple Salud',+ 'Stop writing to Apple Health?': '¿Dejar de guardar en Apple Salud?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Lo que openGym ya guardó puede quedarse en Apple Salud como tus datos o quitarse.',+ 'Your workouts in Apple Health': 'Tus entrenos en Apple Salud',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym puede guardar cada entreno y cada pesaje en Apple Salud, y tu Apple Watch puede mostrarte el pulso mientras levantas.',+ 'Workouts and weigh-ins saved to Apple Health': 'Entrenos y pesajes en Apple Salud',+ 'Heart rate per set on your Apple Watch': 'Pulso por serie en tu Apple Watch',+ 'Switch it off anytime in Settings': 'Lo apagas cuando quieras en Ajustes',+ 'You can change it anytime in Settings.': 'Puedes cambiarlo cuando quieras en Ajustes.',+ 'Last PR': 'Último récord',+ 'Workout running': 'Entreno en curso',+ 'Set {0} of {1}': 'Serie {0} de {1}',+ 'All sets done': 'Todas las series hechas',}diff --cc frontend/src/locales/fr.jsindex a57b426ff,2c6372554..44b7d207b--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Sauter les exercices terminés',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Cette app ne peut pas confirmer avec une passkey. Crée le code dans un navigateur connecté à ce profil, ou ajoute d’abord un mot de passe là-bas.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Poids',+ 'Send workouts to the watch': 'Envoyer les séances à la montre',- 'Apple Health on the watch': 'Santé sur la montre',++ 'Open on the watch': 'Ouvrir sur la montre',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Lance une séance sur le téléphone et openGym apparaît à ton poignet.',++ 'Not allowed': 'Non autorisé',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Active Apple Santé et la montre mesure ton pouls à chaque série.',+ 'Tap the wrist when a rest is over': 'Taper au poignet à la fin du repos',+ 'The Digital Crown turns first': 'La Digital Crown règle d’abord',+ 'No Apple Watch paired with this iPhone': 'Aucune Apple Watch jumelée à cet iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym n’est pas encore sur ton Apple Watch. Installe-le dans l’app Watch.',+ 'openGym is on your Apple Watch': 'openGym est sur ton Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Non autorisé sur la montre. Autorise-le dans l’app Santé de ton iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Le pouls pendant la séance et à côté de chaque série, et la séance enregistrée dans Santé. La montre demande une fois.',+ 'Apple Health': 'Apple Santé',+ 'Write to Apple Health': 'Enregistrer dans Apple Santé',+ 'Open Apple Health': 'Ouvrir Apple Santé',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Les séances et les pesées vont dans Apple Santé dès que tu les termines ou les modifies.',+ 'Writing to Apple Health': 'Enregistrement dans Apple Santé',+ 'Apple Health permission not granted': 'Autorisation Apple Santé refusée',+ 'Could not write to Apple Health': 'Impossible d’enregistrer dans Apple Santé',+ 'Could not remove it from Apple Health': 'Impossible de le retirer d’Apple Santé',+ 'Stop writing to Apple Health?': 'Arrêter d’enregistrer dans Apple Santé ?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Ce qu’openGym a déjà enregistré peut rester dans Apple Santé comme tes données, ou en être retiré.',+ 'Your workouts in Apple Health': 'Tes séances dans Apple Santé',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym peut enregistrer chaque séance et chaque pesée dans Apple Santé, et ton Apple Watch peut afficher ton pouls pendant que tu soulèves.',+ 'Workouts and weigh-ins saved to Apple Health': 'Séances et pesées dans Apple Santé',+ 'Heart rate per set on your Apple Watch': 'Le pouls par série sur ton Apple Watch',+ 'Switch it off anytime in Settings': 'Désactivable à tout moment dans les Réglages',+ 'You can change it anytime in Settings.': 'Tu peux changer ça à tout moment dans les Réglages.',+ 'Last PR': 'Dernier record',+ 'Workout running': 'Séance en cours',+ 'Set {0} of {1}': 'Série {0} sur {1}',+ 'All sets done': 'Toutes les séries faites',}diff --cc frontend/src/locales/hi.jsindex 02a744593,1a6fdc5ff..28a1261dc--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'पूरे हुए व्यायाम छोड़ें',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'यह ऐप पासकी से पुष्टि नहीं कर सकता। इस प्रोफ़ाइल में साइन इन किए ब्राउज़र में कोड बनाएँ, या पहले वहाँ एक पासवर्ड जोड़ें।',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'वज़न',+ 'Send workouts to the watch': 'वर्कआउट वॉच पर भेजें',- 'Apple Health on the watch': 'वॉच पर Apple Health',++ 'Open on the watch': 'वॉच पर खोलें',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'फ़ोन पर वर्कआउट शुरू करें और openGym आपकी कलाई पर आ जाएगा।',++ 'Not allowed': 'अनुमति नहीं',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Apple Health चालू करें और वॉच हर सेट में आपकी धड़कन मापेगी।',+ 'Tap the wrist when a rest is over': 'रेस्ट खत्म होने पर कलाई पर टैप',+ 'The Digital Crown turns first': 'Digital Crown पहले बदलता है',+ 'No Apple Watch paired with this iPhone': 'इस iPhone से कोई Apple Watch जुड़ी नहीं है',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym अभी आपकी Apple Watch पर नहीं है। Watch ऐप से इंस्टॉल करें।',+ 'openGym is on your Apple Watch': 'openGym आपकी Apple Watch पर है',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'वॉच पर अनुमति नहीं है। iPhone के Health ऐप में अनुमति दें।',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'वर्कआउट के दौरान और हर सेट के साथ धड़कन, और वर्कआउट Apple Health में सेव। वॉच एक बार पूछती है।',+ 'Apple Health': 'Apple Health',+ 'Write to Apple Health': 'Apple Health में सहेजें',+ 'Open Apple Health': 'Apple Health खोलें',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'वर्कआउट और वज़न, पूरा करते या बदलते ही Apple Health में चले जाते हैं।',+ 'Writing to Apple Health': 'Apple Health में सहेजा जा रहा है',+ 'Apple Health permission not granted': 'Apple Health की अनुमति नहीं मिली',+ 'Could not write to Apple Health': 'Apple Health में सहेजा नहीं जा सका',+ 'Could not remove it from Apple Health': 'Apple Health से हटाया नहीं जा सका',+ 'Stop writing to Apple Health?': 'Apple Health में सहेजना बंद करें?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym ने जो पहले से सहेजा है, वह आपके डेटा के रूप में Apple Health में रह सकता है, या हटाया जा सकता है।',+ 'Your workouts in Apple Health': 'आपके वर्कआउट Apple Health में',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym हर वर्कआउट और वज़न Apple Health में सहेज सकता है, और आपकी Apple Watch लिफ्ट करते समय आपकी धड़कन दिखा सकती है।',+ 'Workouts and weigh-ins saved to Apple Health': 'वर्कआउट और वज़न Apple Health में',+ 'Heart rate per set on your Apple Watch': 'Apple Watch पर हर सेट की धड़कन',+ 'Switch it off anytime in Settings': 'सेटिंग्स में कभी भी बंद करें',+ 'You can change it anytime in Settings.': 'आप इसे कभी भी सेटिंग्स में बदल सकते हैं।',+ 'Last PR': 'पिछला PR',+ 'Workout running': 'वर्कआउट चल रहा है',+ 'Set {0} of {1}': 'सेट {0} / {1}',+ 'All sets done': 'सारे सेट पूरे',}diff --cc frontend/src/locales/hu.jsindex 35e3bd689,ebd969c95..4423d93c0--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@@ -2358,16 -2358,24 +2358,39 @@@ export default'Skip completed exercises': 'Kész gyakorlatok átugrása',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Ez az app nem tud jelszókulccsal megerősíteni. Készítsd el a kódot egy böngészőben, ahol ebbe a profilba vagy bejelentkezve, vagy előbb adj meg ott egy jelszót.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Súly',+ 'Send workouts to the watch': 'Edzések küldése az órára',- 'Apple Health on the watch': 'Egészség az órán',++ 'Open on the watch': 'Megnyitás az órán',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Indíts edzést a telefonon, és az openGym felugrik a csuklódon.',++ 'Not allowed': 'Nem engedélyezett',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Kapcsold be az Apple Egészséget, és az óra minden sorozatnál méri a pulzusod.',+ 'Tap the wrist when a rest is over': 'Koppintás a csuklón, ha letelt a pihenő',+ 'The Digital Crown turns first': 'A Digital Crown először ezt állítja',+ 'No Apple Watch paired with this iPhone': 'Nincs Apple Watch párosítva ezzel az iPhone-nal',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'Az openGym még nincs az Apple Watchodon. Telepítsd a Watch appban.',+ 'openGym is on your Apple Watch': 'Az openGym rajta van az Apple Watchodon',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Nincs engedélyezve az órán. Engedélyezd az iPhone Egészség appjában.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Pulzus edzés közben és minden sorozat mellett, az edzés az Egészség appba mentve. Az óra egyszer kérdez.',+ 'Apple Health': 'Apple Egészség',+ 'Write to Apple Health': 'Mentés az Apple Egészségbe',+ 'Open Apple Health': 'Apple Egészség megnyitása',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Az edzések és mérések az Apple Egészségbe kerülnek, amikor befejezed vagy módosítod őket.',+ 'Writing to Apple Health': 'Mentés az Apple Egészségbe',+ 'Apple Health permission not granted': 'Az Apple Egészség engedély nincs megadva',+ 'Could not write to Apple Health': 'Nem sikerült menteni az Apple Egészségbe',+ 'Could not remove it from Apple Health': 'Nem sikerült eltávolítani az Apple Egészségből',+ 'Stop writing to Apple Health?': 'Leállítod a mentést az Apple Egészségbe?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Amit az openGym már elmentett, maradhat az Apple Egészségben a te adataidként, vagy törölhető.',+ 'Your workouts in Apple Health': 'Az edzéseid az Apple Egészségben',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'Az openGym minden edzést és mérést elmenthet az Apple Egészségbe, az Apple Watch pedig emelés közben mutatja a pulzusodat.',+ 'Workouts and weigh-ins saved to Apple Health': 'Edzések és mérések az Apple Egészségben',+ 'Heart rate per set on your Apple Watch': 'Pulzus sorozatonként az Apple Watch-on',+ 'Switch it off anytime in Settings': 'Bármikor kikapcsolhatod a Beállításokban',+ 'You can change it anytime in Settings.': 'Bármikor módosíthatod a Beállításokban.',+ 'Last PR': 'Legutóbbi rekord',+ 'Workout running': 'Edzés folyamatban',+ 'Set {0} of {1}': '{0}. sorozat / {1}',+ 'All sets done': 'Minden sorozat kész',}diff --cc frontend/src/locales/it.jsindex eb4236e47,4ef0209db..a8aeebb57--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Salta gli esercizi completati',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Questa app non può confermare con una passkey. Crea il codice in un browser con questo profilo, oppure aggiungi prima lì una password.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Peso',+ 'Send workouts to the watch': 'Invia gli allenamenti all’orologio',- 'Apple Health on the watch': 'Salute sull’orologio',++ 'Open on the watch': 'Apri sull’orologio',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Inizia un allenamento sul telefono e openGym ti compare al polso.',++ 'Not allowed': 'Non consentito',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Attiva Apple Salute e l’orologio misura il battito a ogni serie.',+ 'Tap the wrist when a rest is over': 'Tocco al polso a fine recupero',+ 'The Digital Crown turns first': 'La Digital Crown regola prima',+ 'No Apple Watch paired with this iPhone': 'Nessun Apple Watch abbinato a questo iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym non è ancora sul tuo Apple Watch. Installalo dall’app Watch.',+ 'openGym is on your Apple Watch': 'openGym è sul tuo Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Non consentito sull’orologio. Consentilo nell’app Salute dell’iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Il battito durante l’allenamento e accanto a ogni serie, e l’allenamento salvato in Salute. L’orologio chiede una volta.',+ 'Apple Health': 'Apple Salute',+ 'Write to Apple Health': 'Salva in Apple Salute',+ 'Open Apple Health': 'Apri Apple Salute',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Allenamenti e pesate finiscono in Apple Salute quando li concludi o li modifichi.',+ 'Writing to Apple Health': 'Salvataggio in Apple Salute',+ 'Apple Health permission not granted': 'Permesso di Apple Salute non concesso',+ 'Could not write to Apple Health': 'Impossibile salvare in Apple Salute',+ 'Could not remove it from Apple Health': 'Impossibile rimuoverlo da Apple Salute',+ 'Stop writing to Apple Health?': 'Smettere di salvare in Apple Salute?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Quello che openGym ha già salvato può restare in Apple Salute come dati tuoi, oppure essere rimosso.',+ 'Your workouts in Apple Health': 'I tuoi allenamenti in Apple Salute',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym può salvare ogni allenamento e ogni pesata in Apple Salute, e il tuo Apple Watch può mostrarti il battito mentre sollevi.',+ 'Workouts and weigh-ins saved to Apple Health': 'Allenamenti e pesate in Apple Salute',+ 'Heart rate per set on your Apple Watch': 'Battito per serie sul tuo Apple Watch',+ 'Switch it off anytime in Settings': 'Lo spegni quando vuoi nelle Impostazioni',+ 'You can change it anytime in Settings.': 'Puoi cambiarlo quando vuoi nelle Impostazioni.',+ 'Last PR': 'Ultimo record',+ 'Workout running': 'Allenamento in corso',+ 'Set {0} of {1}': 'Serie {0} di {1}',+ 'All sets done': 'Tutte le serie fatte',}diff --cc frontend/src/locales/ko.jsindex 5fd519228,c8f8367ef..9ab4efed5--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': '끝난 운동 건너뛰기',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': '이 앱에서는 패스키로 확인할 수 없어요. 이 프로필로 로그인한 브라우저에서 코드를 만들거나, 먼저 그곳에서 비밀번호를 추가하세요.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': '무게',+ 'Send workouts to the watch': '운동을 워치로 보내기',- 'Apple Health on the watch': '워치에서 건강 앱 연동',++ 'Open on the watch': '워치에서 열기',++ 'Start a workout on the phone and openGym pops up on your wrist.': '폰에서 운동을 시작하면 openGym이 손목에 바로 떠요.',++ 'Not allowed': '허용 안 됨',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Apple 건강을 켜면 워치가 세트마다 심박수를 재요.',+ 'Tap the wrist when a rest is over': '휴식이 끝나면 손목을 톡',+ 'The Digital Crown turns first': 'Digital Crown이 먼저 바꾸는 값',+ 'No Apple Watch paired with this iPhone': '이 iPhone과 페어링된 Apple Watch가 없어요',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': '아직 Apple Watch에 openGym이 없어요. Watch 앱에서 설치하세요.',+ 'openGym is on your Apple Watch': 'Apple Watch에 openGym이 있어요',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': '워치에서 허용되지 않았어요. iPhone의 건강 앱에서 허용하세요.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': '운동 중과 각 세트 옆의 심박수, 그리고 건강 앱에 저장되는 운동. 워치가 한 번 물어봐요.',+ 'Apple Health': 'Apple 건강',+ 'Write to Apple Health': 'Apple 건강에 기록',+ 'Open Apple Health': 'Apple 건강 열기',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': '운동과 체중 기록은 끝내거나 바꿀 때 Apple 건강으로 가요.',+ 'Writing to Apple Health': 'Apple 건강에 기록하는 중',+ 'Apple Health permission not granted': 'Apple 건강 권한이 허용되지 않음',+ 'Could not write to Apple Health': 'Apple 건강에 기록하지 못했어요',+ 'Could not remove it from Apple Health': 'Apple 건강에서 지우지 못했어요',+ 'Stop writing to Apple Health?': 'Apple 건강 기록을 중단할까요?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym이 이미 기록한 내용은 내 데이터로 Apple 건강에 남겨 두거나 지울 수 있어요.',+ 'Your workouts in Apple Health': 'Apple 건강에 내 운동을',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym이 모든 운동과 체중을 Apple 건강에 저장하고, Apple Watch는 운동 중 심박수를 보여줄 수 있어요.',+ 'Workouts and weigh-ins saved to Apple Health': '운동과 체중이 Apple 건강에',+ 'Heart rate per set on your Apple Watch': 'Apple Watch에서 세트별 심박수',+ 'Switch it off anytime in Settings': '설정에서 언제든 끌 수 있어요',+ 'You can change it anytime in Settings.': '설정에서 언제든 바꿀 수 있어요.',+ 'Last PR': '최근 PR',+ 'Workout running': '운동 중',+ 'Set {0} of {1}': '{1}세트 중 {0}세트',+ 'All sets done': '모든 세트 완료',}diff --cc frontend/src/locales/pl.jsindex 72563b007,d51462c9d..0952df3c4--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Pomijaj ukończone ćwiczenia',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Ta aplikacja nie może potwierdzić kluczem dostępu. Utwórz kod w przeglądarce zalogowanej na ten profil albo najpierw ustaw tam hasło.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Ciężar',+ 'Send workouts to the watch': 'Wysyłaj treningi na zegarek',- 'Apple Health on the watch': 'Zdrowie na zegarku',++ 'Open on the watch': 'Otwórz na zegarku',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Zacznij trening w telefonie, a openGym wyskoczy ci na nadgarstku.',++ 'Not allowed': 'Brak zgody',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Włącz Apple Zdrowie, a zegarek zmierzy tętno w każdej serii.',+ 'Tap the wrist when a rest is over': 'Stuknij w nadgarstek po przerwie',+ 'The Digital Crown turns first': 'Digital Crown najpierw zmienia',+ 'No Apple Watch paired with this iPhone': 'Brak Apple Watch sparowanego z tym iPhone’em',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym nie ma jeszcze na Twoim Apple Watch. Zainstaluj go w aplikacji Watch.',+ 'openGym is on your Apple Watch': 'openGym jest na Twoim Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Brak zgody na zegarku. Zezwól w aplikacji Zdrowie na iPhonie.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Tętno podczas treningu i przy każdej serii, a trening zapisany w Zdrowiu. Zegarek zapyta raz.',+ 'Apple Health': 'Apple Zdrowie',+ 'Write to Apple Health': 'Zapisuj w Apple Zdrowie',+ 'Open Apple Health': 'Otwórz Apple Zdrowie',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Treningi i pomiary wagi trafiają do Apple Zdrowie, gdy je kończysz lub zmieniasz.',+ 'Writing to Apple Health': 'Zapisywanie w Apple Zdrowie',+ 'Apple Health permission not granted': 'Nie przyznano uprawnienia Apple Zdrowie',+ 'Could not write to Apple Health': 'Nie udało się zapisać w Apple Zdrowie',+ 'Could not remove it from Apple Health': 'Nie udało się usunąć z Apple Zdrowie',+ 'Stop writing to Apple Health?': 'Przestać zapisywać w Apple Zdrowie?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'To, co openGym już zapisał, może zostać w Apple Zdrowie jako twoje dane albo zostać usunięte.',+ 'Your workouts in Apple Health': 'Twoje treningi w Apple Zdrowie',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym może zapisywać każdy trening i pomiar wagi w Apple Zdrowie, a twój Apple Watch pokaże tętno, gdy dźwigasz.',+ 'Workouts and weigh-ins saved to Apple Health': 'Treningi i pomiary wagi w Apple Zdrowie',+ 'Heart rate per set on your Apple Watch': 'Tętno w każdej serii na Apple Watch',+ 'Switch it off anytime in Settings': 'Wyłączysz to w każdej chwili w Ustawieniach',+ 'You can change it anytime in Settings.': 'Możesz to zmienić w każdej chwili w Ustawieniach.',+ 'Last PR': 'Ostatni rekord',+ 'Workout running': 'Trening trwa',+ 'Set {0} of {1}': 'Seria {0} z {1}',+ 'All sets done': 'Wszystkie serie zrobione',}diff --cc frontend/src/locales/pt-BR.jsindex ee8c12761,8ba2e9e19..fbe909f49--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@@ -1488,18 -1488,18 +1488,33 @@@ export const PT_BR_OVERRIDES ='Skip completed exercises': 'Pular exercícios concluídos',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Este aplicativo não consegue confirmar com uma chave de acesso. Crie o código em um navegador conectado a este perfil, ou adicione uma senha lá primeiro.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Peso',+ 'Send workouts to the watch': 'Enviar treinos para o relógio',- 'Apple Health on the watch': 'Saúde no relógio',++ 'Open on the watch': 'Abrir no relógio',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Comece um treino no celular e o openGym aparece no seu pulso.',++ 'Not allowed': 'Não permitido',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Ative o Apple Saúde e o relógio mede sua frequência cardíaca em cada série.',+ 'Tap the wrist when a rest is over': 'Toque no pulso no fim do descanso',+ 'The Digital Crown turns first': 'A Digital Crown ajusta primeiro',+ 'No Apple Watch paired with this iPhone': 'Nenhum Apple Watch pareado com este iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'O openGym ainda não está no seu Apple Watch. Instale pelo app Watch.',+ 'openGym is on your Apple Watch': 'O openGym está no seu Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Não permitido no relógio. Permita no app Saúde do seu iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'A frequência cardíaca durante o treino e ao lado de cada série, e o treino salvo no Saúde. O relógio pergunta uma vez.',+ 'Write to Apple Health': 'Salvar no Apple Saúde',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Os treinos e as pesagens vão para o Apple Saúde quando você os termina ou altera.',+ 'Writing to Apple Health': 'Salvando no Apple Saúde',+ 'Could not write to Apple Health': 'Não foi possível salvar no Apple Saúde',+ 'Stop writing to Apple Health?': 'Parar de salvar no Apple Saúde?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'O que o openGym já salvou pode ficar no Apple Saúde como seus dados, ou ser removido.',+ 'Your workouts in Apple Health': 'Seus treinos no Apple Saúde',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'O openGym pode salvar cada treino e cada pesagem no Apple Saúde, e seu Apple Watch pode mostrar sua frequência cardíaca enquanto você treina.',+ 'Heart rate per set on your Apple Watch': 'Frequência cardíaca por série no seu Apple Watch',+ 'Switch it off anytime in Settings': 'Desligue quando quiser nas Configurações',+ 'You can change it anytime in Settings.': 'Você pode mudar isso quando quiser nas Configurações.',+ 'Workout running': 'Treino em andamento',}export default { ...pt, ...PT_BR_OVERRIDES }diff --cc frontend/src/locales/pt.jsindex 2c9523002,aefccb1a1..7fce2071d--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Saltar exercícios concluídos',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Esta app não consegue confirmar com uma passkey. Cria o código num navegador com este perfil, ou adiciona lá uma palavra-passe primeiro.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Peso',+ 'Send workouts to the watch': 'Enviar treinos para o relógio',- 'Apple Health on the watch': 'Saúde no relógio',++ 'Open on the watch': 'Abrir no relógio',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Começa um treino no telemóvel e o openGym aparece no teu pulso.',++ 'Not allowed': 'Não permitido',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Ativa o Apple Saúde e o relógio mede a tua frequência cardíaca em cada série.',+ 'Tap the wrist when a rest is over': 'Toque no pulso no fim do descanso',+ 'The Digital Crown turns first': 'A Digital Crown ajusta primeiro',+ 'No Apple Watch paired with this iPhone': 'Nenhum Apple Watch emparelhado com este iPhone',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'O openGym ainda não está no teu Apple Watch. Instala-o na app Watch.',+ 'openGym is on your Apple Watch': 'O openGym está no teu Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Não permitido no relógio. Permite-o na app Saúde do teu iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'A frequência cardíaca durante o treino e ao lado de cada série, e o treino guardado na Saúde. O relógio pergunta uma vez.',+ 'Apple Health': 'Apple Saúde',+ 'Write to Apple Health': 'Guardar no Apple Saúde',+ 'Open Apple Health': 'Abrir o Apple Saúde',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Os treinos e as pesagens vão para o Apple Saúde quando os terminas ou alteras.',+ 'Writing to Apple Health': 'A guardar no Apple Saúde',+ 'Apple Health permission not granted': 'Permissão do Apple Saúde não concedida',+ 'Could not write to Apple Health': 'Não foi possível guardar no Apple Saúde',+ 'Could not remove it from Apple Health': 'Não foi possível remover do Apple Saúde',+ 'Stop writing to Apple Health?': 'Deixar de guardar no Apple Saúde?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'O que o openGym já guardou pode ficar no Apple Saúde como dados teus, ou ser removido.',+ 'Your workouts in Apple Health': 'Os teus treinos no Apple Saúde',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'O openGym pode guardar cada treino e cada pesagem no Apple Saúde, e o teu Apple Watch pode mostrar o teu ritmo cardíaco enquanto treinas.',+ 'Workouts and weigh-ins saved to Apple Health': 'Treinos e pesagens no Apple Saúde',+ 'Heart rate per set on your Apple Watch': 'Ritmo cardíaco por série no teu Apple Watch',+ 'Switch it off anytime in Settings': 'Desligas quando quiseres nas Definições',+ 'You can change it anytime in Settings.': 'Podes mudar isto quando quiseres nas Definições.',+ 'Last PR': 'Último recorde',+ 'Workout running': 'Treino a decorrer',+ 'Set {0} of {1}': 'Série {0} de {1}',+ 'All sets done': 'Todas as séries feitas',}diff --cc frontend/src/locales/ru.jsindex d69666dc6,5975d6d5a..d0c3020d8--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@@ -2359,16 -2359,24 +2359,39 @@@ export default'Skip completed exercises': 'Пропускать выполненные упражнения',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Это приложение не может подтвердить ключом доступа. Создайте код в браузере, где вы вошли в этот профиль, или сначала задайте там пароль.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Вес',+ 'Send workouts to the watch': 'Отправлять тренировки на часы',- 'Apple Health on the watch': 'Здоровье на часах',++ 'Open on the watch': 'Открывать на часах',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Начни тренировку на телефоне, и openGym появится у тебя на запястье.',++ 'Not allowed': 'Не разрешено',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Включи Apple Здоровье, и часы будут мерить пульс в каждом подходе.',+ 'Tap the wrist when a rest is over': 'Касание запястья в конце отдыха',+ 'The Digital Crown turns first': 'Digital Crown сначала меняет',+ 'No Apple Watch paired with this iPhone': 'К этому iPhone не подключены Apple Watch',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym ещё нет на ваших Apple Watch. Установите его в приложении Watch.',+ 'openGym is on your Apple Watch': 'openGym установлен на ваших Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'На часах не разрешено. Разрешите в приложении «Здоровье» на iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Пульс во время тренировки и рядом с каждым подходом, тренировка сохраняется в «Здоровье». Часы спросят один раз.',+ 'Apple Health': 'Apple Здоровье',+ 'Write to Apple Health': 'Записывать в Apple Здоровье',+ 'Open Apple Health': 'Открыть Apple Здоровье',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Тренировки и взвешивания попадают в Apple Здоровье, когда вы их завершаете или меняете.',+ 'Writing to Apple Health': 'Запись в Apple Здоровье',+ 'Apple Health permission not granted': 'Разрешение Apple Здоровье не выдано',+ 'Could not write to Apple Health': 'Не удалось записать в Apple Здоровье',+ 'Could not remove it from Apple Health': 'Не удалось удалить из Apple Здоровье',+ 'Stop writing to Apple Health?': 'Перестать записывать в Apple Здоровье?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'То, что openGym уже записал, может остаться в Apple Здоровье как ваши данные или быть удалено.',+ 'Your workouts in Apple Health': 'Ваши тренировки в Apple Здоровье',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym может сохранять каждую тренировку и взвешивание в Apple Здоровье, а Apple Watch покажет пульс прямо во время подходов.',+ 'Workouts and weigh-ins saved to Apple Health': 'Тренировки и взвешивания в Apple Здоровье',+ 'Heart rate per set on your Apple Watch': 'Пульс по подходам на Apple Watch',+ 'Switch it off anytime in Settings': 'Можно выключить в любой момент в Настройках',+ 'You can change it anytime in Settings.': 'Это можно изменить в любой момент в Настройках.',+ 'Last PR': 'Последний рекорд',+ 'Workout running': 'Тренировка идёт',+ 'Set {0} of {1}': 'Подход {0} из {1}',+ 'All sets done': 'Все подходы сделаны',}diff --cc frontend/src/locales/th.jsindex a708144ff,05f005b59..72b604609--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@@ -2366,16 -2366,24 +2366,39 @@@ export default'Skip completed exercises': 'ข้ามท่าที่ทำเสร็จแล้ว',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'แอปนี้ยืนยันด้วยพาสคีย์ไม่ได้ สร้างรหัสในเบราว์เซอร์ที่ลงชื่อเข้าใช้โปรไฟล์นี้ หรือเพิ่มรหัสผ่านที่นั่นก่อน',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'น้ำหนัก',+ 'Send workouts to the watch': 'ส่งการฝึกไปที่นาฬิกา',- 'Apple Health on the watch': 'Apple Health บนนาฬิกา',++ 'Open on the watch': 'เปิดบนนาฬิกา',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'เริ่มออกกำลังกายบนโทรศัพท์ แล้ว openGym จะเด้งขึ้นที่ข้อมือ',++ 'Not allowed': 'ไม่ได้รับอนุญาต',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'เปิด Apple Health แล้วนาฬิกาจะวัดชีพจรให้ทุกเซต',+ 'Tap the wrist when a rest is over': 'แตะข้อมือเมื่อหมดเวลาพัก',+ 'The Digital Crown turns first': 'Digital Crown ปรับอะไรก่อน',+ 'No Apple Watch paired with this iPhone': 'ไม่มี Apple Watch ที่จับคู่กับ iPhone นี้',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'ยังไม่มี openGym บน Apple Watch ติดตั้งได้ในแอป Watch',+ 'openGym is on your Apple Watch': 'มี openGym บน Apple Watch แล้ว',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'ไม่ได้รับอนุญาตบนนาฬิกา อนุญาตได้ในแอปสุขภาพบน iPhone',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'อัตราการเต้นของหัวใจระหว่างฝึกและข้างแต่ละเซ็ต และบันทึกการฝึกลงในสุขภาพ นาฬิกาจะถามครั้งเดียว',+ 'Apple Health': 'Apple Health',+ 'Write to Apple Health': 'บันทึกลง Apple Health',+ 'Open Apple Health': 'เปิด Apple Health',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'การฝึกและการชั่งน้ำหนักจะไปที่ Apple Health เมื่อคุณทำเสร็จหรือแก้ไข',+ 'Writing to Apple Health': 'กำลังบันทึกลง Apple Health',+ 'Apple Health permission not granted': 'ไม่ได้รับสิทธิ์ Apple Health',+ 'Could not write to Apple Health': 'บันทึกลง Apple Health ไม่ได้',+ 'Could not remove it from Apple Health': 'ลบออกจาก Apple Health ไม่ได้',+ 'Stop writing to Apple Health?': 'หยุดบันทึกลง Apple Health ไหม',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'สิ่งที่ openGym บันทึกไว้แล้วจะเก็บไว้ใน Apple Health เป็นข้อมูลของคุณ หรือจะลบออกก็ได้',+ 'Your workouts in Apple Health': 'การฝึกของคุณใน Apple Health',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym บันทึกทุกการฝึกและการชั่งน้ำหนักลง Apple Health ได้ และ Apple Watch ของคุณแสดงอัตราการเต้นของหัวใจระหว่างยกได้',+ 'Workouts and weigh-ins saved to Apple Health': 'การฝึกและน้ำหนักอยู่ใน Apple Health',+ 'Heart rate per set on your Apple Watch': 'อัตราการเต้นของหัวใจแต่ละเซ็ตบน Apple Watch',+ 'Switch it off anytime in Settings': 'ปิดได้ทุกเมื่อในการตั้งค่า',+ 'You can change it anytime in Settings.': 'เปลี่ยนได้ทุกเมื่อในการตั้งค่า',+ 'Last PR': 'สถิติล่าสุด',+ 'Workout running': 'กำลังฝึกอยู่',+ 'Set {0} of {1}': 'เซ็ต {0} จาก {1}',+ 'All sets done': 'ครบทุกเซ็ตแล้ว',}diff --cc frontend/src/locales/tr.jsindex cf4f2e1c5,b246d4897..d4724d8ea--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': 'Tamamlanan egzersizleri atla',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Bu uygulama geçiş anahtarıyla onaylayamaz. Kodu bu profille oturum açmış bir tarayıcıda oluştur ya da önce orada bir parola ekle.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Ağırlık',+ 'Send workouts to the watch': 'Antrenmanları saate gönder',- 'Apple Health on the watch': 'Saatte Sağlık',++ 'Open on the watch': 'Saatte aç',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Telefonda antrenmana başla, openGym bileğinde belirsin.',++ 'Not allowed': 'İzin yok',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Apple Sağlık’ı aç, saat her sette nabzını ölçsün.',+ 'Tap the wrist when a rest is over': 'Dinlenme bitince bileğe dokun',+ 'The Digital Crown turns first': 'Digital Crown önce bunu değiştirir',+ 'No Apple Watch paired with this iPhone': 'Bu iPhone ile eşlenmiş Apple Watch yok',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym henüz Apple Watch’unda değil. Watch uygulamasından yükle.',+ 'openGym is on your Apple Watch': 'openGym Apple Watch’unda',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'Saatte izin verilmedi. iPhone’undaki Sağlık uygulamasından izin ver.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Antrenman sırasında ve her setin yanında nabız, antrenman Sağlık’a kaydedilir. Saat bir kez sorar.',+ 'Apple Health': 'Apple Sağlık',+ 'Write to Apple Health': 'Apple Sağlık’a kaydet',+ 'Open Apple Health': 'Apple Sağlık’ı aç',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Antrenmanlar ve tartılar, bitirdiğinde ya da değiştirdiğinde Apple Sağlık’a gider.',+ 'Writing to Apple Health': 'Apple Sağlık’a kaydediliyor',+ 'Apple Health permission not granted': 'Apple Sağlık izni verilmedi',+ 'Could not write to Apple Health': 'Apple Sağlık’a kaydedilemedi',+ 'Could not remove it from Apple Health': 'Apple Sağlık’tan kaldırılamadı',+ 'Stop writing to Apple Health?': 'Apple Sağlık’a kaydetme durdurulsun mu?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym’in kaydettikleri senin verin olarak Apple Sağlık’ta kalabilir ya da kaldırılabilir.',+ 'Your workouts in Apple Health': 'Antrenmanların Apple Sağlık’ta',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym her antrenmanı ve tartıyı Apple Sağlık’a kaydedebilir, Apple Watch’un da sen kaldırırken nabzını gösterebilir.',+ 'Workouts and weigh-ins saved to Apple Health': 'Antrenmanlar ve tartılar Apple Sağlık’ta',+ 'Heart rate per set on your Apple Watch': 'Apple Watch’ta set başına nabız',+ 'Switch it off anytime in Settings': 'Ayarlar’dan istediğin zaman kapatabilirsin',+ 'You can change it anytime in Settings.': 'Bunu istediğin zaman Ayarlar’dan değiştirebilirsin.',+ 'Last PR': 'Son rekor',+ 'Workout running': 'Antrenman sürüyor',+ 'Set {0} of {1}': 'Set {0}/{1}',+ 'All sets done': 'Tüm setler tamam',}diff --cc frontend/src/locales/uk.jsindex 452d734ad,13e7e55a5..1471442b1--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@@ -2352,16 -2352,24 +2352,39 @@@ export default'Skip completed exercises': 'Пропускати виконані вправи',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': 'Цей застосунок не може підтвердити ключем доступу. Створіть код у браузері, де ви ввійшли в цей профіль, або спершу задайте там пароль.',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': 'Вага',+ 'Send workouts to the watch': 'Надсилати тренування на годинник',- 'Apple Health on the watch': 'Здоровʼя на годиннику',++ 'Open on the watch': 'Відкривати на годиннику',++ 'Start a workout on the phone and openGym pops up on your wrist.': 'Почни тренування на телефоні, і openGym зʼявиться на зап’ясті.',++ 'Not allowed': 'Не дозволено',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': 'Увімкни Apple Здоров’я, і годинник міритиме пульс у кожному підході.',+ 'Tap the wrist when a rest is over': 'Дотик до зап’ястя в кінці відпочинку',+ 'The Digital Crown turns first': 'Digital Crown спершу змінює',+ 'No Apple Watch paired with this iPhone': 'До цього iPhone не під’єднано Apple Watch',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': 'openGym ще немає на твоєму Apple Watch. Установи його в програмі Watch.',+ 'openGym is on your Apple Watch': 'openGym є на твоєму Apple Watch',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': 'На годиннику не дозволено. Дозволь у програмі «Здоров’я» на iPhone.',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': 'Пульс під час тренування і біля кожного підходу, тренування зберігається у «Здоров’ї». Годинник спитає один раз.',+ 'Apple Health': 'Apple Здоров’я',+ 'Write to Apple Health': 'Записувати в Apple Здоров’я',+ 'Open Apple Health': 'Відкрити Apple Здоров’я',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': 'Тренування і зважування потрапляють до Apple Здоров’я, щойно ти їх завершуєш або змінюєш.',+ 'Writing to Apple Health': 'Запис до Apple Здоров’я',+ 'Apple Health permission not granted': 'Дозвіл Apple Здоров’я не надано',+ 'Could not write to Apple Health': 'Не вдалося записати до Apple Здоров’я',+ 'Could not remove it from Apple Health': 'Не вдалося прибрати з Apple Здоров’я',+ 'Stop writing to Apple Health?': 'Припинити запис до Apple Здоров’я?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'Те, що openGym уже записав, може лишитися в Apple Здоров’я як твої дані або бути прибране.',+ 'Your workouts in Apple Health': 'Твої тренування в Apple Здоров’я',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym може зберігати кожне тренування і зважування в Apple Здоров’я, а Apple Watch покаже пульс просто під час підходів.',+ 'Workouts and weigh-ins saved to Apple Health': 'Тренування і зважування в Apple Здоров’я',+ 'Heart rate per set on your Apple Watch': 'Пульс для кожного підходу на Apple Watch',+ 'Switch it off anytime in Settings': 'Вимкнеш будь-коли в Налаштуваннях',+ 'You can change it anytime in Settings.': 'Це можна змінити будь-коли в Налаштуваннях.',+ 'Last PR': 'Останній рекорд',+ 'Workout running': 'Тренування триває',+ 'Set {0} of {1}': 'Підхід {0} з {1}',+ 'All sets done': 'Усі підходи зроблено',}diff --cc frontend/src/locales/zh-TW.jsindex e5605cf83,3ec8840b7..35c411b23--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@@ -2348,16 -2348,24 +2348,39 @@@ export default'Skip completed exercises': '跳過已完成的動作',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': '此 App 無法以通行密鑰確認。請在已登入此個人檔案的瀏覽器中產生代碼,或先在那裡設定密碼。',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': '重量',+ 'Send workouts to the watch': '把訓練傳送到手錶',- 'Apple Health on the watch': '手錶上的「健康」',++ 'Open on the watch': '在手錶上開啟',++ 'Start a workout on the phone and openGym pops up on your wrist.': '在手機上開始訓練,openGym 就會出現在你的手腕上。',++ 'Not allowed': '未允許',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': '開啟 Apple 健康,手錶會測量每一組的心率。',+ 'Tap the wrist when a rest is over': '休息結束時輕點手腕',+ 'The Digital Crown turns first': '數位錶冠先調整',+ 'No Apple Watch paired with this iPhone': '沒有與這台 iPhone 配對的 Apple Watch',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': '你的 Apple Watch 上還沒有 openGym。請在 Watch App 中安裝。',+ 'openGym is on your Apple Watch': 'openGym 已在你的 Apple Watch 上',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': '手錶上未獲允許。請在 iPhone 的「健康」App 中允許。',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': '訓練中及每組旁的心率,以及儲存到「健康」的訓練。手錶只會詢問一次。',+ 'Apple Health': 'Apple 健康',+ 'Write to Apple Health': '寫入 Apple 健康',+ 'Open Apple Health': '打開 Apple 健康',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': '訓練和體重紀錄在你完成或修改時寫入 Apple 健康。',+ 'Writing to Apple Health': '正在寫入 Apple 健康',+ 'Apple Health permission not granted': '未授予 Apple 健康權限',+ 'Could not write to Apple Health': '無法寫入 Apple 健康',+ 'Could not remove it from Apple Health': '無法從 Apple 健康中移除',+ 'Stop writing to Apple Health?': '要停止寫入 Apple 健康嗎?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym 已寫入的內容可以作為你的資料留在 Apple 健康中,也可以移除。',+ 'Your workouts in Apple Health': '你的訓練,同步到 Apple 健康',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym 可以把每次訓練和量體重存入 Apple 健康,你的 Apple Watch 還能在訓練時顯示心率。',+ 'Workouts and weigh-ins saved to Apple Health': '訓練和體重存入 Apple 健康',+ 'Heart rate per set on your Apple Watch': 'Apple Watch 上每組的心率',+ 'Switch it off anytime in Settings': '隨時可在設定中關閉',+ 'You can change it anytime in Settings.': '隨時可以在設定中更改。',+ 'Last PR': '最近紀錄',+ 'Workout running': '訓練進行中',+ 'Set {0} of {1}': '第 {0} 組,共 {1} 組',+ 'All sets done': '所有組已完成',}diff --cc frontend/src/locales/zh.jsindex 40f0e37e0,a8b7325e9..948af14e8--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@@ -2355,16 -2355,24 +2355,39 @@@ export default'Skip completed exercises': '跳过已完成的动作',// --- #551 device link from the phone ---'This app can’t confirm with a passkey. Make the code in a browser signed in to this profile, or add a password there first.': '此应用无法用通行密钥确认。请在已登录此档案的浏览器中生成代码,或先在那里设置密码。',+ // --- Settings → Apple Watch ---+ 'Apple Watch': 'Apple Watch',+ 'Weight': '重量',+ 'Send workouts to the watch': '把训练发送到手表',- 'Apple Health on the watch': '手表上的“健康”',++ 'Open on the watch': '在手表上打开',++ 'Start a workout on the phone and openGym pops up on your wrist.': '在手机上开始训练,openGym 就会出现在你的手腕上。',++ 'Not allowed': '未允许',++ 'Turn on Apple Health and the watch measures your heart rate for every set.': '打开 Apple 健康,手表会测量每一组的心率。',+ 'Tap the wrist when a rest is over': '休息结束时轻敲手腕',+ 'The Digital Crown turns first': '数码表冠先调节',+ 'No Apple Watch paired with this iPhone': '没有与这台 iPhone 配对的 Apple Watch',+ 'openGym is not on your Apple Watch yet. Install it in the Watch app.': '你的 Apple Watch 上还没有 openGym。请在 Watch App 中安装。',+ 'openGym is on your Apple Watch': 'openGym 已在你的 Apple Watch 上',+ 'Not allowed on the watch. Allow it in the Health app on your iPhone.': '手表上未获允许。请在 iPhone 的“健康”App 中允许。',+ 'Heart rate during the workout and next to each set, and the workout saved to Apple Health. The watch asks once.': '训练中及每组旁的心率,以及保存到“健康”的训练。手表只会询问一次。',+ 'Apple Health': 'Apple 健康',+ 'Write to Apple Health': '写入 Apple 健康',+ 'Open Apple Health': '打开 Apple 健康',+ 'Workouts and weigh-ins go to Apple Health when you finish or change them.': '训练和体重记录在你完成或修改时写入 Apple 健康。',+ 'Writing to Apple Health': '正在写入 Apple 健康',+ 'Apple Health permission not granted': '未授予 Apple 健康权限',+ 'Could not write to Apple Health': '无法写入 Apple 健康',+ 'Could not remove it from Apple Health': '无法从 Apple 健康中移除',+ 'Stop writing to Apple Health?': '要停止写入 Apple 健康吗?',+ 'What openGym already wrote can stay in Apple Health as your data, or be removed from it.': 'openGym 已写入的内容可以作为你的数据留在 Apple 健康中,也可以移除。',+ 'Your workouts in Apple Health': '你的训练,同步到 Apple 健康',+ 'openGym can save every workout and weigh-in to Apple Health, and your Apple Watch can show your heart rate while you lift.': 'openGym 可以把每次训练和称重存入 Apple 健康,你的 Apple Watch 还能在训练时显示心率。',+ 'Workouts and weigh-ins saved to Apple Health': '训练和体重存入 Apple 健康',+ 'Heart rate per set on your Apple Watch': 'Apple Watch 上每组的心率',+ 'Switch it off anytime in Settings': '随时可在设置中关闭',+ 'You can change it anytime in Settings.': '随时可以在设置中更改。',+ 'Last PR': '最近纪录',+ 'Workout running': '训练进行中',+ 'Set {0} of {1}': '第 {0} 组,共 {1} 组',+ 'All sets done': '所有组已完成',}diff --cc frontend/src/views/Workout.jsxindex 0c6663d21,045455044..72fbb3f0c--- a/frontend/src/views/Workout.jsx+++ b/frontend/src/views/Workout.jsx@@@ -39,8 -39,8 +39,9 @@@ import { routineChangesFromEntry, updatimport { sessionNoProg, setSessionNoProg, setEntryNoProg, joinSessionNoProg } from '../lib/session-noprog.js'import { glyphOf } from '../lib/glyphs.js'import { markAllSetsDone, sessionHistory } from '../lib/backfill.js'+import { bindWatchActions } from '../lib/watch-sync.js'import { bestSetFor } from '../lib/exercise-history.js'+ import { bindLiveActions } from '../lib/live-activity.js'import { isWarmupRow, isFailureSet, toggleFailure, isDropSet, isRestPauseSet, dropsOf, clustersOf, addDrop, addCluster, removeDropAt, removeClusterAt, setDropAt, setClusterAt, nextDropWeight, nextBurstReps, isSideSet, makeSideSet, setSideField, toggleSide, addSideDrop, removeSideDropAt, setSideDropAt, addSideCluster, removeSideClusterAt, setSideClusterAt, WEIGHT_ORIGIN_MANUAL } from '../lib/workout-model.js'import { canMoveActiveWorkoutUnit, moveActiveWorkoutUnit, canMoveActiveWorkoutEntry, moveActiveWorkoutEntry } from '../lib/active-workout-order.js'import { nextOpenSet, workoutKeyAction } from '../lib/workout-keys.js'@@@ -1778,29 -1778,29 +1779,51 @@@ function ActiveWorkout({ onActionChangonFocusProgress?.({ unitDone: freshUnitDone })}}+ // The Apple Watch ticks sets through this same toggle (lib/watch-sync.js): the weight and reps it+ // logged go into the row first, then the tick runs as if tapped here (rest, high-water mark, the+ // end-of-workout sheet). A row already ticked only takes the numbers.+ const toggleRef = useRef(toggle)+ toggleRef.current = toggle+ // The time is the watch's: the phone may hear of the set much later (lib/finish-workout.js+ // sessionEnd reads the sets' times). The watch's Finish runs the phone's Finish and save.+ useEffect(() => bindWatchActions({+ setDone: (idx, i, { w, r, at, hr }) => {+ if (useStore.getState().S.active?.editingWorkoutId) return // a saved workout being edited is not the session+ const now = useStore.getState().S.active?.entries?.[idx]?.sets?.[i]+ // The same set ticked here after the watch did: the later tick wins, the heart rate still lands.+ if (now?.done && at && Number(now.at) > at) {+ if (hr) mutEntry(idx, en => { if (en.sets[i]) en.sets[i].hr = hr })+ return+ }+ mutEntry(idx, en => { const set = en.sets[i]; if (!set) return; if (w != null) set.w = w; if (r != null) set.r = r })+ if (!now?.done) toggleRef.current(idx, i)+ if (at || hr) mutEntry(idx, en => { const set = en.sets[i]; if (!set?.done) return; if (at) set.at = at; if (hr) set.hr = hr })+ },+ finish: () => { if (!useStore.getState().S.active?.editingWorkoutId) finishWorkoutNow() },+ }), [])+ // The Lock Screen's Done (lib/live-activity.js) ticks its set through this same toggle, as if+ // tapped here (rest timer, high-water mark, the end-of-workout sheet). The time is the tap's: the+ // page may hear of it much later (lib/finish-workout.js sessionEnd reads the sets' times), and so+ // is the rest's start.+ const liveToggleRef = useRef(toggle)+ liveToggleRef.current = toggle+ useEffect(() => bindLiveActions({+ setDone: (idx, i, { at }) => {+ const A = useStore.getState().S.active+ if (!A || A.editingWorkoutId || A.entries?.[idx]?.sets?.[i]?.done) return+ const restBefore = useUI.getState().timer+ liveToggleRef.current(idx, i)+ if (!at) return+ mutEntry(idx, en => { const set = en.sets[i]; if (set?.done) set.at = at })+ // The rest this tick started began at the tap, which the Lock Screen has been counting+ // down since: heard of late, it is shortened by that much, or over already.+ const rest = useUI.getState().timer+ const late = Math.floor((Date.now() - at) / 1000)+ if (late > 1 && rest && rest !== restBefore && !rest.ready && !rest.paused) useUI.getState().addRest(-late)+ },+ }), [])+// After the finished exercise folded away (toggle, above): the new current one is the next thing// to do, so if it now sits under the header or low on the screen with little more than its title// showing, it glides up under the header. Where it is already in reach the page stays put. Rundiff --cc scripts/ios/finish-ipa.shindex acef82af9,2d400629a..e49e0bfd1--- a/scripts/ios/finish-ipa.sh+++ b/scripts/ios/finish-ipa.sh@@@ -11,8 -11,7 +11,9 @@@# Usage:# scripts/ios/finish-ipa.sh <App-unsigned.ipa> <dist.p12> <p12-password-file> <profile.mobileprovision> [out.ipa]# EXT_PROFILE=<extension.mobileprovision> ... once the IPA carries the asset pack downloader+ # WIDGETS_PROFILE=<widgets.mobileprovision> ... once it carries the widget extension+# WATCH_PROFILE=<watch.mobileprovision> ... once the IPA carries the Apple Watch app+# WATCH_WIDGET_PROFILE=<widget.mobileprovision> once the watch app carries its widget## Before: the phone build with the app's animations, from the same commit as the IPA:# cd frontend && VITE_CLIP_EXT=webp APP_MEDIA_DIR=/mnt/backup-hdd/opengym-media/build-appwebp npm run build:mobile@@@ -93,46 -96,29 +98,67 @@@ PEXT_SIGN=(--entitlements-xml-file "Extensions/AnimationPacksDownloader.appex/AnimationPacksDownloader:$WORK/ext-entitlements.plist")fi+ # The widget extension (the widgets and the workout's Live Activity, ios/App/OpenGymWidgets): its+ # own App Store profile, given as WIDGETS_PROFILE, for ch.opengym.app.widgets with the App Group.+ WIDGETS="$APP/PlugIns/OpenGymWidgets.appex"+ WIDGETS_SIGN=()+ if [ -d "$WIDGETS" ]; then+ [ -n "${WIDGETS_PROFILE:-}" ] || { echo "the IPA carries OpenGymWidgets.appex: set WIDGETS_PROFILE to its App Store profile" >&2; exit 1; }+ cp "$WIDGETS_PROFILE" "$WIDGETS/embedded.mobileprovision"+ openssl smime -inform der -verify -noverify -in "$WIDGETS_PROFILE" -out "$WORK/widgets-profile.plist" 2>/dev/null+ python3 - "$WORK/widgets-profile.plist" "$WORK/widgets-entitlements.plist" <<'PY'+ import plistlib, sys+ p = plistlib.load(open(sys.argv[1], 'rb'))+ e = dict(p['Entitlements'])+ e['get-task-allow'] = False+ assert e['application-identifier'].endswith('.ch.opengym.app.widgets'), e['application-identifier']+ assert 'group.ch.opengym.app' in e.get('com.apple.security.application-groups', []), 'the widgets profile has no App Group'+ plistlib.dump(e, open(sys.argv[2], 'wb'))+ print('widgets profile:', p['Name'], '| expires', p['ExpirationDate'])+ PY+ WIDGETS_SIGN=(--entitlements-xml-file "PlugIns/OpenGymWidgets.appex/OpenGymWidgets:$WORK/widgets-entitlements.plist")+ fi++# The Apple Watch app (App.app/Watch/OpenGymWatch.app) is signed with its own App Store profile,+# given as WATCH_PROFILE: its bundle id and its entitlements (HealthKit) come from that profile.+WATCH_SIGN=()+WATCH="$APP/Watch/OpenGymWatch.app"+if [ -d "$WATCH" ]; then+ [ -n "${WATCH_PROFILE:-}" ] || { echo "the IPA carries the watch app: set WATCH_PROFILE to its App Store profile" >&2; exit 1; }+ cp "$WATCH_PROFILE" "$WATCH/embedded.mobileprovision"+ openssl smime -inform der -verify -noverify -in "$WATCH_PROFILE" -out "$WORK/watch-profile.plist" 2>/dev/null+ python3 - "$WORK/watch-profile.plist" "$WORK/watch-entitlements.plist" <<'PY'+import plistlib, sys+p = plistlib.load(open(sys.argv[1], 'rb'))+e = dict(p['Entitlements'])+e['get-task-allow'] = False+assert e['application-identifier'].endswith('.ch.opengym.app.watchkitapp'), e['application-identifier']+plistlib.dump(e, open(sys.argv[2], 'wb'))+print('watch profile:', p['Name'], '| expires', p['ExpirationDate'])+PY+ WATCH_SIGN=(--entitlements-xml-file "Watch/OpenGymWatch.app/OpenGymWatch:$WORK/watch-entitlements.plist")+ # Its complications / Smart Stack widget (OpenGymWatch.app/PlugIns), with its own profile.+ WIDGET="$WATCH/PlugIns/OpenGymWatchWidgets.appex"+ if [ -d "$WIDGET" ]; then+ [ -n "${WATCH_WIDGET_PROFILE:-}" ] || { echo "the watch app carries its widget: set WATCH_WIDGET_PROFILE to its App Store profile" >&2; exit 1; }+ cp "$WATCH_WIDGET_PROFILE" "$WIDGET/embedded.mobileprovision"+ openssl smime -inform der -verify -noverify -in "$WATCH_WIDGET_PROFILE" -out "$WORK/widget-profile.plist" 2>/dev/null+ python3 - "$WORK/widget-profile.plist" "$WORK/widget-entitlements.plist" <<'PY'+import plistlib, sys+p = plistlib.load(open(sys.argv[1], 'rb'))+e = dict(p['Entitlements'])+e['get-task-allow'] = False+assert e['application-identifier'].endswith('.ch.opengym.app.watchkitapp.widgets'), e['application-identifier']+assert 'group.ch.opengym.app' in e.get('com.apple.security.application-groups', []), 'the widget profile has no App Group'+plistlib.dump(e, open(sys.argv[2], 'wb'))+print('watch widget profile:', p['Name'], '| expires', p['ExpirationDate'])+PY+ WATCH_SIGN+=(--entitlements-xml-file "Watch/OpenGymWatch.app/PlugIns/OpenGymWatchWidgets.appex/OpenGymWatchWidgets:$WORK/widget-entitlements.plist")+ fi+fi+"$RCODESIGN" sign --p12-file "$P12" --p12-password-file "$P12PASS" \- --entitlements-xml-file "App:$WORK/entitlements.plist" "${EXT_SIGN[@]}" "${WATCH_SIGN[@]}" "$APP"- --entitlements-xml-file "App:$WORK/entitlements.plist" "${EXT_SIGN[@]}" "${WIDGETS_SIGN[@]}" "$APP"++ --entitlements-xml-file "App:$WORK/entitlements.plist" "${EXT_SIGN[@]}" "${WIDGETS_SIGN[@]}" "${WATCH_SIGN[@]}" "$APP"(cd "$WORK/ipa" && rm -f "$OUT" && python3 -m zipfile -c "$OUT" Payload)echo "signed: $OUT ($(du -h "$OUT" | cut -f1), $CLIPS animations)"