i18n for home page.

This commit is contained in:
Florian THIERRY committed 2024-09-21 11:12:07 +02:00
1 parent cb0ef7ddd5
commit 8c957fe694
7 files changed
+36 -36

No files matched your search

+3 -2
View File
@@ -26,8 +26,9 @@ export class HomeService {
this.publicationRestService.getLatest()
.then(publications => this.publicationsSubject.next(publications))
.catch(error => {
this.snackBar.open('An error occurred while retrieving latest publications...');
console.error('An error occurred while retrieving latest publications...', error);
const errorMessage = $localize`An error occurred while retrieving latest publications...`;
this.snackBar.open(errorMessage, $localize`Close`, { duration: 5000 });
console.error(errorMessage, error);
})
.finally(() => this.isLoadingSubject.next(false));
}