mirror of https://github.com/docker/docs.git
Merge pull request #20847 from dvdksn/use-i18n-strings
hugo: use i18n strings in callouts
This commit is contained in:
commit
5ec60d925c
|
@ -17,6 +17,7 @@ important: Important
|
|||
note: Note
|
||||
tip: Tip
|
||||
warning: Warning
|
||||
caution: Caution
|
||||
|
||||
## openapi strings:
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue