web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue with getting Lan...
Power Apps
Unanswered

Issue with getting Language Display Name using Power Pages Enhanced Data Model

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I'm trying to build language dropdown for a site that is using Enhanced Data model in Power pages. There are 2 languages English and French. On the portal I've modified the header code as follows so only the other language displays using the code below.

 

 

 

{% if website.languages.size > 1 %}
 {% for language in page.languages %}
 {% capture lang%}/{{language.code}}{%endcapture%}
 {% if request.url contains lang %}
 {% assign langCode = language.code %}
 {% else %}
 {% if user %}
 <a href="/{{ language.url_substitution }}">
 {% else %}
 <a href="/{{ language.code }}">
 {% endif %}
 <abbr title="{{ language.name }}">
 {{ language.code }}
 </abbr>
 <span>
 {{ language.name }} // I would like to use the value from display name here instead of name.
 </span>
 </a>
 {% endif %}
 {% endfor %}
{% endif %}

 

 

 

PowePortalDev_0-1710179663310.pngPowePortalDev_1-1710179709765.png

 

I've updated Display Name as Français but on the website, it shows French - France. 

 

Is there any liquid attribute in languages object that I can use to get the display name? Based on the Microsoft documentation I don't see an option to get display name.

 

Thanks

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard