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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to get the current...
Power Apps
Unanswered

How to get the current locale throughout all ways of accessing a PowerApp?

(0) ShareShare
ReportReport
Posted on by 166

I am trying to translate my app into multiple languages. For this I am planning on reading from text values from a SP list depending on which locale it is. But I need to detect what is the current locale first. Users can access the app using

 

1. A standalone link

2. Embedded in a SP Online page

3. Native PowerApp App

 

I am using the Param("locale") or Language() to get the value.

 

For 1), since I can control the URL freely, I can just put in locale=en-US or locale=fr-CA in the URL which seems to work. 

For 2), Since it cannot read URL params from the parent frame, I can't control it there, but Language() seems to read it fine from the inner iframe URL. Does this value get set from the browser/OS locale setting?

For 3), I notice that the Param function gets an empty value, but Language() gets me "en". Is this a reliable way to check? Seems like "en" is just the default value it gives when it can't get any value. So someone in say a french region could still get "en". 

 

How can I get this working accurately? 

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @R58395 ,

     

    If you would like to build a multi-language app you could refer to below doc:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/multi-language-apps

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • R58395 Profile Picture
    166 on at

    That tutorial doesn't really answer what I am talking about. I am more so looking for expected values for the Language() function  https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-language

     

    for the 3 different ways to access the powerapp. I want to know if the return values I get described in the first post is what is expected and will work across different regions.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard