mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
feat(i18n): Coverage improvements (#59)
* Replace hardcoded text with i18n * Add categoriesTitle text * Add categoriesTitle text * Add new strings available Co-authored-by: Daniel Pessoa <cobalto@users.noreply.github.com>
This commit is contained in:
parent
69b1524f91
commit
bfeddf3217
3 changed files with 16 additions and 4 deletions
|
@ -16,6 +16,9 @@
|
|||
[widgetTagCloudTitle]
|
||||
other = "Tags"
|
||||
|
||||
[categoriesTitle]
|
||||
other = "Categories"
|
||||
|
||||
[notFoundTitle]
|
||||
other = "Not Found"
|
||||
|
||||
|
@ -35,4 +38,4 @@
|
|||
other = "Built with {{ .Generator }}"
|
||||
|
||||
[footerDesignedBy]
|
||||
other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}"
|
||||
other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}"
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
[widgetTagCloudTitle]
|
||||
other = "Tags"
|
||||
|
||||
[categoriesTitle]
|
||||
other = "Categorias"
|
||||
|
||||
[notFoundTitle]
|
||||
other = "Não Encontrado"
|
||||
|
||||
|
@ -29,4 +32,10 @@
|
|||
other = "Digite algo..."
|
||||
|
||||
[searchResultTitle]
|
||||
other = "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
|
||||
other = "#PAGES_COUNT páginas (#TIME_SECONDS segundos)"
|
||||
|
||||
[footerBuiltWith]
|
||||
other = "Criado com {{ .Generator }}"
|
||||
|
||||
[footerDesignedBy]
|
||||
other = "Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }}"
|
|
@ -2,7 +2,7 @@
|
|||
{{ define "main" }}
|
||||
{{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
|
||||
{{ if $categories }}
|
||||
<h2 class="section-title">Categories</h2>
|
||||
<h2 class="section-title">{{ T "categoriesTitle" }}</h2>
|
||||
<div class="category-list">
|
||||
<div class="article-list--tile">
|
||||
{{ range $categories }}
|
||||
|
@ -29,4 +29,4 @@
|
|||
{{ end }}
|
||||
|
||||
{{ partialCached "footer/footer" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue