DefaultTextLocalizer.TryGet method
namespace: Serenity.Localization assembly: Serenity.Net.Core
Gets translation for a key based on the context language
public string TryGet(string key)
parameter | description |
---|---|
key | Local text key |
Return Value
Translated text or null if no translation found in the context language
See Also
- class DefaultTextLocalizer