This project is read-only.

How to localize Grid.MVC

Mar 28, 2014 at 7:41 PM
Am I the only one who doesn't get how to localize the grid? I included in my script bundle and changed my browser language to Russian [ru-RU]. Using developer tools, I've verified that the script file is included in my rendered page, but the filter options (Equals, StartsWith, etc.) still show in English. Is there some additional wiring I'm missing?

Thanks in advance!
Apr 5, 2014 at 8:33 AM

By default grid tries to use current culture. For this you need to copy sallelite libraries in your project. Unfortunatly there is no nuget packages for this. You can download source code and build it manually from (you need to copy /bin/ru folder to your project). I recommed you to do this, if you want to support multiple languages/

Then you can determine current client and override current thread culture:
 protected override void OnActionExecuting(ActionExecutingContext filterContext)
            if (Request.UserLanguages != null)

                // Validate culture name
                string cultureName = Request.UserLanguages[0]; // obtain it from HTTP header AcceptLanguages
                if (!string.IsNullOrEmpty(cultureName))
                    // Modify current thread's culture            
                    Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(cultureName);
                    Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(cultureName);
Please see the repository sample at and deployed version at

Also you have a SetLanguage method to setup culture manually:
Marked as answer by steveosmith on 4/7/2014 at 11:44 AM
Apr 7, 2014 at 7:44 PM
Fantastic! I now have the grid beautifully localized!! Thanks for your reply!!