Files
mixtape/zero.Core/Entities/Translation.cs
T
2020-05-08 13:22:28 +02:00

36 lines
700 B
C#

namespace zero.Core.Entities
{
public class Translation : DatabaseEntity, ILanguageAwareEntity
{
/// <summary>
/// Key which can be used to query translations
/// </summary>
public string Key { get; set; }
/// <summary>
/// Value of the translation
/// </summary>
public string Value { get; set; }
/// <summary>
/// Display + input type
/// </summary>
public TranslationDisplay Display { get; set; }
/// <inheritdoc />
public string ParentEntityId { get; set; }
public class Variant : LanguageVariant
{
public string Value { get; set; }
}
}
public enum TranslationDisplay
{
Text = 0,
HTML = 1
}
}