Add terms of use translations, sync detection, and refactor book components

- Introduced new translations for terms of use in French and English locales.
- Added sync status detection logic for books in `BookList` and `BookCard` components.
- Refactored `BookCard` to handle additional props and improve layout flexibility.
- Enhanced `TermsOfUse` component with complete localization support and refuse functionality.
- Updated data decryption logic in Rust services to handle optional fields and additional metadata consistently.
- Improved offline/online synchronization workflows with extended context properties.
This commit is contained in:
natreex
2026-03-23 11:56:35 -04:00
parent 64ed90d993
commit a114592ac9
23 changed files with 588 additions and 438 deletions

View File

@@ -1372,7 +1372,29 @@
"passwordUnknown": "An unknown error occurred."
}
},
"terms": {
"title": "Terms of Use",
"subtitle": "Acceptance required to access ERitors Scribe",
"mandatory": "Mandatory acceptance",
"mandatoryDesc1": "To use our services, such as <strong>ERitors Scribe</strong>, you must accept the terms of use by clicking <strong>I accept</strong>.",
"mandatoryDesc2": "Please carefully read the detailed terms and conditions page before proceeding with acceptance.",
"mandatoryDesc3": "If you do not accept these conditions, you will not be able to access our services and will be redirected to the home page.",
"fullDoc": "Full documentation",
"fullDocDesc": "To view our complete terms and conditions, please visit our dedicated page:",
"fullDocLink": "View full terms",
"importance": "Critical importance",
"importanceDesc": "This acceptance is mandatory and constitutes a legal prerequisite for the use of our AI-assisted editing services.",
"required": "Decision required to continue",
"refuse": "Decline and exit",
"accept": "I accept the terms"
},
"offline": {
"toggle": {
"online": "Online",
"offline": "Offline",
"switchToOnline": "Switch to online mode",
"switchToOffline": "Switch to offline mode"
},
"mode": {
"title": "Offline mode",
"backToOnline": "Back online"