2021-11-20 13:52:28 +01:00
|
|
|
namespace zero.Localization;
|
|
|
|
|
|
|
|
|
|
[RavenCollection("Translations")]
|
2022-01-17 15:38:23 +01:00
|
|
|
public class Translation : ZeroEntity, IAlwaysActive
|
2021-11-20 13:52:28 +01:00
|
|
|
{
|
|
|
|
|
public Translation()
|
|
|
|
|
{
|
|
|
|
|
IsActive = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Value of the translation
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Display + input type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TranslationDisplay Display { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public enum TranslationDisplay
|
|
|
|
|
{
|
|
|
|
|
Text = 0,
|
|
|
|
|
HTML = 1
|
|
|
|
|
}
|