feat(i18n): add i18n entry for "Back" and "Table of Contents"

This commit is contained in:
Jimmy 2021-06-21 18:30:32 +02:00
parent 9b77ad2ee7
commit 985c315e45
2 changed files with 14 additions and 2 deletions

View File

@ -17,8 +17,15 @@ list:
other: Subsections other: Subsections
article: article:
back:
other: Back
tableOfContents:
other: Table of contents
relatedContents: relatedContents:
other: Related contents other: Related contents
lastUpdatedOn: lastUpdatedOn:
other: Last updated on other: Last updated on
@ -32,8 +39,10 @@ widget:
archives: archives:
title: title:
other: Archives other: Archives
more: more:
other: More other: More
tagCloud: tagCloud:
title: title:
other: Tags other: Tags
@ -41,13 +50,16 @@ widget:
search: search:
title: title:
other: Search other: Search
placeholder: placeholder:
other: Type something... other: Type something...
resultTitle: resultTitle:
other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)"
footer: footer:
builtWith: builtWith:
other: Built with {{ .Generator }} other: Built with {{ .Generator }}
designedBy: designedBy:
other: Theme {{ .Theme }} designed by {{ .DesignedBy }} other: Theme {{ .Theme }} designed by {{ .DesignedBy }}

View File

@ -31,7 +31,7 @@
<div id="article-toolbar"> <div id="article-toolbar">
<a href="{{ .Site.BaseURL }}" class="back-home"> <a href="{{ .Site.BaseURL }}" class="back-home">
{{ (resources.Get "icons/back.svg").Content | safeHTML }} {{ (resources.Get "icons/back.svg").Content | safeHTML }}
<span>Back</span> <span>{{ T "article.back" }}</span>
</a> </a>
</div> </div>
{{ else }} {{ else }}
@ -46,7 +46,7 @@
<div class="widget-icon"> <div class="widget-icon">
{{ partial "helper/icon" "hash" }} {{ partial "helper/icon" "hash" }}
</div> </div>
<h2 class="widget-title section-title">Table of contents</h2> <h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
<div class="widget--toc"> <div class="widget--toc">
{{ .TableOfContents }} {{ .TableOfContents }}