Signed in, the server's profile is the truth: sign-in and pairing adopt it and ask once about workouts logged while signed out (Add them / Keep profile as is); the app polls the revision every 30 s and on every resume (GET /api/data/rev) and fetches only what moved; offline and unsynced states show a banner, retry on reconnect and confirm with a toast; pagehide flushes a pending change
This commit is contained in:
1 parent
28a068b8f0
commit
826432a3a2
30 files changed
+541
-37
No files matched your search
@@ -1237,4 +1237,13 @@ export default {
|
||||
'Exercise': 'Übung',
|
||||
'Layout': 'Layout',
|
||||
'No exercises yet.': 'Noch keine Übungen.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Trainings von diesem Gerät zum Profil hinzufügen?',
|
||||
'{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} Trainings und {1} Wiegungen wurden auf diesem Gerät ohne Anmeldung erfasst. Zum Profil hinzufügen oder das Profil genau so lassen, wie es auf dem Server ist.',
|
||||
'Add them': 'Hinzufügen',
|
||||
'Keep profile as is': 'Profil so lassen',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — deine Änderungen sind auf diesem Gerät gespeichert und werden synchronisiert, sobald du wieder online bist.',
|
||||
'Offline — showing the last copy synced with the server.': 'Offline — zeigt die zuletzt mit dem Server synchronisierte Kopie.',
|
||||
'Not synced yet — tap to retry.': 'Noch nicht synchronisiert — tippen zum Wiederholen.',
|
||||
'Back online — synced with the server.': 'Wieder online — mit dem Server synchronisiert.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Ejercicio',
|
||||
'Layout': 'Diseño',
|
||||
'No exercises yet.': 'Aún no hay ejercicios.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': '¿Añadir los entrenamientos de este dispositivo a tu perfil?',
|
||||
'{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} entrenamientos y {1} pesajes se registraron en este dispositivo sin iniciar sesión. Añádelos a tu perfil o deja el perfil exactamente como está en el servidor.',
|
||||
'Add them': 'Añadirlos',
|
||||
'Keep profile as is': 'Dejar el perfil como está',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Sin conexión: tus cambios se guardan en este dispositivo y se sincronizarán cuando vuelvas a estar en línea.',
|
||||
'Offline — showing the last copy synced with the server.': 'Sin conexión: se muestra la última copia sincronizada con el servidor.',
|
||||
'Not synced yet — tap to retry.': 'Aún no sincronizado: toca para reintentar.',
|
||||
'Back online — synced with the server.': 'De nuevo en línea: sincronizado con el servidor.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Exercice',
|
||||
'Layout': 'Disposition',
|
||||
'No exercises yet.': 'Aucun exercice pour l’instant.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Ajouter les séances de cet appareil à votre profil ?',
|
||||
'{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} séances et {1} pesées ont été enregistrées sur cet appareil sans connexion. Ajoutez-les à votre profil ou gardez le profil exactement tel qu’il est sur le serveur.',
|
||||
'Add them': 'Les ajouter',
|
||||
'Keep profile as is': 'Garder le profil tel quel',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Hors ligne — vos modifications sont enregistrées sur cet appareil et seront synchronisées dès le retour de la connexion.',
|
||||
'Offline — showing the last copy synced with the server.': 'Hors ligne — affichage de la dernière copie synchronisée avec le serveur.',
|
||||
'Not synced yet — tap to retry.': 'Pas encore synchronisé — touchez pour réessayer.',
|
||||
'Back online — synced with the server.': 'De retour en ligne — synchronisé avec le serveur.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'व्यायाम',
|
||||
'Layout': 'लेआउट',
|
||||
'No exercises yet.': 'अभी कोई व्यायाम नहीं।',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'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} वज़न इस डिवाइस पर बिना साइन इन किए दर्ज किए गए। इन्हें अपनी प्रोफ़ाइल में जोड़ें, या प्रोफ़ाइल को ठीक वैसा ही रखें जैसा सर्वर पर है।',
|
||||
'Add them': 'जोड़ें',
|
||||
'Keep profile as is': 'प्रोफ़ाइल वैसी ही रखें',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'ऑफ़लाइन — आपके बदलाव इस डिवाइस पर सहेजे गए हैं और ऑनलाइन होते ही सिंक हो जाएँगे।',
|
||||
'Offline — showing the last copy synced with the server.': 'ऑफ़लाइन — सर्वर से सिंक की गई आख़िरी प्रति दिखाई जा रही है।',
|
||||
'Not synced yet — tap to retry.': 'अभी सिंक नहीं हुआ — फिर से कोशिश के लिए टैप करें।',
|
||||
'Back online — synced with the server.': 'फिर से ऑनलाइन — सर्वर से सिंक हो गया।',
|
||||
}
|
||||
@@ -1220,4 +1220,13 @@ export default {
|
||||
'Exercise': 'Gyakorlat',
|
||||
'Layout': 'Elrendezés',
|
||||
'No exercises yet.': 'Még nincsenek gyakorlatok.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Hozzáadod az eszközön lévő edzéseket a profilodhoz?',
|
||||
'{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} edzés és {1} mérés került rögzítésre ezen az eszközön bejelentkezés nélkül. Add hozzá őket a profilodhoz, vagy hagyd a profilt pontosan úgy, ahogy a szerveren van.',
|
||||
'Add them': 'Hozzáadás',
|
||||
'Keep profile as is': 'Profil marad',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — a módosításaid ezen az eszközön vannak mentve, és szinkronizálódnak, amint újra online leszel.',
|
||||
'Offline — showing the last copy synced with the server.': 'Offline — a szerverrel utoljára szinkronizált másolat látható.',
|
||||
'Not synced yet — tap to retry.': 'Még nincs szinkronizálva — koppints az újrapróbáláshoz.',
|
||||
'Back online — synced with the server.': 'Újra online — szinkronizálva a szerverrel.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Esercizio',
|
||||
'Layout': 'Layout',
|
||||
'No exercises yet.': 'Ancora nessun esercizio.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Aggiungere gli allenamenti di questo dispositivo al tuo profilo?',
|
||||
'{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} allenamenti e {1} pesate sono stati registrati su questo dispositivo senza accesso. Aggiungili al tuo profilo o lascia il profilo esattamente com’è sul server.',
|
||||
'Add them': 'Aggiungili',
|
||||
'Keep profile as is': 'Lascia il profilo com’è',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — le tue modifiche sono salvate su questo dispositivo e verranno sincronizzate quando tornerai online.',
|
||||
'Offline — showing the last copy synced with the server.': 'Offline — viene mostrata l’ultima copia sincronizzata con il server.',
|
||||
'Not synced yet — tap to retry.': 'Non ancora sincronizzato — tocca per riprovare.',
|
||||
'Back online — synced with the server.': 'Di nuovo online — sincronizzato con il server.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': '운동',
|
||||
'Layout': '레이아웃',
|
||||
'No exercises yet.': '아직 운동이 없습니다.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'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}개가 기록되었습니다. 프로필에 추가하거나 서버에 있는 프로필을 그대로 유지하세요.',
|
||||
'Add them': '추가',
|
||||
'Keep profile as is': '프로필 그대로 유지',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': '오프라인 — 변경 사항은 이 기기에 저장되며 다시 온라인이 되면 동기화됩니다.',
|
||||
'Offline — showing the last copy synced with the server.': '오프라인 — 서버와 마지막으로 동기화된 사본을 표시합니다.',
|
||||
'Not synced yet — tap to retry.': '아직 동기화되지 않음 — 다시 시도하려면 탭하세요.',
|
||||
'Back online — synced with the server.': '다시 온라인 — 서버와 동기화되었습니다.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Ćwiczenie',
|
||||
'Layout': 'Układ',
|
||||
'No exercises yet.': 'Brak ćwiczeń.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Dodać treningi z tego urządzenia do profilu?',
|
||||
'{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} treningów i {1} ważeń zapisano na tym urządzeniu bez logowania. Dodaj je do profilu albo zostaw profil dokładnie taki, jaki jest na serwerze.',
|
||||
'Add them': 'Dodaj',
|
||||
'Keep profile as is': 'Zostaw profil bez zmian',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — zmiany są zapisane na tym urządzeniu i zsynchronizują się, gdy znów będziesz online.',
|
||||
'Offline — showing the last copy synced with the server.': 'Offline — wyświetlana jest ostatnia kopia zsynchronizowana z serwerem.',
|
||||
'Not synced yet — tap to retry.': 'Jeszcze nie zsynchronizowano — dotknij, aby ponowić.',
|
||||
'Back online — synced with the server.': 'Znów online — zsynchronizowano z serwerem.',
|
||||
}
|
||||
@@ -4,6 +4,10 @@
|
||||
import pt from './pt.js'
|
||||
|
||||
export const PT_BR_OVERRIDES = {
|
||||
'{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} treinos e {1} pesagens foram registrados neste dispositivo sem login. Adicione-os ao seu perfil ou mantenha o perfil exatamente como está no servidor.',
|
||||
'Add this device\'s workouts to your profile?': 'Adicionar os treinos deste dispositivo ao seu perfil?',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — suas alterações ficam salvas neste dispositivo e sincronizam assim que você voltar a ficar online.',
|
||||
'Not synced yet — tap to retry.': 'Ainda não sincronizado — toque para tentar novamente.',
|
||||
'Enter a positive step to use this progression rule.': 'Digite um passo positivo para usar esta regra de progressão.',
|
||||
'Layout': 'Layout',
|
||||
'No sessions logged yet': 'Ainda não há sessões registradas',
|
||||
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Exercício',
|
||||
'Layout': 'Disposição',
|
||||
'No exercises yet.': 'Ainda sem exercícios.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Adicionar os treinos deste dispositivo ao teu perfil?',
|
||||
'{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} treinos e {1} pesagens foram registados neste dispositivo sem sessão iniciada. Adiciona-os ao teu perfil ou mantém o perfil exatamente como está no servidor.',
|
||||
'Add them': 'Adicionar',
|
||||
'Keep profile as is': 'Manter o perfil como está',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Offline — as tuas alterações ficam guardadas neste dispositivo e sincronizam assim que voltares a estar online.',
|
||||
'Offline — showing the last copy synced with the server.': 'Offline — a mostrar a última cópia sincronizada com o servidor.',
|
||||
'Not synced yet — tap to retry.': 'Ainda não sincronizado — toca para tentar de novo.',
|
||||
'Back online — synced with the server.': 'De volta online — sincronizado com o servidor.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Упражнение',
|
||||
'Layout': 'Вид',
|
||||
'No exercises yet.': 'Пока нет упражнений.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'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} взвешиваний были записаны на этом устройстве без входа. Добавьте их в профиль или оставьте профиль ровно таким, как на сервере.',
|
||||
'Add them': 'Добавить',
|
||||
'Keep profile as is': 'Оставить профиль как есть',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Офлайн — изменения сохранены на этом устройстве и синхронизируются, как только появится сеть.',
|
||||
'Offline — showing the last copy synced with the server.': 'Офлайн — показана последняя копия, синхронизированная с сервером.',
|
||||
'Not synced yet — tap to retry.': 'Ещё не синхронизировано — нажмите, чтобы повторить.',
|
||||
'Back online — synced with the server.': 'Снова онлайн — синхронизировано с сервером.',
|
||||
}
|
||||
@@ -1228,4 +1228,13 @@ export default {
|
||||
'Exercise': 'ท่าออกกำลังกาย',
|
||||
'Layout': 'เลย์เอาต์',
|
||||
'No exercises yet.': 'ยังไม่มีท่าออกกำลังกาย',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'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} ครั้งบนอุปกรณ์นี้ขณะไม่ได้ลงชื่อเข้าใช้ เพิ่มลงในโปรไฟล์ของคุณ หรือคงโปรไฟล์ไว้ตามที่อยู่บนเซิร์ฟเวอร์',
|
||||
'Add them': 'เพิ่ม',
|
||||
'Keep profile as is': 'คงโปรไฟล์ไว้',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'ออฟไลน์ — การเปลี่ยนแปลงถูกบันทึกไว้ในอุปกรณ์นี้และจะซิงค์เมื่อกลับมาออนไลน์',
|
||||
'Offline — showing the last copy synced with the server.': 'ออฟไลน์ — แสดงสำเนาล่าสุดที่ซิงค์กับเซิร์ฟเวอร์',
|
||||
'Not synced yet — tap to retry.': 'ยังไม่ได้ซิงค์ — แตะเพื่อลองใหม่',
|
||||
'Back online — synced with the server.': 'กลับมาออนไลน์แล้ว — ซิงค์กับเซิร์ฟเวอร์แล้ว',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': 'Egzersiz',
|
||||
'Layout': 'Düzen',
|
||||
'No exercises yet.': 'Henüz egzersiz yok.',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'Add this device\'s workouts to your profile?': 'Bu cihazdaki antrenmanlar profiline eklensin mi?',
|
||||
'{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.': 'Bu cihazda oturum açılmadan {0} antrenman ve {1} tartım kaydedildi. Bunları profiline ekle ya da profili sunucudaki hâliyle bırak.',
|
||||
'Add them': 'Ekle',
|
||||
'Keep profile as is': 'Profili olduğu gibi bırak',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': 'Çevrimdışı — değişikliklerin bu cihazda kayıtlı, tekrar çevrimiçi olunca eşitlenecek.',
|
||||
'Offline — showing the last copy synced with the server.': 'Çevrimdışı — sunucuyla en son eşitlenen kopya gösteriliyor.',
|
||||
'Not synced yet — tap to retry.': 'Henüz eşitlenmedi — yeniden denemek için dokun.',
|
||||
'Back online — synced with the server.': 'Yeniden çevrimiçi — sunucuyla eşitlendi.',
|
||||
}
|
||||
@@ -1217,4 +1217,13 @@ export default {
|
||||
'Exercise': '动作',
|
||||
'Layout': '布局',
|
||||
'No exercises yet.': '还没有动作。',
|
||||
// --- sign-in adoption + offline banner (v1.3.6) ---
|
||||
'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} 次体重。把它们加入你的个人资料,或保持个人资料与服务器上的完全一致。',
|
||||
'Add them': '加入',
|
||||
'Keep profile as is': '保持不变',
|
||||
'Offline — your changes are saved on this device and sync when you are back online.': '离线 — 你的更改已保存在此设备上,恢复联网后会自动同步。',
|
||||
'Offline — showing the last copy synced with the server.': '离线 — 正在显示最后一次与服务器同步的副本。',
|
||||
'Not synced yet — tap to retry.': '尚未同步 — 点按重试。',
|
||||
'Back online — synced with the server.': '已恢复联网 — 已与服务器同步。',
|
||||
}
|
||||
Reference in new issue
Block a user