Open Closed

Get template definition by template name and culture name #7974


User avatar
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&lt;IReadOnlyList&lt;TemplateDefinition&gt;> GetAllAsync();

Task&lt;TemplateDefinition?&gt; 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)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    It is impossible to get TemplateDefinition based 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)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on October 05, 2026, 11:32
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.