Merge missing translations (#10355)
* Merge missing translations * Disable Norwegian
This commit is contained in:
committed by
k8s-ci-robot
parent
4b77af7466
commit
32014f94b3
@@ -0,0 +1,13 @@
|
||||
{{ $glossaryBundle := .Site.GetPage "page" "docs/reference/glossary" }}
|
||||
{{- if $glossaryBundle -}}
|
||||
{{ $pages := $glossaryBundle.Resources.ByType "page" }}
|
||||
{{- range $.Site.Params.language_alternatives -}}
|
||||
{{- with (where $glossaryBundle.Translations ".Lang" . ) -}}
|
||||
{{ $p := (index . 0) }}
|
||||
{{ $pages = $pages | lang.Merge ($p.Resources.ByType "page") }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $.Scratch.Set "glossary_items" $pages -}}
|
||||
{{- else -}}
|
||||
{{- errorf "[%s] Glossary Bundle not found for language. Create at least an index.md file inside docs/reference/glossary" .Page.Site.Language.Lang -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user