From 6cb4278b9843381f9dc5c63228f1a7e9ee1d1f86 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 26 Feb 2026 21:01:42 +0800 Subject: [PATCH] fix: fixed all progress at the last page of the book, closes #3383 (#3391) --- apps/readest-app/public/locales/ar/translation.json | 4 ++-- apps/readest-app/public/locales/bn/translation.json | 4 ++-- apps/readest-app/public/locales/bo/translation.json | 4 ++-- apps/readest-app/public/locales/de/translation.json | 4 ++-- apps/readest-app/public/locales/el/translation.json | 4 ++-- apps/readest-app/public/locales/es/translation.json | 4 ++-- apps/readest-app/public/locales/fa/translation.json | 4 ++-- apps/readest-app/public/locales/fr/translation.json | 4 ++-- apps/readest-app/public/locales/he/translation.json | 4 ++-- apps/readest-app/public/locales/hi/translation.json | 4 ++-- apps/readest-app/public/locales/id/translation.json | 4 ++-- apps/readest-app/public/locales/it/translation.json | 4 ++-- apps/readest-app/public/locales/ja/translation.json | 4 ++-- apps/readest-app/public/locales/ko/translation.json | 4 ++-- apps/readest-app/public/locales/ms/translation.json | 4 ++-- apps/readest-app/public/locales/nl/translation.json | 4 ++-- apps/readest-app/public/locales/pl/translation.json | 4 ++-- apps/readest-app/public/locales/pt/translation.json | 4 ++-- apps/readest-app/public/locales/ru/translation.json | 4 ++-- apps/readest-app/public/locales/si/translation.json | 4 ++-- apps/readest-app/public/locales/sv/translation.json | 4 ++-- apps/readest-app/public/locales/ta/translation.json | 4 ++-- apps/readest-app/public/locales/th/translation.json | 4 ++-- apps/readest-app/public/locales/tr/translation.json | 4 ++-- apps/readest-app/public/locales/uk/translation.json | 4 ++-- apps/readest-app/public/locales/vi/translation.json | 4 ++-- apps/readest-app/public/locales/zh-CN/translation.json | 4 ++-- apps/readest-app/public/locales/zh-TW/translation.json | 4 ++-- .../src/app/reader/components/FoliateViewer.tsx | 8 ++++++-- .../src/app/reader/components/ProgressInfo.tsx | 5 ++--- apps/readest-app/src/components/settings/ControlPanel.tsx | 2 +- 31 files changed, 65 insertions(+), 62 deletions(-) diff --git a/apps/readest-app/public/locales/ar/translation.json b/apps/readest-app/public/locales/ar/translation.json index db145347..89aed9a0 100644 --- a/apps/readest-app/public/locales/ar/translation.json +++ b/apps/readest-app/public/locales/ar/translation.json @@ -619,7 +619,6 @@ "Device": "الجهاز", "E-Ink Mode": "وضع الحبر الإلكتروني", "Highlight Colors": "ألوان التمييز", - "Auto Screen Brightness": "سطوع الشاشة التلقائي", "Pagination": "التقسيم إلى صفحات", "Disable Double Tap": "تعطيل النقر المزدوج", "Tap to Paginate": "اضغط للتقسيم إلى صفحات", @@ -1104,5 +1103,6 @@ "Push Highlights": "إرسال التمييزات", "Highlights synced to Readwise": "تمت مزامنة التمييزات مع Readwise", "Readwise sync failed: no internet connection": "فشلت مزامنة Readwise: لا يوجد اتصال بالإنترنت", - "Readwise sync failed: {{error}}": "فشلت مزامنة Readwise: {{error}}" + "Readwise sync failed: {{error}}": "فشلت مزامنة Readwise: {{error}}", + "System Screen Brightness": "سطوع شاشة النظام" } diff --git a/apps/readest-app/public/locales/bn/translation.json b/apps/readest-app/public/locales/bn/translation.json index fbbdf9d4..5f1c40d6 100644 --- a/apps/readest-app/public/locales/bn/translation.json +++ b/apps/readest-app/public/locales/bn/translation.json @@ -603,7 +603,6 @@ "Device": "যন্ত্র", "E-Ink Mode": "ই-ইঙ্ক মোড", "Highlight Colors": "হাইলাইট রঙ", - "Auto Screen Brightness": "স্বয়ংক্রিয় স্ক্রিন উজ্জ্বলতা", "Pagination": "পৃষ্ঠা বিন্যাস", "Disable Double Tap": "ডাবল ট্যাপ অক্ষম করুন", "Tap to Paginate": "পৃষ্ঠায় যেতে ট্যাপ করুন", @@ -1056,5 +1055,6 @@ "Push Highlights": "হাইলাইট পাঠান", "Highlights synced to Readwise": "হাইলাইটগুলি Readwise এ সিঙ্ক করা হয়েছে", "Readwise sync failed: no internet connection": "Readwise সিঙ্ক ব্যর্থ হয়েছে: ইন্টারনেট সংযোগ নেই", - "Readwise sync failed: {{error}}": "Readwise সিঙ্ক ব্যর্থ হয়েছে: {{error}}" + "Readwise sync failed: {{error}}": "Readwise সিঙ্ক ব্যর্থ হয়েছে: {{error}}", + "System Screen Brightness": "সিস্টেম স্ক্রিন উজ্জ্বলতা" } diff --git a/apps/readest-app/public/locales/bo/translation.json b/apps/readest-app/public/locales/bo/translation.json index f26b03aa..a7ca0dea 100644 --- a/apps/readest-app/public/locales/bo/translation.json +++ b/apps/readest-app/public/locales/bo/translation.json @@ -599,7 +599,6 @@ "Device": "རྐྱབ་སྐོར", "E-Ink Mode": "ཡིག་སྒྱུར་སྤོ་བ", "Highlight Colors": "མདོག་ཚད་ཀྱི་བསྡུར་བ།", - "Auto Screen Brightness": "རྒྱབ་སྐོར་གྱི་འོད་ཟེར་རང་འགུལ།", "Pagination": "ཤོག་གདོང་།", "Disable Double Tap": "བརྒྱབ་གདོང་གཉིས་མ་འགྱོད།", "Tap to Paginate": "ཤོག་གདོང་ལ་ཐོག་འགྲོ།", @@ -1044,5 +1043,6 @@ "Push Highlights": "བཀོད་མཆན་སྐྱེལ་བ།", "Highlights synced to Readwise": "བཀོད་མཆན་ Readwise ལ་མཉམ་བྱུང་བྱས་ཟིན།", "Readwise sync failed: no internet connection": "Readwise མཉམ་བྱུང་མ་ཐུབ། དྲ་རྒྱའི་མཐུད་ལམ་མི་འདུག", - "Readwise sync failed: {{error}}": "Readwise མཉམ་བྱུང་མ་ཐུབ། {{error}}" + "Readwise sync failed: {{error}}": "Readwise མཉམ་བྱུང་མ་ཐུབ། {{error}}", + "System Screen Brightness": "མ་ལག་ཤེལ་སྒོའི་གསལ་ཚད།" } diff --git a/apps/readest-app/public/locales/de/translation.json b/apps/readest-app/public/locales/de/translation.json index 9adfeec5..9c12c370 100644 --- a/apps/readest-app/public/locales/de/translation.json +++ b/apps/readest-app/public/locales/de/translation.json @@ -603,7 +603,6 @@ "Device": "Gerät", "E-Ink Mode": "E-Ink-Modus", "Highlight Colors": "Hervorhebungsfarben", - "Auto Screen Brightness": "Automatische Bildschirmhelligkeit", "Pagination": "Seitenumbruch", "Disable Double Tap": "Doppeltippen deaktivieren", "Tap to Paginate": "Tippen zum Blättern", @@ -1056,5 +1055,6 @@ "Push Highlights": "Highlights übertragen", "Highlights synced to Readwise": "Highlights mit Readwise synchronisiert", "Readwise sync failed: no internet connection": "Readwise-Synchronisierung fehlgeschlagen: Keine Internetverbindung", - "Readwise sync failed: {{error}}": "Readwise-Synchronisierung fehlgeschlagen: {{error}}" + "Readwise sync failed: {{error}}": "Readwise-Synchronisierung fehlgeschlagen: {{error}}", + "System Screen Brightness": "System-Bildschirmhelligkeit" } diff --git a/apps/readest-app/public/locales/el/translation.json b/apps/readest-app/public/locales/el/translation.json index 76015aea..15eb5ade 100644 --- a/apps/readest-app/public/locales/el/translation.json +++ b/apps/readest-app/public/locales/el/translation.json @@ -603,7 +603,6 @@ "Device": "Συσκευή", "E-Ink Mode": "Λειτουργία E-Ink", "Highlight Colors": "Χρώματα επισήμανσης", - "Auto Screen Brightness": "Αυτόματη φωτεινότητα οθόνης", "Pagination": "Σελιδοποίηση", "Disable Double Tap": "Απενεργοποίηση διπλού ταπ", "Tap to Paginate": "Ταπ για σελιδοποίηση", @@ -1056,5 +1055,6 @@ "Push Highlights": "Προώθηση επισημάνσεων", "Highlights synced to Readwise": "Οι επισημάνσεις συγχρονίστηκαν στο Readwise", "Readwise sync failed: no internet connection": "Ο συγχρονισμός Readwise απέτυχε: δεν υπάρχει σύνδεση στο διαδίκτυο", - "Readwise sync failed: {{error}}": "Ο συγχρονισμός Readwise απέτυχε: {{error}}" + "Readwise sync failed: {{error}}": "Ο συγχρονισμός Readwise απέτυχε: {{error}}", + "System Screen Brightness": "Φωτεινότητα οθόνης συστήματος" } diff --git a/apps/readest-app/public/locales/es/translation.json b/apps/readest-app/public/locales/es/translation.json index 45ff9f7f..4dfc7f9b 100644 --- a/apps/readest-app/public/locales/es/translation.json +++ b/apps/readest-app/public/locales/es/translation.json @@ -607,7 +607,6 @@ "Device": "Dispositivo", "E-Ink Mode": "Modo E-Ink", "Highlight Colors": "Colores de resaltado", - "Auto Screen Brightness": "Brillo automático de pantalla", "Pagination": "Paginación", "Disable Double Tap": "Deshabilitar Doble Toque", "Tap to Paginate": "Tocar para Paginación", @@ -1068,5 +1067,6 @@ "Push Highlights": "Enviar resaltados", "Highlights synced to Readwise": "Resaltados sincronizados con Readwise", "Readwise sync failed: no internet connection": "Error en la sincronización con Readwise: sin conexión a internet", - "Readwise sync failed: {{error}}": "Error en la sincronización con Readwise: {{error}}" + "Readwise sync failed: {{error}}": "Error en la sincronización con Readwise: {{error}}", + "System Screen Brightness": "Brillo de pantalla del sistema" } diff --git a/apps/readest-app/public/locales/fa/translation.json b/apps/readest-app/public/locales/fa/translation.json index 6989ce44..56ec1498 100644 --- a/apps/readest-app/public/locales/fa/translation.json +++ b/apps/readest-app/public/locales/fa/translation.json @@ -603,7 +603,6 @@ "Device": "دستگاه", "E-Ink Mode": "حالت E-Ink", "Highlight Colors": "رنگ‌های هایلایت", - "Auto Screen Brightness": "روشنایی خودکار صفحه", "Pagination": "صفحه‌بندی", "Disable Double Tap": "غیرفعال کردن کلیک دوبل", "Tap to Paginate": "ضربه برای صفحه‌بندی", @@ -1056,5 +1055,6 @@ "Push Highlights": "ارسال هایلایت‌ها", "Highlights synced to Readwise": "هایلایت‌ها با Readwise همگام‌سازی شدند", "Readwise sync failed: no internet connection": "همگام‌سازی Readwise ناموفق بود: اتصال اینترنت برقرار نیست", - "Readwise sync failed: {{error}}": "همگام‌سازی Readwise ناموفق بود: {{error}}" + "Readwise sync failed: {{error}}": "همگام‌سازی Readwise ناموفق بود: {{error}}", + "System Screen Brightness": "روشنایی صفحه نمایش سیستم" } diff --git a/apps/readest-app/public/locales/fr/translation.json b/apps/readest-app/public/locales/fr/translation.json index 71523d76..20e41455 100644 --- a/apps/readest-app/public/locales/fr/translation.json +++ b/apps/readest-app/public/locales/fr/translation.json @@ -607,7 +607,6 @@ "Device": "Appareil", "E-Ink Mode": "Mode E-Ink", "Highlight Colors": "Couleurs de Surlignage", - "Auto Screen Brightness": "Luminosité Automatique de l'Écran", "Pagination": "Pagination", "Disable Double Tap": "Désactiver le Double Tap", "Tap to Paginate": "Tapoter pour Paginater", @@ -1068,5 +1067,6 @@ "Push Highlights": "Pousser les surlignages", "Highlights synced to Readwise": "Surlignages synchronisés avec Readwise", "Readwise sync failed: no internet connection": "Échec de la synchronisation Readwise : pas de connexion internet", - "Readwise sync failed: {{error}}": "Échec de la synchronisation Readwise : {{error}}" + "Readwise sync failed: {{error}}": "Échec de la synchronisation Readwise : {{error}}", + "System Screen Brightness": "Luminosité de l'écran système" } diff --git a/apps/readest-app/public/locales/he/translation.json b/apps/readest-app/public/locales/he/translation.json index 756cabde..fb6ccecd 100644 --- a/apps/readest-app/public/locales/he/translation.json +++ b/apps/readest-app/public/locales/he/translation.json @@ -878,7 +878,6 @@ "Device": "מכשיר", "E-Ink Mode": "מצב E-Ink", "Color E-Ink Mode": "מצב E-Ink צבעוני", - "Auto Screen Brightness": "בהירות מסך אוטומטית", "Security": "אבטחה", "Allow JavaScript": "אפשר JavaScript", "Enable only if you trust the file.": "הפעל רק אם אתה בוטח בקובץ.", @@ -1068,5 +1067,6 @@ "Push Highlights": "שלח הדגשות", "Highlights synced to Readwise": "ההדגשות סונכרנו ל-Readwise", "Readwise sync failed: no internet connection": "סנכרון Readwise נכשל: אין חיבור לאינטרנט", - "Readwise sync failed: {{error}}": "סנכרון Readwise נכשל: {{error}}" + "Readwise sync failed: {{error}}": "סנכרון Readwise נכשל: {{error}}", + "System Screen Brightness": "בהירות מסך המערכת" } diff --git a/apps/readest-app/public/locales/hi/translation.json b/apps/readest-app/public/locales/hi/translation.json index c1128779..40811ee8 100644 --- a/apps/readest-app/public/locales/hi/translation.json +++ b/apps/readest-app/public/locales/hi/translation.json @@ -603,7 +603,6 @@ "Device": "डिवाइस", "E-Ink Mode": "ई-इंक मोड", "Highlight Colors": "हाइलाइट रंग", - "Auto Screen Brightness": "स्वचालित स्क्रीन ब्राइटनेस", "Pagination": "पृष्ठांकन", "Disable Double Tap": "डबल टैप अक्षम करें", "Tap to Paginate": "पृष्ठांकन के लिए टैप करें", @@ -1056,5 +1055,6 @@ "Push Highlights": "हाइलाइट्स भेजें", "Highlights synced to Readwise": "हाइलाइट्स Readwise में सिंक हो गए", "Readwise sync failed: no internet connection": "Readwise सिंक विफल रहा: कोई इंटरनेट कनेक्शन नहीं", - "Readwise sync failed: {{error}}": "Readwise सिंक विफल रहा: {{error}}" + "Readwise sync failed: {{error}}": "Readwise सिंक विफल रहा: {{error}}", + "System Screen Brightness": "सिस्टम स्क्रीन चमक" } diff --git a/apps/readest-app/public/locales/id/translation.json b/apps/readest-app/public/locales/id/translation.json index 64dec6e1..ce0f9c6d 100644 --- a/apps/readest-app/public/locales/id/translation.json +++ b/apps/readest-app/public/locales/id/translation.json @@ -599,7 +599,6 @@ "Device": "Perangkat", "E-Ink Mode": "Mode E-Ink", "Highlight Colors": "Warna Sorotan", - "Auto Screen Brightness": "Auto Kecerahan Layar", "Pagination": "Paginasi", "Disable Double Tap": "Nonaktifkan Ketuk Ganda", "Tap to Paginate": "Ketuk untuk Paginasi", @@ -1044,5 +1043,6 @@ "Push Highlights": "Kirim Sorotan", "Highlights synced to Readwise": "Sorotan disinkronkan ke Readwise", "Readwise sync failed: no internet connection": "Sinkronisasi Readwise gagal: tidak ada koneksi internet", - "Readwise sync failed: {{error}}": "Sinkronisasi Readwise gagal: {{error}}" + "Readwise sync failed: {{error}}": "Sinkronisasi Readwise gagal: {{error}}", + "System Screen Brightness": "Kecerahan Layar Sistem" } diff --git a/apps/readest-app/public/locales/it/translation.json b/apps/readest-app/public/locales/it/translation.json index ff9cad41..dacad684 100644 --- a/apps/readest-app/public/locales/it/translation.json +++ b/apps/readest-app/public/locales/it/translation.json @@ -607,7 +607,6 @@ "Device": "Dispositivo", "E-Ink Mode": "Modalità E-Ink", "Highlight Colors": "Colori Evidenziazione", - "Auto Screen Brightness": "Luminosità schermo automatica", "Pagination": "Impaginazione", "Disable Double Tap": "Disabilita Doppio Tap", "Tap to Paginate": "Tocca per Impaginare", @@ -1068,5 +1067,6 @@ "Push Highlights": "Invia evidenziazioni", "Highlights synced to Readwise": "Evidenziazioni sincronizzate su Readwise", "Readwise sync failed: no internet connection": "Sincronizzazione Readwise fallita: nessuna connessione internet", - "Readwise sync failed: {{error}}": "Sincronizzazione Readwise fallita: {{error}}" + "Readwise sync failed: {{error}}": "Sincronizzazione Readwise fallita: {{error}}", + "System Screen Brightness": "Luminosità dello schermo del sistema" } diff --git a/apps/readest-app/public/locales/ja/translation.json b/apps/readest-app/public/locales/ja/translation.json index d7fccbc6..cbebfe89 100644 --- a/apps/readest-app/public/locales/ja/translation.json +++ b/apps/readest-app/public/locales/ja/translation.json @@ -599,7 +599,6 @@ "Device": "デバイス", "E-Ink Mode": "E-Inkモード", "Highlight Colors": "ハイライトカラー", - "Auto Screen Brightness": "自動画面の明るさ", "Pagination": "ページネーション", "Disable Double Tap": "ダブルタップを無効にする", "Tap to Paginate": "タップしてページを切り替える", @@ -1044,5 +1043,6 @@ "Push Highlights": "ハイライトをプッシュ", "Highlights synced to Readwise": "ハイライトが Readwise に同期されました", "Readwise sync failed: no internet connection": "Readwise 同期失敗:インターネット接続がありません", - "Readwise sync failed: {{error}}": "Readwise 同期失敗:{{error}}" + "Readwise sync failed: {{error}}": "Readwise 同期失敗:{{error}}", + "System Screen Brightness": "システムの画面の明るさ" } diff --git a/apps/readest-app/public/locales/ko/translation.json b/apps/readest-app/public/locales/ko/translation.json index f3c68703..138d8300 100644 --- a/apps/readest-app/public/locales/ko/translation.json +++ b/apps/readest-app/public/locales/ko/translation.json @@ -599,7 +599,6 @@ "Device": "장치", "E-Ink Mode": "E-Ink 모드", "Highlight Colors": "하이라이트 색상", - "Auto Screen Brightness": "자동 화면 밝기", "Pagination": "페이지 매김", "Disable Double Tap": "더블 탭 비활성화", "Tap to Paginate": "탭하여 페이지 매김", @@ -1044,5 +1043,6 @@ "Push Highlights": "하이라이트 푸시", "Highlights synced to Readwise": "하이라이트가 Readwise에 동기화되었습니다", "Readwise sync failed: no internet connection": "Readwise 동기화 실패: 인터넷 연결 없음", - "Readwise sync failed: {{error}}": "Readwise 동기화 실패: {{error}}" + "Readwise sync failed: {{error}}": "Readwise 동기화 실패: {{error}}", + "System Screen Brightness": "시스템 화면 밝기" } diff --git a/apps/readest-app/public/locales/ms/translation.json b/apps/readest-app/public/locales/ms/translation.json index bd4bca1b..4a10986b 100644 --- a/apps/readest-app/public/locales/ms/translation.json +++ b/apps/readest-app/public/locales/ms/translation.json @@ -517,7 +517,6 @@ "Paging Animation": "Animasi Halaman", "Device": "Peranti", "E-Ink Mode": "Mod E-Ink", - "Auto Screen Brightness": "Kecerahan Skrin Auto", "Security": "Keselamatan", "Allow JavaScript": "Benarkan JavaScript", "Enable only if you trust the file.": "Aktifkan hanya jika anda mempercayai fail.", @@ -1044,5 +1043,6 @@ "Push Highlights": "Hantar Sorotan", "Highlights synced to Readwise": "Sorotan disinkronkan ke Readwise", "Readwise sync failed: no internet connection": "Penyinkronan Readwise gagal: tiada sambungan internet", - "Readwise sync failed: {{error}}": "Penyinkronan Readwise gagal: {{error}}" + "Readwise sync failed: {{error}}": "Penyinkronan Readwise gagal: {{error}}", + "System Screen Brightness": "Kecerahan Skrin Sistem" } diff --git a/apps/readest-app/public/locales/nl/translation.json b/apps/readest-app/public/locales/nl/translation.json index 838756e0..687d4f43 100644 --- a/apps/readest-app/public/locales/nl/translation.json +++ b/apps/readest-app/public/locales/nl/translation.json @@ -603,7 +603,6 @@ "Device": "Apparaat", "E-Ink Mode": "E-Ink Modus", "Highlight Colors": "Markeerkleuren", - "Auto Screen Brightness": "Automatische Schermhelderheid", "Pagination": "Paginering", "Disable Double Tap": "Schakel Dubbel Tikken Uit", "Tap to Paginate": "Tik om te Pagineren", @@ -1056,5 +1055,6 @@ "Push Highlights": "Markeringen verzenden", "Highlights synced to Readwise": "Markeringen gesynchroniseerd met Readwise", "Readwise sync failed: no internet connection": "Readwise-synchronisatie mislukt: geen internetverbinding", - "Readwise sync failed: {{error}}": "Readwise-synchronisatie mislukt: {{error}}" + "Readwise sync failed: {{error}}": "Readwise-synchronisatie mislukt: {{error}}", + "System Screen Brightness": "Systeemhelderheid van het scherm" } diff --git a/apps/readest-app/public/locales/pl/translation.json b/apps/readest-app/public/locales/pl/translation.json index 22db52e8..a7802b2b 100644 --- a/apps/readest-app/public/locales/pl/translation.json +++ b/apps/readest-app/public/locales/pl/translation.json @@ -611,7 +611,6 @@ "Device": "Urządzenie", "E-Ink Mode": "Tryb E-Ink", "Highlight Colors": "Kolory wyróżnień", - "Auto Screen Brightness": "Automatyczna jasność ekranu", "Pagination": "Stronicowanie", "Disable Double Tap": "Wyłącz podwójne dotknięcie", "Tap to Paginate": "Dotknij, aby stronicować", @@ -1080,5 +1079,6 @@ "Push Highlights": "Wyślij wyróżnienia", "Highlights synced to Readwise": "Wyróżnienia zsynchronizowane z Readwise", "Readwise sync failed: no internet connection": "Synchronizacja Readwise nie powiodła się: brak połączenia z Internetem", - "Readwise sync failed: {{error}}": "Synchronizacja Readwise nie powiodła się: {{error}}" + "Readwise sync failed: {{error}}": "Synchronizacja Readwise nie powiodła się: {{error}}", + "System Screen Brightness": "Jasność ekranu systemowego" } diff --git a/apps/readest-app/public/locales/pt/translation.json b/apps/readest-app/public/locales/pt/translation.json index cd193571..c88ef0de 100644 --- a/apps/readest-app/public/locales/pt/translation.json +++ b/apps/readest-app/public/locales/pt/translation.json @@ -607,7 +607,6 @@ "Device": "Dispositivo", "E-Ink Mode": "Modo E-Ink", "Highlight Colors": "Cores de Destaque", - "Auto Screen Brightness": "Brilho Automático da Tela", "Pagination": "Paginação", "Disable Double Tap": "Desativar Toque Duplo", "Tap to Paginate": "Toque para Paginar", @@ -1068,5 +1067,6 @@ "Push Highlights": "Enviar destaques", "Highlights synced to Readwise": "Destaques sincronizados com o Readwise", "Readwise sync failed: no internet connection": "Sincronização com o Readwise falhou: sem conexão com a internet", - "Readwise sync failed: {{error}}": "Sincronização com o Readwise falhou: {{error}}" + "Readwise sync failed: {{error}}": "Sincronização com o Readwise falhou: {{error}}", + "System Screen Brightness": "Brilho da tela do sistema" } diff --git a/apps/readest-app/public/locales/ru/translation.json b/apps/readest-app/public/locales/ru/translation.json index 406cfd23..16273b23 100644 --- a/apps/readest-app/public/locales/ru/translation.json +++ b/apps/readest-app/public/locales/ru/translation.json @@ -611,7 +611,6 @@ "Device": "Устройство", "E-Ink Mode": "E-Ink режим", "Highlight Colors": "Цвета выделения", - "Auto Screen Brightness": "Автояркость экрана", "Pagination": "Пагинация", "Disable Double Tap": "Отключить двойной тап", "Tap to Paginate": "Тапните, чтобы разбить на страницы", @@ -1080,5 +1079,6 @@ "Push Highlights": "Отправить выделения", "Highlights synced to Readwise": "Выделения синхронизированы с Readwise", "Readwise sync failed: no internet connection": "Синхронизация Readwise не удалась: нет интернет-соединения", - "Readwise sync failed: {{error}}": "Синхронизация Readwise не удалась: {{error}}" + "Readwise sync failed: {{error}}": "Синхронизация Readwise не удалась: {{error}}", + "System Screen Brightness": "Систেমная яркость экрана" } diff --git a/apps/readest-app/public/locales/si/translation.json b/apps/readest-app/public/locales/si/translation.json index 7baa8eac..851e1179 100644 --- a/apps/readest-app/public/locales/si/translation.json +++ b/apps/readest-app/public/locales/si/translation.json @@ -603,7 +603,6 @@ "Device": "උපකරණය", "E-Ink Mode": "E-Ink ආකාරය", "Highlight Colors": "ඉස්මතු වර්ණ", - "Auto Screen Brightness": "ස්වයංක්‍රීය තිර දිදුලනුම", "Pagination": "පිටුගත කිරීම", "Disable Double Tap": "දෙවරක් ටැප් කිරීම අබල කරන්න", "Tap to Paginate": "පිටුගත කිරීමට ටැප් කරන්න", @@ -1056,5 +1055,6 @@ "Push Highlights": "විශේෂ අවස්ථා යොමු කරන්න", "Highlights synced to Readwise": "විශේෂ අවස්ථා Readwise සමඟ සමමුහුර්ත විය", "Readwise sync failed: no internet connection": "Readwise සමමුහුර්තකරණය අසාර්ථක විය: අන්තර්ජාල සම්බන්ධතාවයක් නොමැත", - "Readwise sync failed: {{error}}": "Readwise සමමුහුර්තකරණය අසාර්ථක විය: {{error}}" + "Readwise sync failed: {{error}}": "Readwise සමමුහුර්තකරණය අසාර්ථක විය: {{error}}", + "System Screen Brightness": "පද්ධති තිර දීප්තිය" } diff --git a/apps/readest-app/public/locales/sv/translation.json b/apps/readest-app/public/locales/sv/translation.json index 1e953ca4..b133dee2 100644 --- a/apps/readest-app/public/locales/sv/translation.json +++ b/apps/readest-app/public/locales/sv/translation.json @@ -603,7 +603,6 @@ "Device": "Enhet", "E-Ink Mode": "E-Ink-läge", "Highlight Colors": "Markeringsfärger", - "Auto Screen Brightness": "Auto-skärmens ljusstyrka", "Pagination": "Pagination", "Disable Double Tap": "Inaktivera dubbeltryck", "Tap to Paginate": "Tryck för att bläddra", @@ -1056,5 +1055,6 @@ "Push Highlights": "Skicka markeringar", "Highlights synced to Readwise": "Markeringar synkroniserade till Readwise", "Readwise sync failed: no internet connection": "Readwise-synkronisering misslyckades: ingen internetanslutning", - "Readwise sync failed: {{error}}": "Readwise-synkronisering misslyckades: {{error}}" + "Readwise sync failed: {{error}}": "Readwise-synkronisering misslyckades: {{error}}", + "System Screen Brightness": "Systemets skärmljusstyrka" } diff --git a/apps/readest-app/public/locales/ta/translation.json b/apps/readest-app/public/locales/ta/translation.json index 1451af1c..6d9865b8 100644 --- a/apps/readest-app/public/locales/ta/translation.json +++ b/apps/readest-app/public/locales/ta/translation.json @@ -603,7 +603,6 @@ "Device": "சாதனம்", "E-Ink Mode": "E-Ink முறை", "Highlight Colors": "முத்திரை நிறங்கள்", - "Auto Screen Brightness": "தானியங்கி திரை பிரகாசம்", "Pagination": "பக்கமிடுதல்", "Disable Double Tap": "இரட்டை தொடுதலை முடக்கு", "Tap to Paginate": "பக்கம் மாற்ற தொடுங்கள்", @@ -1056,5 +1055,6 @@ "Push Highlights": "சிறப்பம்சங்களை அனுப்பு", "Highlights synced to Readwise": "சிறப்பம்சங்கள் Readwise உடன் ஒத்திசைக்கப்பட்டன", "Readwise sync failed: no internet connection": "Readwise ஒத்திசைவு தோல்வியடைந்தது: இணைய இணைப்பு இல்லை", - "Readwise sync failed: {{error}}": "Readwise ஒத்திசைவு தோல்வியடைந்தது: {{error}}" + "Readwise sync failed: {{error}}": "Readwise ஒத்திசைவு தோல்வியடைந்தது: {{error}}", + "System Screen Brightness": "கணினித் திரை பிரகாசம்" } diff --git a/apps/readest-app/public/locales/th/translation.json b/apps/readest-app/public/locales/th/translation.json index bc225943..1a91eba6 100644 --- a/apps/readest-app/public/locales/th/translation.json +++ b/apps/readest-app/public/locales/th/translation.json @@ -599,7 +599,6 @@ "Device": "อุปกรณ์", "E-Ink Mode": "โหมด E-Ink", "Highlight Colors": "สีไฮไลต์", - "Auto Screen Brightness": "ความสว่างหน้าจออัตโนมัติ", "Pagination": "การแบ่งหน้า", "Disable Double Tap": "ปิดการแตะสองครั้ง", "Tap to Paginate": "แตะเพื่อแบ่งหน้า", @@ -1044,5 +1043,6 @@ "Push Highlights": "พุชไฮไลต์", "Highlights synced to Readwise": "ซิงค์ไฮไลต์ไปยัง Readwise แล้ว", "Readwise sync failed: no internet connection": "การซิงค์ Readwise ล้มเหลว: ไม่มีการเชื่อมต่ออินเทอร์เน็ต", - "Readwise sync failed: {{error}}": "การซิงค์ Readwise ล้มเหลว: {{error}}" + "Readwise sync failed: {{error}}": "การซิงค์ Readwise ล้มเหลว: {{error}}", + "System Screen Brightness": "ความสว่างหน้าจอระบบ" } diff --git a/apps/readest-app/public/locales/tr/translation.json b/apps/readest-app/public/locales/tr/translation.json index 29319ac9..eeb3f623 100644 --- a/apps/readest-app/public/locales/tr/translation.json +++ b/apps/readest-app/public/locales/tr/translation.json @@ -603,7 +603,6 @@ "Device": "Cihaz", "E-Ink Mode": "E-Ink Modu", "Highlight Colors": "Vurgu Renkleri", - "Auto Screen Brightness": "Otomatik Ekran Parlaklığı", "Pagination": "Sayfalama", "Disable Double Tap": "Çift Dokunmayı Devre Dışı Bırak", "Tap to Paginate": "Sayfalamak için Dokunun", @@ -1056,5 +1055,6 @@ "Push Highlights": "Vurguları Gönder", "Highlights synced to Readwise": "Vurgular Readwise ile senkronize edildi", "Readwise sync failed: no internet connection": "Readwise senkronizasyonu başarısız: internet bağlantısı yok", - "Readwise sync failed: {{error}}": "Readwise senkronizasyonu başarısız: {{error}}" + "Readwise sync failed: {{error}}": "Readwise senkronizasyonu başarısız: {{error}}", + "System Screen Brightness": "Sistem Ekran Parlaklığı" } diff --git a/apps/readest-app/public/locales/uk/translation.json b/apps/readest-app/public/locales/uk/translation.json index 2e974792..646155e2 100644 --- a/apps/readest-app/public/locales/uk/translation.json +++ b/apps/readest-app/public/locales/uk/translation.json @@ -611,7 +611,6 @@ "Device": "Пристрій", "E-Ink Mode": "E-Ink режим", "Highlight Colors": "Кольори виділення", - "Auto Screen Brightness": "Автоматична яскравість екрану", "Pagination": "Розбиття на сторінки", "Disable Double Tap": "Вимкнути подвійне натискання", "Tap to Paginate": "Натисніть, щоб розбити на сторінки", @@ -1080,5 +1079,6 @@ "Push Highlights": "Надіслати виділення", "Highlights synced to Readwise": "Виділення синхронізовано з Readwise", "Readwise sync failed: no internet connection": "Синхронізація Readwise не вдалася: немає інтернет-з'єднання", - "Readwise sync failed: {{error}}": "Синхронізація Readwise не вдалася: {{error}}" + "Readwise sync failed: {{error}}": "Синхронізація Readwise не вдалася: {{error}}", + "System Screen Brightness": "Системна яскравість екрана" } diff --git a/apps/readest-app/public/locales/vi/translation.json b/apps/readest-app/public/locales/vi/translation.json index 6ddc84b7..543f5dd4 100644 --- a/apps/readest-app/public/locales/vi/translation.json +++ b/apps/readest-app/public/locales/vi/translation.json @@ -599,7 +599,6 @@ "Device": "Thiết bị", "E-Ink Mode": "Chế độ E-Ink", "Highlight Colors": "Màu nổi bật", - "Auto Screen Brightness": "Độ sáng màn hình tự động", "Pagination": "Phân trang", "Disable Double Tap": "Vô hiệu hóa chạm hai lần", "Tap to Paginate": "Chạm để phân trang", @@ -1044,5 +1043,6 @@ "Push Highlights": "Đẩy các phần đánh dấu", "Highlights synced to Readwise": "Các phần đánh dấu đã được đồng bộ với Readwise", "Readwise sync failed: no internet connection": "Đồng bộ Readwise thất bại: không có kết nối internet", - "Readwise sync failed: {{error}}": "Đồng bộ Readwise thất bại: {{error}}" + "Readwise sync failed: {{error}}": "Đồng bộ Readwise thất bại: {{error}}", + "System Screen Brightness": "Độ sáng màn hình hệ thống" } diff --git a/apps/readest-app/public/locales/zh-CN/translation.json b/apps/readest-app/public/locales/zh-CN/translation.json index a580e6ea..59a4f050 100644 --- a/apps/readest-app/public/locales/zh-CN/translation.json +++ b/apps/readest-app/public/locales/zh-CN/translation.json @@ -599,7 +599,6 @@ "Device": "设备", "E-Ink Mode": "E-Ink 模式", "Highlight Colors": "高亮颜色", - "Auto Screen Brightness": "自动屏幕亮度", "Pagination": "翻页", "Disable Double Tap": "禁用双击", "Tap to Paginate": "点击翻页", @@ -1044,5 +1043,6 @@ "Push Highlights": "推送高亮内容", "Highlights synced to Readwise": "高亮内容已同步到 Readwise", "Readwise sync failed: no internet connection": "Readwise 同步失败:无网络连接", - "Readwise sync failed: {{error}}": "Readwise 同步失败:{{error}}" + "Readwise sync failed: {{error}}": "Readwise 同步失败:{{error}}", + "System Screen Brightness": "系统屏幕亮度" } diff --git a/apps/readest-app/public/locales/zh-TW/translation.json b/apps/readest-app/public/locales/zh-TW/translation.json index b7008619..c27d62d7 100644 --- a/apps/readest-app/public/locales/zh-TW/translation.json +++ b/apps/readest-app/public/locales/zh-TW/translation.json @@ -599,7 +599,6 @@ "Device": "設備", "E-Ink Mode": "E-Ink 模式", "Highlight Colors": "高亮顏色", - "Auto Screen Brightness": "自動螢幕亮度", "Pagination": "翻頁", "Disable Double Tap": "禁用雙擊", "Tap to Paginate": "點擊翻頁", @@ -1044,5 +1043,6 @@ "Push Highlights": "推送高亮內容", "Highlights synced to Readwise": "高亮內容已同步到 Readwise", "Readwise sync failed: no internet connection": "Readwise 同步失敗:無網路連線", - "Readwise sync failed: {{error}}": "Readwise 同步失敗:{{error}}" + "Readwise sync failed: {{error}}": "Readwise 同步失敗:{{error}}", + "System Screen Brightness": "系統螢幕亮度" } diff --git a/apps/readest-app/src/app/reader/components/FoliateViewer.tsx b/apps/readest-app/src/app/reader/components/FoliateViewer.tsx index 80c35d06..43608190 100644 --- a/apps/readest-app/src/app/reader/components/FoliateViewer.tsx +++ b/apps/readest-app/src/app/reader/components/FoliateViewer.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useState, useCallback } from 'react'; import { convertBlobUrlToDataUrl, BookDoc, getDirection } from '@/libs/document'; -import { BookConfig } from '@/types/book'; +import { BookConfig, PageInfo } from '@/types/book'; import { FoliateView, wrappedFoliateView } from '@/types/view'; import { Insets } from '@/types/misc'; import { useEnv } from '@/context/EnvContext'; @@ -124,12 +124,16 @@ const FoliateViewer: React.FC<{ const progressRelocateHandler = (event: Event) => { const detail = (event as CustomEvent).detail; + const atEnd = viewRef.current?.renderer.atEnd || false; + const { current, next, total } = detail.location as PageInfo; + const currentPage = atEnd && total > 0 ? total - 1 : current; + const pageInfo = { current: currentPage, next, total }; setProgress( bookKey, detail.cfi, detail.tocItem, detail.section, - detail.location, + pageInfo, detail.time, detail.range, ); diff --git a/apps/readest-app/src/app/reader/components/ProgressInfo.tsx b/apps/readest-app/src/app/reader/components/ProgressInfo.tsx index 4a8de801..6c6c6b82 100644 --- a/apps/readest-app/src/app/reader/components/ProgressInfo.tsx +++ b/apps/readest-app/src/app/reader/components/ProgressInfo.tsx @@ -46,13 +46,12 @@ const ProgressInfoView: React.FC = ({ : '{current} / {total}' : '{percent}%'; - const { page = 0, pages = 0, atEnd = false } = view?.renderer || {}; const lang = localStorage?.getItem('i18nextLng') || ''; const localize = isVertical && lang.toLowerCase().startsWith('zh'); const pageInfo = bookData?.isFixedLayout ? section : pageinfo; - const currentPage = atEnd && pageInfo?.total ? pageInfo.total - 1 : pageInfo?.current; - const progressInfo = formatProgress(currentPage, pageInfo?.total, template, localize, lang); + const progressInfo = formatProgress(pageInfo?.current, pageInfo?.total, template, localize, lang); + const { page = 0, pages = 0 } = view?.renderer || {}; const current = page; const total = pages; const pagesLeft = Math.max(total - current - 1, 0); diff --git a/apps/readest-app/src/components/settings/ControlPanel.tsx b/apps/readest-app/src/components/settings/ControlPanel.tsx index 53c76b8c..7bb71594 100644 --- a/apps/readest-app/src/components/settings/ControlPanel.tsx +++ b/apps/readest-app/src/components/settings/ControlPanel.tsx @@ -415,7 +415,7 @@ const ControlPanel: React.FC = ({ bookKey, onRegisterRes )} {appService?.isMobileApp && (
- {_('Auto Screen Brightness')} + {_('System Screen Brightness')}