BaseJsonTextsGenerator.TextsTarget class
namespace: Serenity.Localization assembly: Serenity.Extensions
A project whose texts are in a folder of the source tree, e.g. the web project itself and the projects of the features that it uses.
protected sealed class TextsTarget
| parameter | description |
|---|---|
| assembly | The assembly that has the texts of the project. |
| folder | The folder of the texts of the project, which is either a path that starts from the root of a drive, e.g. "C:\Projects\MyApp\src\MyApp.Web\texts\resources", or one that starts from the folder of the web project, e.g. "texts/resources" for the one of the application itself, or "../MyFeature/texts/resources" for one of a feature project next to it. |
| prefix | The prefix of the files of the project, e.g. "site.texts", for "site.texts.__.json". |
Public Members
| name | description |
|---|---|
| TextsTarget(…) | A project whose texts are in a folder of the source tree, e.g. the web project itself and the projects of the features that it uses. |
| Assembly { get; } | Gets the assembly that has the texts of the project. |
| Folder { get; } | Gets the folder of the texts of the project. |
| Prefix { get; } | Gets the prefix of the files of the project, e.g. "site.texts". |
Remarks
Initializes a new instance of the TextsTarget class.
See Also
- class BaseJsonTextsGenerator