hugo/docs/content/en/methods/site/IsMultiLingual.md
Bjørn Erik Pedersen 5fd1e74903
Merge commit '9b0050e9aabe4be65c78ccf292a348f309d50ccd' as 'docs'
```
git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash
```

Closes #11925
2024-01-27 10:48:57 +01:00

34 lines
663 B
Markdown

---
title: IsMultiLingual
description: Reports whether the site is multilingual.
categories: []
keywords: []
action:
related: []
returnType: bool
signatures: [SITE.IsMultiLingual]
---
Site configuration:
{{< code-toggle file=hugo >}}
defaultContentLanguage = 'de'
defaultContentLanguageInSubdir = true
[languages]
[languages.de]
languageCode = 'de-DE'
languageName = 'Deutsch'
title = 'Projekt Dokumentation'
weight = 1
[languages.en]
languageCode = 'en-US'
languageName = 'English'
title = 'Project Documentation'
weight = 2
{{< /code-toggle >}}
Template:
```go-html-template
{{ .Site.IsMultiLingual }} → true
```