Merge missing translations (#10355)

* Merge missing translations

* Disable Norwegian
This commit is contained in:
Bjørn Erik Pedersen
2018-10-01 22:38:37 +03:00
committed by k8s-ci-robot
parent 4b77af7466
commit 32014f94b3
29 changed files with 2303 additions and 45 deletions
+13
View File
@@ -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 -}}