using zero.Core.Attributes; namespace zero.Core.Entities { public class Translation : ZeroEntity, ITranslation { /// public string LanguageId { get; set; } /// public string Key { get; set; } /// public string Value { get; set; } /// public TranslationDisplay Display { get; set; } } public enum TranslationDisplay { Text = 0, HTML = 1 } [Collection("Translations", LongId = true)] public interface ITranslation : IZeroEntity, ILanguageAwareEntity, IZeroDbConventions { /// /// Key which can be used to query translations /// string Key { get; set; } /// /// Value of the translation /// string Value { get; set; } /// /// Display + input type /// TranslationDisplay Display { get; set; } } }