Open colinin opened 1 month ago
but when I use an asynchronous inline localization resource,
Can you share your code?
but when I use an asynchronous inline localization resource,
Can you share your code?
After several tests, I believe it is due to the unreasonable design of my IExternalLocalizationStore interface implementation. The problem is that the template engine runs before the initialization of IExternalLocalizationStore
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I noticed that the template engine rendering is already asynchronous, but when I use an asynchronous inline localization resource, it will cause rendering failure because it usesStringLocalizerFactory.CreateByResourceName
Affected Code: https://github.com/abpframework/abp/blob/b46dfa722a36b3bd9cd903def1793b114ca639b4/framework/src/Volo.Abp.TextTemplating.Core/Volo/Abp/TextTemplating/TemplateRenderingEngineBase.cs#L32-L40
Describe the solution you'd like
Replacing synchronous functions with asynchronous localized resources
example:
Additional context
No response