Example #1
0
 /// <summary>
 /// Get override string localizer
 /// </summary>
 /// <returns></returns>
 private static IStringLocalizer GetLocalizer()
 {
     StringLocalizerFactory sl = new StringLocalizerFactory();
     return sl.Create("Translation", "Resources");
 }
Example #2
0
 public HomeController()
     : base()
 {
     StringLocalizerFactory sl = new StringLocalizerFactory();
     _htmlLocalizer = sl.Create("Translation", "Resources");
 }