Interface IEmailTemplateRegistry
N-4 (Session C): renders identity-system e-mail templates by
id + locale + variable substitutions.
Implementations MAY consult UserProps.Locale (when added) or fall back to a
default locale; the default ships with
English and Russian variants and falls back to English when the requested locale is
missing.
public interface IEmailTemplateRegistry
Methods
RenderAsync(string, string?, IReadOnlyDictionary<string, string>, CancellationToken)
Resolves the template body. Throws when
ValueTask<RenderedEmailTemplate> RenderAsync(string templateId, string? locale, IReadOnlyDictionary<string, string> vars, CancellationToken ct = default)