i18n for home page.

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

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));
}