i18n for publication search page.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<h1>Search results</h1>
|
||||
<h1 i18n>Search results</h1>
|
||||
@if((isLoading$ | async) === true) {
|
||||
<h2>Search in progress...</h2>
|
||||
<h2 i18n>Search in progress...</h2>
|
||||
<mat-spinner></mat-spinner>
|
||||
} @else if((isLoaded$ | async) === true) {
|
||||
@if((publications$ | async)?.length) {
|
||||
<app-publication-list [publications$]="publications$"></app-publication-list>
|
||||
} @else {
|
||||
No any result.
|
||||
<span i18n>No any result.</span>
|
||||
}
|
||||
} @else {
|
||||
No any result.
|
||||
<span i18n>No any result.</span>
|
||||
}
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
"3861667381167371965": "Une erreur est survenue lors du chargement de la publication...",
|
||||
"3189372093194446122": "Suppression de la publication",
|
||||
"7149611045520326321": "Êtes vous sûr de vouloir supprimer cette publication ?",
|
||||
"4353366709080867962": "Publication supprimée"
|
||||
"4353366709080867962": "Publication supprimée",
|
||||
"1460318440531551596": "Résultats de la recherche",
|
||||
"886526241743571962": "Recherche des publications...",
|
||||
"3467080651873197381": "Il n'y a aucun résultat.",
|
||||
"8212807341111457015": "Une erreur est survenue lors de la recherche des publications.."
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,10 @@
|
||||
"3861667381167371965": "An error occurred while loading publication...",
|
||||
"3189372093194446122": "Publication deletion",
|
||||
"7149611045520326321": "Are you sure you want to delete this publication?",
|
||||
"4353366709080867962": "Publication deleted"
|
||||
"4353366709080867962": "Publication deleted",
|
||||
"1460318440531551596": "Search results",
|
||||
"886526241743571962": "Search in progress...",
|
||||
"3467080651873197381": "No any result.",
|
||||
"8212807341111457015": "An error occured while retrieving publications."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user