Hello,
Welcome to our Microsoft Q&A platform!
To get the user's locale, try using CultureInfo.CurrentCulture
property.
var cultureName = CultureInfo.CurrentCulture.Name;
Here are the related docs, you could refer to:
https://learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.currentculture?view=net-5.0
https://learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo?view=net-5.0#properties
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.