using zero.Core.Attributes;
namespace zero.Core.Entities
{
public class Translation : ZeroEntity, ITranslation
{
///
public string AppId { get; set; }
///
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")]
public interface ITranslation : IZeroEntity, ILanguageAwareEntity, IAppAwareShareableEntity, 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; }
}
}