JsonLocalTextRegistration class
namespace: Serenity.Localization assembly: Serenity.Net.Core
Contains helper methods for registration of local texts in hierarchical/dictionary formatted JSON files.
public static class JsonLocalTextRegistration
Public Members
| name | description |
|---|---|
| static AddFromNestedDictionary(…) | Adds translation from a hierarchical local text dictionary parsed from JSON file. |
| static AddJsonResourceTexts(…) | Adds json texts from embedded resources (2 methods) |
| static AddJsonTexts(…) | Adds translations from JSON files at specified path. File names in this directory should be in format ..json where is a language code like 'en', 'en-GB' etc. |
| static ParseLanguageIdFromPath(…) | Parses language ID from the file path |
| static ProcessNestedDictionary<TValue>(…) | Converts translation from a hierarchical local text dictionary to a simple dictionary. |
See Also
- Source: JsonLocalTextRegistration.cs