Quantcast
Channel: How to translate only a subset of the pages?
Viewing all articles
Browse latest Browse all 6

How to translate only a subset of the pages?

$
0
0

I dealt with this by checking the word count of the first translation before rendering the translation menu.

{{ if .IsTranslated }}

  {{ if gt (index .Translations 0).WordCount 0 }}
    <nav class="LangNav">
    {{ range .Translations }}
      <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
    {{ end}}
    </nav>
  {{ end }}

{{ end }}

Read full topic


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images