using Microsoft.Extensions.Localization; public class HomeController : Controller { private readonly IStringLocalizerIn this example, `_localizer` is an instance of `IStringLocalizer_localizer; public HomeController(IStringLocalizer localizer) { _localizer = localizer; } public IActionResult Index() { var allStrings = _localizer.GetAllStrings(); // Do something with allStrings return View(); } }