Skip to content

Commit f8bcd97

Browse files
committed
added i18n en for archive banner
1 parent 4433d23 commit f8bcd97

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

i18n/en.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,9 @@ other = "Go to solutions"
385385

386386
[case_study_slogan]
387387
other = "Read case studies of companies that benefited from implementing Istio"
388+
389+
[archive_banner_text]
390+
other = "⚠️ This documentation is for an older version (<strong>%s</strong>) and is no longer updated."
391+
392+
[archive_banner_link]
393+
other = "Read the latest version."

layouts/_default/baseof.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
<!-- Archived Documentation Header -->
161161
{{ if and (eq .Section "docs") .Site.Data.args.archive}}
162162
<div class="archive-warning-banner" role="alert">
163-
<p>⚠️ This documentation is for an older version (<strong>{{ .Site.Data.args.version }}</strong>) and is no longer updated.
164-
<a href="/latest{{ .RelPermalink | safeURL }}">Read the latest version</a>.</p>
163+
{{ (printf (i18n "archive_banner_text") .Site.Data.args.version) | safeHTML }}
164+
<a href="/latest{{ .RelPermalink | safeURL }}">{{ i18n "archive_banner_link" }}</a>
165165
</div>
166166
{{ end }}
167167

0 commit comments

Comments
 (0)