Files
2026-07-13 11:58:46 +08:00

996 B

title, description, categories, keywords, params
title description categories keywords params
IsTranslated Reports whether the given page has one or more translations.
functions_and_methods
returnType signatures
bool
PAGE.IsTranslated

With this project configuration:

{{< code-toggle file=hugo >}} defaultContentLanguage = 'en'

[languages.en] contentDir = 'content/en' label = 'English' locale = 'en-US' weight = 1

[languages.de] contentDir = 'content/de' label = 'Deutsch' locale = 'de-DE' weight = 2 {{< /code-toggle >}}

And this content:

content/
├── de/
│   ├── books/
│   │   └── book-1.md
│   └── _index.md
├── en/
│   ├── books/
│   │   ├── book-1.md
│   │   └── book-2.md
│   └── _index.md
└── _index.md

When rendering content/en/books/book-1.md:

{{ .IsTranslated }} → true

When rendering content/en/books/book-2.md:

{{ .IsTranslated }} → false