Skip to content

JsonLocalTextRegistration class

namespace: Serenity.Localization   assemblySerenity.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 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 ProcessNestedDictionary(…) Converts translation from a hierarchical local text dictionary to a simple dictionary.

See Also