0
- ABP Framework version: v8.2
- UI Type: Angular
- Database System: EF Core
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Steps to reproduce the issue: How can I get template definition by template name and culture name? for eg. var templateEn = await _templateDefinitionManager.GetAsync("templateName", "en"); var templateFr = await _templateDefinitionManager.GetAsync("templateName", "fr");
or
List<TemplateDefinition> templates = await _templateDefinitionManager.GetAsync("templateName");
Is it possible to do so?
public interface ITemplateDefinitionManager { [ItemNotNull] Task<TemplateDefinition> GetAsync([NotNull] string name);
[ItemNotNull]
Task<IReadOnlyList<TemplateDefinition>> GetAllAsync();
Task<TemplateDefinition?> GetOrNullAsync(string name);
}
Right now templateDefinitionManager only get by name.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
1 Answer(s)
-
0
hi
It is impossible to get
TemplateDefinitionbased on culture.You can check how to get template content by specifying the culture.
https://abp.io/docs/latest/Text-Templating#multiple-contents-localization
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)