Merge pull request #20847 from dvdksn/use-i18n-strings

hugo: use i18n strings in callouts
This commit is contained in:
David Karlsson 2024-09-11 17:40:10 +02:00 committed by GitHub
commit 5ec60d925c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@ important: Important
note: Note
tip: Tip
warning: Warning
caution: Caution
## openapi strings:

View File

@ -28,7 +28,7 @@
<span class="icon-svg pb-1">{{ $i := index $icons .AlertType }}
{{ partialCached "icon.html" $i $i }}
</span>
<strong>{{ or (i18n .AlertType) (title .AlertType) }}</strong>
<strong>{{ i18n .AlertType }}</strong>
</p>
{{ .Text | safeHTML }}
</blockquote>

View File

@ -3,7 +3,7 @@
<span class="icon-svg pb-1">
{{ partialCached "icon.html" "science" "science" }}
</span>
<strong>{{ .Get "title" | default "Experimental" }}</strong>
<strong>{{ .Get "title" | default (i18n "experimental") }}</strong>
</p>
{{ .InnerDeindent | safe.HTML }}
</div>

View File

@ -3,7 +3,7 @@
<span class="icon-svg pb-1">
{{ partialCached "icon.html" "rocket_launch" "rocket_launch" }}
</span>
<strong>{{ .Get "title" | default "Restricted" }}</strong>
<strong>{{ .Get "title" | default (i18n "restricted") }}</strong>
</p>
{{ .InnerDeindent | safe.HTML }}
</div>