Last active
April 8, 2020 13:00
-
-
Save ashour/7ef12e3ef131c9a31e2478a029850985 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
using System.Threading; | |
using System.Web.Mvc; | |
namespace I18nDemo.Controllers | |
{ | |
public class HomeController : Controller | |
{ | |
public ActionResult Index() | |
{ | |
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("ar"); | |
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ar"); | |
return View(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment