Skip to content

Commit

Permalink
feat: using multilanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucs1590 committed Mar 9, 2024
1 parent b06bb09 commit 91a8daf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ <h3 class="card-title mb-2">{{ pub.title }}</h3>
</div>
</div>
<div *ngIf="blogPublications.length === 0" class="text-center text-white mt-5">
<h3>No blog publications matched your search criteria.</h3>
<div class="alert alert-info" role="alert">
<fa-icon icon="info-circle" class="me-2"></fa-icon>
<span translate>publi.blog-not-found</span>
</div>
</div>
</ng-container>

Expand Down Expand Up @@ -187,7 +190,10 @@ <h3 class="card-title sci-title">{{ pub.title }}</h3>
</div>
</div>
<div *ngIf="sciPublications.length === 0" class="text-center text-white mt-5">
<h3>No scientific publications matched your search criteria.</h3>
<div class="alert alert-info" role="alert">
<fa-icon icon="info-circle" class="me-2"></fa-icon>
<span translate>publi.sci-not-found</span>
</div>
</div>
</ng-container>

Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
"publi.blog-subtitle": "Blog",
"publi.sci-subtitle": "Scientific Publications",
"publi.read-more": "Read more...",
"publi.blog-not-found": "No blog posts matched your search criteria.",
"publi.sci-not-found": "No scientific publications matched your search criteria.",
"recommendations.title": "Recommendations"
}
2 changes: 2 additions & 0 deletions src/assets/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
"publi.blog-subtitle": "Blog",
"publi.sci-subtitle": "Publicações Científicas",
"publi.read-more": "Leia mais...",
"publi.blog-not-found": "Nenhuma publicação de blog correspondeu aos seus critérios de pesquisa.",
"publi.sci-not-found": "Nenhuma publicação científica correspondeu aos seus critérios de pesquisa.",
"recommendations.title": "Recomendações"
}

0 comments on commit 91a8daf

Please sign in to comment.