Introduce local fallback for book creation and improve error handling
- Added support for creating books locally when the cloud limit is reached. - Enhanced error handling in `AddNewBookForm` with `ApiError` and fallback logic for local book creation. - Implemented `BookTypeLimit` to manage type-specific book limits with visual indicators in `BookList`. - Refactored `TombstoneRecord` to standardize naming conventions for better API compatibility. - Updated `useSyncSeries` and `useSyncBooks` to handle empty tombstones gracefully. - Updated locales with new translations for fallback and error messaging.
This commit is contained in:
@@ -717,7 +717,10 @@
|
||||
"titleTooShort": "Le titre est trop court. Minimum 2 caractères requis",
|
||||
"titleTooLong": "Le titre est trop long. Maximum 50 caractères autorisés",
|
||||
"typeMissing": "Sélectionner un genre.",
|
||||
"addingBook": "Une erreur est survenue lors de l'ajout du livre."
|
||||
"addingBook": "Une erreur est survenue lors de l'ajout du livre.",
|
||||
"limitReached": "Vous avez atteint la limite de livres pour ce type sur le cloud.",
|
||||
"saveLocally": "Sauvegarder localement",
|
||||
"localFallbackDescription": "Vous pouvez tout de même enregistrer ce livre localement sur votre appareil."
|
||||
},
|
||||
"bookTypeHint": {
|
||||
"title": "Type d'oeuvre",
|
||||
|
||||
Reference in New Issue
Block a user