i18n for publication search page.

This commit is contained in:
Florian THIERRY
2024-09-21 21:03:34 +02:00
parent 3f6764dd7d
commit 0c1b52d734
4 changed files with 16 additions and 8 deletions

View File

@@ -36,9 +36,9 @@ export class SearchPublicationsService {
})
.catch(error => {
if (error.status !== 404) {
const errorMessage = 'An error occured while retrieving publications.';
const errorMessage = $localize`An error occured while retrieving publications.`;
console.error(errorMessage, error);
this.snackBar.open(errorMessage, 'Close', { duration: 5000 });
this.snackBar.open(errorMessage, $localize`Close`, { duration: 5000 });
}
})
.finally(() => {