DefaultLocalTextInitializer class
namespace: Serenity.Web assembly: Serenity.Net.Web
Default ILocalTextInitializer that registers base texts and JSON texts from the App_Data/texts folder, then the texts of the IDynamicLocalTextSource services, which are kept in the data of the application.
public class DefaultLocalTextInitializer : ILocalTextInitializer
| parameter |
description |
| typeSource |
The type source used to discover text registrations. |
| rowTypeRegistry |
The row type registry used to discover row texts. |
| webHostEnvironment |
The web host environment used to locate the texts folder. |
| dynamicSources |
The sources of the texts that are kept in data, if any. |
Public Members
| name |
description |
| DefaultLocalTextInitializer(…) |
Default ILocalTextInitializer that registers base texts and JSON texts from the App_Data/texts folder, then the texts of the IDynamicLocalTextSource services, which are kept in the data of the application. |
| virtual Initialize(…) |
|
Protected Members
| name |
description |
| virtual AddDynamicTexts(…) |
Adds the texts of the IDynamicLocalTextSource services, after the ones of the texts files, so that they only add what is missing. |
| virtual AddJsonTexts(…) |
Adds JSON texts to the local text registry. |
See Also