Class TlumachTemplateOptionsExtensions
Registers the Tlumach filters in Fluid TemplateOptions.
public static class TlumachTemplateOptionsExtensions
- Inheritance
-
TlumachTemplateOptionsExtensions
- Inherited Members
Methods
AddTlumach(TemplateOptions, TranslationManager, TlumachFluidOptions?)
Adds the filters t and t_html (names set by the options) that return translations from manager.
Set TemplateContext.CultureInfo to the culture of each render, and render HTML templates with an HTML encoder.
public static TemplateOptions AddTlumach(this TemplateOptions options, TranslationManager manager, TlumachFluidOptions? tlumachOptions = null)
Parameters
optionsTemplateOptionsThe template options to add the filters to.
managerTranslationManagerThe translation manager to take the translations from.
tlumachOptionsTlumachFluidOptionsThe options, or null for the defaults.
Returns
- TemplateOptions
options.