Skip to content

Commit

Permalink
Translated text when no news are found
Browse files Browse the repository at this point in the history
Signed-off-by: George Araújo <[email protected]>
  • Loading branch information
george-gca committed Nov 6, 2023
1 parent 39b2019 commit ded748d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ months:
november: Nov
december: Dec
news:
empty: No news so far...
titles:
news1: A simple inline announcement.
news2: A long announcement with details
Expand Down
1 change: 1 addition & 0 deletions _i18n/pt-br.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ months:
november: Nov
december: Dez
news:
empty: Nenhuma novidade no momento...
titles:
news1: Um anúncio simples em uma linha.
news2: Um anúncio longo com detalhes
Expand Down
2 changes: 1 addition & 1 deletion _includes/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
</table>
</div>
{%- else -%}
<p>No news so far...</p>
<p>{% t news.empty %}</p>
{%- endif %}
</div>

0 comments on commit ded748d

Please sign in to comment.