Skip to content

LocalTextLanguages class

namespace: Serenity.Localization   assembly: Serenity.Net.Core

Works out the language that the texts of the code of an assembly are registered for, see LocalTextLanguageAttribute and IBaseLanguage.

public static class LocalTextLanguages

Public Members

name description
const DefaultBaseLanguage The language that the texts of Serenity are written in, and the base language when none is set.
static ForAssembly(…) Gets the language that the texts of the code of an assembly are registered for in a registry: the invariant language when the assembly has no LocalTextLanguageAttribute, or its language is the base one, else its language, which is then added to the source languages of the registry.
static ForType(…) Gets the language that the texts of the code of a type are registered for in a registry, see ForAssembly.
static IsSameLanguage(…) Gets whether two languages are the same as far as the texts are concerned, e.g. "en" and "en-US": a language is the same as a regional one of it.

See Also