# Language Dropdown menu options

**URL:** <https://discourse.gohugo.io/t/language-dropdown-menu-options/35638>\
**Category:** support\
**Created:** [November 18, 2021, 9:27am UTC](https://discourse.gohugo.io/t/language-dropdown-menu-options/35638 "2021-11-18T09:27:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [November 18, 2021, 12:14pm UTC](https://discourse.gohugo.io/t/language-dropdown-menu-options/35638/4 "2021-11-18T12:14:20Z")

</div>

```auto
{{ range .Page.AllTranslations }}

```

Yep, this part says “range all translations of this current page”. If there is none no language is shown.

[From another post directly answered by bep](https://discourse.gohugo.io/t/solved-how-to-list-latest-posts-in-each-language-of-a-site/10248):

> I’m writing this quick and untested:
> 
> - .AllTranslations will give you a an ordered list of all translations of a Page, including the current one.
> - .Site.Home.AllTranslations will give you all “home pages”

Sidennote: this part here is useless because it does the same in either case. Just leave line 2 or 4 and remove the rest.

```auto
{{ if eq $pageLang .Lang}}
{{ .LanguageName }}
{{ else }}
{{ .LanguageName }}
{{ end }}

```

---

_[View the full topic](https://discourse.gohugo.io/t/language-dropdown-menu-options/35638)._
