DefaultTextLocalizer class
namespace: Serenity.Localization assembly: Serenity.Net.Core
An ITextLocalizer implementation that resolves translations from an ILocalTextRegistry using the current UI culture.
public class DefaultTextLocalizer : ITextLocalizer
| parameter | description |
|---|---|
| registry | The local text registry to resolve translations from. |
Public Members
| name | description |
|---|---|
| DefaultTextLocalizer(…) | An ITextLocalizer implementation that resolves translations from an ILocalTextRegistry using the current UI culture. |
| TryGet(…) | Gets the translation for a key based on the current UI culture language. |
Remarks
Creates a new default text localizer instance.
See Also
- interface ITextLocalizer
- Source: DefaultTextLocalizer.cs