Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

how to use other language option in localizer

$
0
0

Hi,

how to use other language option in localizer ? I need to use two language same time. other language option is changeable. 

namespace MIS.WebUI.Controllers
{

    public class HomeController : Controller
    {
        public readonly IStringLocalizer<SharedResource> Localizer;

        public HomeController(IStringLocalizer<SharedResource> _localizer)
        {
            this.Localizer = _localizer;
        }
        public IActionResult Index()
        {
            var title = Localizer["ModalMessageTitle"] + " / " + OTHER_LANGUAGE("en-GB")["ModalMessageTitle"] ;                
        }

    }
}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>