@@ -9,7 +9,7 @@ <h1 class="taxonomy-terms-title">{{ partial "utils/title" . }}</h1>
99 {{- if gt (len .Pages) 0 -}}
1010 < p class ="taxonomy-terms-count " aria-live ="polite ">
1111 {{- $total := len .Pages -}}
12- {{- printf "%d %s " $total (cond (eq $total 1) "term" "terms") -}}
12+ {{- i18n "taxonomy_terms_count " $total -}}
1313 </ p >
1414 {{- end -}}
1515 </ header >
@@ -29,7 +29,7 @@ <h1 class="taxonomy-terms-title">{{ partial "utils/title" . }}</h1>
2929 < a
3030 href ="{{ .RelPermalink }} "
3131 class ="taxonomy-term-card__link "
32- aria-label ="View all pages for {{ partial "utils /title" . }}"
32+ aria-label ="{{ i18n " taxonomy_terms_view_all_pages " ( partial "utils/title" .) }}"
3333 >
3434 < header class ="taxonomy-term-card__header ">
3535 < h2 class ="taxonomy-term-card__title " id ="term-{{ .Slug }} ">
@@ -44,7 +44,7 @@ <h2 class="taxonomy-term-card__title" id="term-{{ .Slug }}">
4444 < p class ="taxonomy-term-card__description "> {{ $latest.Summary | plainify | truncate 120 }}</ p >
4545 {{- else -}}
4646 < p class ="taxonomy-term-card__description taxonomy-term-card__description--empty ">
47- No description available
47+ {{ i18n "taxonomy_terms_no_description" }}
4848 </ p >
4949 {{- end -}}
5050 </ div >
@@ -53,16 +53,13 @@ <h2 class="taxonomy-term-card__title" id="term-{{ .Slug }}">
5353 < div class ="taxonomy-term-card__meta ">
5454 < span
5555 class ="taxonomy-term-card__count "
56- aria-label ="{{ $pageCount }} {{ cond (eq $pageCount 1) " page " "pages" }}"
56+ aria-label ="{{ i18n " taxonomy_terms_page_count " $pageCount }}"
5757 >
5858 < svg class ="gdoc-icon gdoc_tag " aria-hidden ="true ">
5959 < use xlink:href ="#gdoc_tag "> </ use >
6060 </ svg >
6161 < span class ="taxonomy-term-card__count-text ">
62- {{- $pageCount -}}
63- < span class ="taxonomy-term-card__count-label ">
64- {{- cond (eq $pageCount 1) "page" "pages" -}}
65- </ span >
62+ {{- i18n "taxonomy_terms_page_count" $pageCount -}}
6663 </ span >
6764 </ span >
6865
@@ -72,7 +69,7 @@ <h2 class="taxonomy-term-card__title" id="term-{{ .Slug }}">
7269 < use xlink:href ="#gdoc_star "> </ use >
7370 </ svg >
7471 < span class ="taxonomy-term-card__latest-text ">
75- Latest:
72+ {{ i18n "taxonomy_terms_latest_prefix" }}
7673 < span class ="taxonomy-term-card__latest-title ">
7774 {{- partial "utils/title" $latest | truncate 40 -}}
7875 </ span >
@@ -96,9 +93,9 @@ <h2 class="taxonomy-term-card__title" id="term-{{ .Slug }}">
9693 < svg class ="taxonomy-terms-empty__icon " aria-hidden ="true ">
9794 < use xlink:href ="#gdoc_tag "> </ use >
9895 </ svg >
99- < h2 class ="taxonomy-terms-empty__title "> No terms found </ h2 >
96+ < h2 class ="taxonomy-terms-empty__title "> {{ i18n "taxonomy_terms_empty_title" }} </ h2 >
10097 < p class ="taxonomy-terms-empty__description ">
101- There are currently no {{ .Data.Plural }} available.
98+ {{ i18n "taxonomy_terms_empty_description" .Data.Plural }}
10299 </ p >
103100 </ div >
104101 {{- end -}}
0 commit comments