0
ajayak created
I have a static class called Generic Helper. How can I use L in the static class?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
3 Answer(s)
-
0
From the documentation on Localization:
If we can not inject ILocalizationManager (maybe it's in a static context that can not be reached by the dependency injection), we can simply use the LocalizationHelper static class.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @aaron. How can I pass parameters as in L('name', parameters) using
LocalizationHelper? Can't find any way.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
// using Abp.Localization; // using Abp.Localization.Sources; var localizedString = LocalizationHelper.GetSource(sourceName).GetString(name, args);Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)