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
|
note: Note
|
||||||
tip: Tip
|
tip: Tip
|
||||||
warning: Warning
|
warning: Warning
|
||||||
|
caution: Caution
|
||||||
|
|
||||||
## openapi strings:
|
## openapi strings:
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<span class="icon-svg pb-1">{{ $i := index $icons .AlertType }}
|
<span class="icon-svg pb-1">{{ $i := index $icons .AlertType }}
|
||||||
{{ partialCached "icon.html" $i $i }}
|
{{ partialCached "icon.html" $i $i }}
|
||||||
</span>
|
</span>
|
||||||
<strong>{{ or (i18n .AlertType) (title .AlertType) }}</strong>
|
<strong>{{ i18n .AlertType }}</strong>
|
||||||
</p>
|
</p>
|
||||||
{{ .Text | safeHTML }}
|
{{ .Text | safeHTML }}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<span class="icon-svg pb-1">
|
<span class="icon-svg pb-1">
|
||||||
{{ partialCached "icon.html" "science" "science" }}
|
{{ partialCached "icon.html" "science" "science" }}
|
||||||
</span>
|
</span>
|
||||||
<strong>{{ .Get "title" | default "Experimental" }}</strong>
|
<strong>{{ .Get "title" | default (i18n "experimental") }}</strong>
|
||||||
</p>
|
</p>
|
||||||
{{ .InnerDeindent | safe.HTML }}
|
{{ .InnerDeindent | safe.HTML }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<span class="icon-svg pb-1">
|
<span class="icon-svg pb-1">
|
||||||
{{ partialCached "icon.html" "rocket_launch" "rocket_launch" }}
|
{{ partialCached "icon.html" "rocket_launch" "rocket_launch" }}
|
||||||
</span>
|
</span>
|
||||||
<strong>{{ .Get "title" | default "Restricted" }}</strong>
|
<strong>{{ .Get "title" | default (i18n "restricted") }}</strong>
|
||||||
</p>
|
</p>
|
||||||
{{ .InnerDeindent | safe.HTML }}
|
{{ .InnerDeindent | safe.HTML }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue