feat: add scan library functionality and related error handling in LibraryHeader and services

This commit is contained in:
Julien Froidefond
2025-10-19 09:55:07 +02:00
parent 3704a8d88b
commit 7d9bac5c51
9 changed files with 195 additions and 9 deletions

View File

@@ -198,6 +198,23 @@
"description": "An error occurred"
}
},
"scan": {
"button": "Scan library",
"buttonLabel": "Scan",
"success": {
"title": "Library scan started",
"description": "The library is being scanned"
},
"complete": {
"title": "Scan complete",
"description": "The library has been scanned and updated"
},
"error": {
"title": "Error",
"description": "An error occurred while scanning the library",
"refresh": "An error occurred while updating the library data"
}
},
"header": {
"series": "{{count}} series",
"series_plural": "{{count}} series",
@@ -363,6 +380,7 @@
"LIBRARY_NOT_FOUND": "Library not found",
"LIBRARY_FETCH_ERROR": "Error fetching library",
"LIBRARY_SCAN_ERROR": "Error scanning library",
"SERIES_FETCH_ERROR": "Error fetching series",
"SERIES_NO_BOOKS_FOUND": "No books found in series",

View File

@@ -198,6 +198,23 @@
"description": "Une erreur est survenue"
}
},
"scan": {
"button": "Analyser la bibliothèque",
"buttonLabel": "Analyser",
"success": {
"title": "Analyse lancée",
"description": "La bibliothèque est en cours d'analyse"
},
"complete": {
"title": "Analyse terminée",
"description": "La bibliothèque a été analysée et mise à jour"
},
"error": {
"title": "Erreur",
"description": "Une erreur est survenue lors de l'analyse de la bibliothèque",
"refresh": "Une erreur est survenue lors de la mise à jour des données"
}
},
"header": {
"series": "{{count}} série",
"series_plural": "{{count}} séries",
@@ -361,6 +378,7 @@
"LIBRARY_NOT_FOUND": "Bibliothèque introuvable",
"LIBRARY_FETCH_ERROR": "Erreur lors de la récupération de la bibliothèque",
"LIBRARY_SCAN_ERROR": "Erreur lors de l'analyse de la bibliothèque",
"SERIES_FETCH_ERROR": "Erreur lors de la récupération des séries",
"SERIES_NO_BOOKS_FOUND": "Aucun livre trouvé dans la série",