Skip to content

LocalizationSettings class

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

The localization settings of an application, from the "Localization" section of its configuration.

public class LocalizationSettings

Public Members

name description
LocalizationSettings() The default constructor.
BaseLanguage { get; set; } The base language of the application, "en" by default: the language of its invariant texts, which every language falls back to. The texts of code that is written in another language (see LocalTextLanguageAttribute) are registered for that language instead, and the text files of the base language, e.g. "texts.tr.json", for the invariant one.
DefaultLanguage { get; set; } The language that a user sees who has not chosen one, and whose browser asks for none of the supported ones. The base language when not set.
const SectionKey The default section key, "Localization".

See Also