Get Locale Client-side
Question

Is there any way to get the information about the locale ("EN-en", "ES-es") on client-side?




mvp_badge
MVP
Solution

If you want to get the language of the browser, you can also achieve that very easily with Javascript. See more on this post.

Sorry, just to understand. You want to get the time of the client, is that?

Regards,

Márcio

Hi Marcio,

thanks for your answer

I need the location of the client, not the time.


mvp_badge
MVP

Hi Pier,


Yes, there is the built-in function GetCurrentLocale(), like on the image below:




Kind Regards,
João

Hi João, 

thanks for your answer.

GetCurrentLocale() is running on the server so it's giving you the server's location, but I need the client's location.

mvp_badge
MVP

Hi Pier,


You have this action both client and server side. Look for instance, this example, where I'm calling it on a client action:

mvp_badge
MVP
Solution

If you want to get the language of the browser, you can also achieve that very easily with Javascript. See more on this post.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.