Skip to content

NestedLocalTextRegistration class

namespace: Serenity.Localization   assemblySerenity.Net.Core

Contains helper methods for registration of local texts in nested static classes. Nested static classes contain LocalText objects with actual translations as keys. This class locates them (with NestedLocalTextsAttribute at the outermost class), determines keys by the path from the outermost to the nested class name, replaces the existing LocalText instance with an initialized instance containing this generated key and initial translation, and registers this translation in the ILocalTextRegistry provider.

public static class NestedLocalTextRegistration

Public Members

name description
static AddNestedTexts(…) Adds translations from static nested local text classes marked with NestedLocalTextsAttribute.

See Also