Amira Elsayed Ismail
Amira Elsayed Ismail

Reputation: 9414

Localization and Globalization in asp.net

How do I get the current language of user in asp.net

Upvotes: 0

Views: 616

Answers (1)

Oded
Oded

Reputation: 499272

Use CultureInfo.CurrentUICulture:

var currentCulture = CultureInfo.CurrentUICulture;

Which:

Gets the CultureInfo that represents the current culture used by the Resource Manager to look up culture-specific resources at run time.

Upvotes: 1

Related Questions