mirror of https://gitlab.com/octtspacc/sitoctt
15 lines
467 B
HTML
15 lines
467 B
HTML
{{- $languageName := "[???]" -}}
|
|
{{- $languageCode := (.Get 0) -}}
|
|
{{- range .Site.Languages -}}
|
|
{{- if eq $languageCode (string .) -}}
|
|
{{- $languageName = .LanguageName -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- $noticeText := "" -}}
|
|
{{- with dict "languageName" $languageName -}}
|
|
{{- $noticeText = (i18n "noticeAutomaticTranslation" .) -}}
|
|
{{- end -}}
|
|
{{- with dict "Params" "" "noticeType" "caution" "Inner" $noticeText -}}
|
|
{{- partial "notice" . -}}
|
|
{{- end -}}
|