If you create a site on which you allow the user, for example, to change the language, you need to execute it in the Global.asax file in the Application_BeginRequest method.
Each request will have a culture set.
You simply set the following two lines:
Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fr-FR"); Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR");
The first line will indicate the formatting of the number / date / etc.
The second line indicates which localization of resources to load - which will contain the translated content.
source share