Hi,
does anyone know how to use localizer instance within
Code
Here is the code:
Code
@inject Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer localizer
@{
ViewData["Title"] = "Create";
}Hi,
does anyone know how to use localizer instance within
Here is the code:
@inject Microsoft.AspNetCore.Mvc.Localization.IViewLocalizer localizer
@{
ViewData["Title"] = "Create";
}Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pasang TamangRank #449 · 5.6K reputationPosted Jan 25, 2023, 10:27 PM EST
Hi,
For localization please check this article https://www.c-sharpcorner.com/article/globalization-and-localization-in-net-core/. This have good explanation with example code.
Regards,
Pasang