Class LocalizationSettings
- Namespace
- GroupeIsa.Neos.Shared.Localization
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents a localization settings.
public class LocalizationSettings : ILocalizationSettings
- Inheritance
-
LocalizationSettings
- Implements
- Inherited Members
Properties
AdditionalLanguages
Gets additional languages for the cluster.
public IEnumerable<string> AdditionalLanguages { get; }
Property Value
- IEnumerable<string>
Additional languages for the cluster.
DefaultLanguage
Gets the configured default language.
public string DefaultLanguage { get; }
Property Value
- string
The configured default language.
Instance
Gets instance of LocalizationSettings.
public static LocalizationSettings Instance { get; }
Property Value
LanguageCount
Gets the count of languages (including default language).
public int LanguageCount { get; }
Property Value
Methods
GetCurrentLanguage()
Gets the current language.
public string GetCurrentLanguage()
Returns
- string
The current language.
IsValid(string)
Gets a value indicating whether the language is valid.
public bool IsValid(string language)
Parameters
language
stringLanguage.
Returns
- bool
A value indicating whether the language is valid.
SetLanguages(params string[])
Sets languages. The first language will be the default language.
public void SetLanguages(params string[] languages)
Parameters
languages
string[]Languages.