Skip to content

Commit 1504d97

Browse files
authored
Merge pull request #7 from nkdAgility/new-i18n-bits
New i18n bits
2 parents bb64dfa + e33702b commit 1504d97

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

module/layouts/_partials/components/guide/guide-version-notice.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<div class="d-flex align-items-start">
1616
<i class="fa-solid fa-info-circle me-2 mt-1 flex-shrink-0"></i>
1717
<div>
18-
<strong>Historical Version Notice:</strong>
19-
You are viewing version {{ $currentVersion }} of this guide.
20-
<a href="{{ $sectionPage.RelPermalink }}" class="alert-link"> View the latest version ({{ $latestVersion }}) </a> for the most up-to-date information.
18+
<strong>{{ i18n "guide_historical_version_notice_title" }}</strong>
19+
{{ i18n "guide_historical_version_notice_text" (dict "CurrentVersion" $currentVersion) }}
20+
<a href="{{ $sectionPage.RelPermalink }}" class="alert-link">{{ i18n "guide_historical_version_notice_link" (dict "LatestVersion" $latestVersion) }}</a> {{ i18n "guide_historical_version_notice_suffix" }}
2121
</div>
2222
</div>
2323
</div>

module/layouts/_partials/components/guide/render-guide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h4 class="h6 text-muted mb-3 flex-shrink-0 d-none d-md-block">{{ i18n "guide_ta
175175
<!-- Authors from creators list -->
176176

177177
<div class="content-version mt-2">
178-
<span class="text-muted">{{ i18n "guide_version_label" . }} </span>
178+
<span class="text-muted">{{ i18n "guide_version_label" . }} </span>&nbsp;
179179
{{ partial "components/guide/guide-version-select.html" . }}
180180
</div>
181181
</header>

site/i18n/en.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@
297297
- id: guide_version_latest
298298
translation: "Latest"
299299

300+
- id: guide_historical_version_notice_title
301+
translation: "Historical Version Notice:"
302+
303+
- id: guide_historical_version_notice_text
304+
translation: "You are viewing version {{ .CurrentVersion }} of this guide."
305+
306+
- id: guide_historical_version_notice_link
307+
translation: "View the latest version ({{ .LatestVersion }})"
308+
309+
- id: guide_historical_version_notice_suffix
310+
translation: "for the most up-to-date information."
311+
300312
- id: guide_content_unavailable_note
301313
translation: "Note:"
302314

site/i18n/min.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,18 @@
291291
- id: guide_version_latest
292292
translation: "Fresh Banana"
293293

294+
- id: guide_historical_version_notice_title
295+
translation: "Old Banana Alert:"
296+
297+
- id: guide_historical_version_notice_text
298+
translation: "You looky at banana version {{ .CurrentVersion }} of dis guide."
299+
300+
- id: guide_historical_version_notice_link
301+
translation: "See da fresh banana ({{ .LatestVersion }})"
302+
303+
- id: guide_historical_version_notice_suffix
304+
translation: "for da newest banana info."
305+
294306
- id: guide_content_unavailable_note
295307
translation: "Banana Note:"
296308

0 commit comments

Comments
 (0)